Object & Classes
- Which of these method of Object class can generate duplicate copy of the object on which it is called?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
clone()
- Which of these class is a superclass of all other classes?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The object class class is a superclass of all other classes.
- Which of these class holds a collection of static methods and variables?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
System class holds a collection of static methods and variables. The standard input, output and error output of java runtime is stored in the in, out and err variables of System class.
- Which of these class can encapsulate an entire executing program?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Process
- Standard output variable ‘out’ is defined in which class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Standard output variable ‘out’ is defined in System class. out is usually used in print statement i:e System.out.print().