MCQOPTIONS
Saved Bookmarks
| 1. |
The following program is an example of?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 |
| Answer» B. intern() method | |