Java Objective Multiple Answer Questions Bank

Java Objective Multiple Answer Question Bank IngenuityDias
We have chosen Java Oracle J2EE, J2SE, Net-beans, JVM ( Java Virtual Machine ) as our readers choice.We have created Objective Type Multiple Answer Question Collection that are frequent in job interviews. Our readers will find these helpful.We encourage our Readers to send in their suggestion.

If readers want to add something or explain the answers please send us mail at info@ingenuitydias.com  mentioning Question number.If you think some answers are not suitable please lets know.We will do our best to enhance content quality on our Blog.

Java Question Bank
Embedded Systems for Engineers
Embedded Electronics
C Programming Interview Questions

1. In java, gc() method is available in which package

  1.     java.lang package
  2.     java.util package
  3.     java.awt package
  4.     java.io package

Answer: 1

2. JAR file contains the compressed version of

  1.     .java file
  2.     .class file
  3.     .jsp file
  4.     None of above

Answer: 2

3. Process of creating exact copy of the existing object is called

  1.     cloning
  2.     overloading
  3.     overriding
  4.     coping

Answer: 1

4. Which is the predefined package

  1.     Lang package
  2.     io package
  3.     util package
  4.     All of above

Answer: 1

5. Which among following classes is not part of Java's collection framework

  1.     Queue
  2.     Array
  3.     Stack
  4.     Maps

Answer: 1

6. Which command is used for interpretation of java program

  1.     Java
  2.     javac
  3.     javap
  4.     none of above

Answer: 1

7. What is meaning of jar

  1.     java archived
  2.     java array
  3.     java architecture
  4.     none of these

Answer: 1

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

  1.     java
  2.     javac
  3.     javap
  4.     none of these

Answer: 2

9. What do you mean by javap

  1.     java compiler
  2.     java Interpreter
  3.     java Disassemble
  4.     java debugger

Answer: 3

10. Hot java is

  1.     System software
  2.     Web browser
  3.     IDE
  4.     Java environment

Answer: 2


11. Java is known as _______stage language

  1.     One
  2.     Two
  3.     Three
  4.     Four

Answer: 2

12. Which driver is called as thin-driver in JDBC

  1.     Type-1 driver
  2.     Type-2 driver
  3.     Type-3 driver
  4.     Type-4 driver

Answer: 4

13. How many transaction isolation levels are defined in java.sql. Connection interface

  1.     4
  2.     3
  3.     5
  4.     2

Answer: 3

14. Which method of java is invoked by JVM to reclaim the inaccessible memory location

  1.     reclaim() method
  2.     final() method
  3.     finalize() method
  4.     both b and c

Answer: 3

15. ____ allows java code to run in the JVM to call and be called by native applications

  1.     JFI
  2.     JNI
  3.     NJI
  4.     FJI

Answer: 2

16. Interfaces helps in which type of inheritance

  1.     Multiple inheritance
  2.     Multilevel inheritance
  3.     Hierarchical inheritance
  4.     None of above

Answer: 1

17. If nested try is possible

  1.     Yes
  2.     No

Answer: 1

18. Applet always executed on

  1.     Client side
  2.     Server Side

Answer: 1

19. Which method of the Applet class displays the result of applet code on screen

  1.     run() method
  2.     paint() method
  3.     drawString() method
  4.     main() method

Answer: 2

20. There is no default transaction attribute for an EJB
    False
    True
Answer: 2

21. Which command disassembles a class file

  1.     javaamd
  2.     javacmd
  3.     java
  4.     javap

Answer: 4

22. The inner class can access private members of the outer class

  1.     False
  2.     True

Answer: 2

23. In which we clone the object and their constituent parts

  1.     Shallow cloning
  2.     Deep cloning
  3.     Both of above
  4.     None of above

Answer: 2

24. Private Constructors can't be access from any derived classes neither from another class

  1.     True
  2.     False

Answer: 1

25. Which driver is efficient and always preferable for using JDBC applications

  1.     Type-4 driver
  2.     Type-3 driver
  3.     Type-2 driver
  4.     Type-1 driver

Answer: 1

26. Executable applet is

  1.     .applet file
  2.     .java html
  3.     .java file
  4.     .class file

Answer: 4

27. Which keyword is used while using interface

  1.     extend
  2.     implements
  3.     throw
  4.     throws

Answer: 2

28. Which keyword represents object of the present class

  1.     interface
  2.     package
  3.     this
  4.     static

Answer: 3

29. Which method can't be overridden

  1.     super
  2.     static
  3.     final
  4.     println

Answer: 3

30. what is jdb
    java compiler
    java Interpreter
    java Disassemble
    java debugger
Answer: 4

31. javah stands for

  1.     java compiler
  2.     java interpreter
  3.     java dissasamebler
  4.     java header file

Answer: 4

32. Main method parameter has which type of data type

  1.     int
  2.     char
  3.     string
  4.     double

Answer: 3

33. How many keywords are available in java

  1.     35
  2.     55
  3.     48
  4.     130

Answer: 3

34. Smallest individual unit in java program is known as

  1.     string
  2.     literal
  3.     token
  4.     operator

Answer: 3

35. Java intermediate code is known as

  1.     First code
  2.     Mid code
  3.     Byte code
  4.     None of above

Answer: 3

Related

Questions 478872561572871673

Post a Comment

SPAMMING will not be Appreciated.

emo-but-icon

Hot in week

Recent

Comments

Our Channel

Contact Us

Name

Email *

Message *

Follow by Email

item