Java Objective Questions Answers -Chapter 1
-
29. Can we access private class outside the package
- Yes
- No
Answer :
Option B
-
30. In Runnable, many threads share the same object instance
- True
- False
Answer :
Option A
-
31. In java, gc() method is available in which package
- java.lang package
- java.util package
- java.awt package
- java.io package
Answer :
Option A
-
32. Process of creating exact copy of the existing object is called
- cloning
- overloading
- overriding
- coping
Answer :
Option A
-
33. What do you mean by javap
- java compiler
- java Interpreter
- java Disassemble
- java debugger
Answer :
Option C
-
34. Methods that have same name, but different Parameter list and different definition known as
- Overriding
- Constructor
- Overloading
- none of these
Answer :
Option C
-
35. what is jdb
- java compiler
- java Interpreter
- java Disassemble
- java debugger
Answer :
Option D