Java MCQ Questions and Answers Quiz

11. Output of Java Compiler is executable

  1. true
  2. false

12. Bytecode is a set of highly optimizable code. True or false

  1. true
  2. false

13. The JVM needs to be implemented for each platform

  1. true
  2. false

14. JVM will differ from platform to platform but still all understand the Same Java Bytecode

  1. true
  2. false

15. The compiler and other java development tools reside in _________ sub-folder.

  1. jre
  2. bin
  3. docs
  4. demo

16. The library containing the files needed to integrate Java with programs written in other languages resides inside following sub folder.

  1. jre
  2. bin
  3. include
  4. lib

17. We can set class path of java by setting following variable.

  1. javapath
  2. class
  3. path
  4. java

18. Variable path in Windows Operating System is called as ________.

  1. Environment Variable
  2. Local Variable
  3. Instance Variable
  4. Global Variable

19. Environment Variable can be set by right clicking __________ icon and then clicking on Properties menu in Windows OS.

  1. Internet Explorer
  2. Recycle Bin
  3. Control Panel
  4. My Computer

20. Arrange the following statements in correct order. 1. Running the java command Statement. 2. Main method of that class is executed Statement. 3. JRE is loaded along with the class you specify.

  1. Statement: 2 1 3
  2. Statement: 1 3 2
  3. Statement: 1 2 3
  4. Statement: 3 2 1
Tags

MCQ Multiple Choice Questions and Answers on Java

Java Question and Answer