Question Detail

Can we access private class outside the package

  • Yes
  • No
Similar Questions :

1. Methods that have same name, but different Parameter list and different definition known as

  • Overriding
  • Constructor
  • Overloading
  • none of these

2. Which of the following command is used to compile the Java program

  • java
  • javac
  • javap
  • none of these

3. Minimum threads in a program are

  • 1
  • 2
  • 5
  • Many

4. Which method executes only once

  • start() method
  • init() method
  • stop() method
  • destroy() method

5. Execution of the program is always begins with

  • Main method
  • class contain main method
  • parent class
  • default package
Read more from - Java Objective Questions Answers -Chapter 1