πŸ“Š JAVA
Q. The following program is an example of?
Code:
class Simple{
public static void main(String args[]){

String s="Sachin";
System.out.println(s.length());//6
}
}
  • (A) length() method
  • (B) intern() method
  • (C) trim() method
  • (D) charAt() method
πŸ’¬ Discuss
βœ… Correct Answer: (A) length() method

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Jatin Dubey
Publisher
πŸ“ˆ
94%
Success Rate