21. |
Which of these is not a correct statement?
|
||||||||
Answer:
Option (c) |
22. |
Which of these packages contains abstract keyword?
|
||||||||
Answer:
Option (a) |
23. |
In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?
|
||||||||
Answer:
Option (b) |
24. |
If super class and subclass have same variable name, which keyword should be used to use super class?
|
||||||||
Answer:
Option (a) |
25. |
Which of the following is used for implementing inheritance through an interface?
|
||||||||
Answer:
Option (d) |
26. |
Which of these class is used to create an object whose character sequence is mutable?
|
||||||||
Answer:
Option (b) |
27. |
Which of this method of class StringBuffer is used to concatenate the string representation to the end of invoking string?
|
||||||||
Answer:
Option (b) |
28. |
Which of these method of class StringBuffer is used to find the length of current character sequence?
|
||||||||
Answer:
Option (a) |
29. |
What is the string contained in s after following lines of Java code?
StringBuffer s new StringBuffer("Hello"); s.deleteCharAt(0);
|
||||||||
Answer:
Option (b) |
30. |
Which of the following statement is correct?
|
||||||||
Answer:
Option (a) |