Question No : 8
What is error in the following class definitions?
abstract class xy {
abstract sum(int x, int y) {
}
}
Question No : 9
Consider the following class definitions:
class maths {
student student1;
}
class student {
String name;
}
This code represents:
Question No : 10
Which key word can protect a class in package from accessibility by the classes outside the package?
Question No : 11
We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would achieve this?
Question No : 12
The use of protected keyword to a member in a class will restrict its visibility as follows:
Question No : 13
Which of the following are not keywords?
Question No : 14
Which of the following are keywords?