-
In this example class-var = new classname( ); The class name followed by parentheses specifies the _________ for the class
A) VariablesB) ConstructorC) ObjectsD) Memory
-
-
Method overloading is one of the ways that Java supports ____________
A) EncapsulationB) ClassC) InheritenceD) Polymorphism
-
The data, or variables, defined within a class are called _______ variables
A) ObjectB) ClassC) Instance D) None of the above
-
-
-
-
-
System Class
What is the use of system class?
-
-
Regarding to strings
class String{
public static void main(String args[]){
}
} -
-
-
-
Java does not supports recursion
A) TrueB) False
-
Can a abstract class have a constructor ?When would the constructor in the abstract class be called ?
All the classes including the abstract classes can have constructors.Abstract class constructors will be called when its concrete subclass will be instantiated.
-
-
-
-
Java Classes Questions
Ans