| 31. |
Which of the following are incorrect form of StringBuffer class constructor?
|
||||||||
|
Answer:
Option (d) |
| 32. |
Which of these class is superclass of String and StringBuffer class?
|
||||||||
|
Answer:
Option (b) |
| 33. |
Which of these operators can be used to concatenate two or more String objects?
|
||||||||
|
Answer:
Option (a) |
| 34. |
Which of these method of class String is used to extract a single character from a String object?
|
||||||||
|
Answer:
Option (c) |
| 35. |
Which of these constructors is used to create an empty String object?
|
||||||||
|
Answer:
Option (a) |
| 36. |
Which of these is an incorrect statement?
|
||||||||
|
Answer:
Option (c) |
| 37. |
Which of these method of class String is used to compare two String objects for their equality?
|
||||||||
|
Answer:
Option (a) |
| 38. |
Which of these methods is used to compare a specific region inside a string with another specific region in another string?
|
||||||||
|
Answer:
Option (d) |
| 39. |
Which of these methods of class String is used to check whether a given object starts with a particular string literal?
|
||||||||
|
Answer:
Option (a) |
| 40. |
What is the value returned by function compareTo() if the invoking string is less than the string compared?
|
||||||||
|
Answer:
Option (b) |