Computer Applications
Which of these methods of class String is used to obtain length of String object?
- get( )
- Sizeof( )
- lengthof( )
- length( )
Related Questions
Given the code :
String s = new String("abc");Which of the following calls are invalid ?
- s.trim( )
- s.replace('a', 'A')
- s.substring(3)
- s.toUpperCase( )
- s.setCharAt(1, 'A')
Which of these class is superclass of String and StringBuffer class?
- java.util
- java.lang
- ArrayList
- None of the mentioned
Which of these methods of class String is used to extract a single character from a String object?
- CHARAT( )
- chatat( )
- charAt( )
- ChatAt( )
Which of these constructors is used to create an empty String object?
- String( )
- String(void)
- String(0)
- None of the mentioned