Keywords
Description: Keywords | |
Number of Questions: 15 | |
Created by: Aliensbrain Bot | |
Tags: Keywords Java/Oracle /C/C++ Java Inheritance and Constructor |
Which Java keyword should be used with a data member to make it non-serializable?
Which of the following keywords is used to implement inheritance in Java?
Which of the following statements is correct? A. super keyword is used to access the constructor of superclass from subclass constructor. B. super keyword is used to access the variable of superclass from the subclass.
Interface can be implemented using the ___________ keyword.
When methods with the same name appears in both superclass and subclass, then only __________ method is invoked.
Character literals in java enclosed in____________quotes.
Which of the following does not represent a character literal in Java?
Which of the following is not used as Garbage Collection Algorithms in Java?
Which of the following keywords should be used to make a class level variable?
All the variables must be __________ and initialized in the interface.
Which of the following is not a keyword of Java?
The protected access specifier works as ________ for outside world, but works as ________ for derived classes in Java.
If the first statement of a constructor has the form ________, then the constructor calls another constructor of the same class.
The protected access specifier is very useful in ___________ inheritance.
Which of the following statements regarding 'finally' block in Java is false?