06th
Sep
Advanced Java MCQ

Advanced Java MCQ

  • Admin
  • 06th Sep, 2021
  • 491 Followers

Advanced Java MCQ

Following are mostly asked Advanced java MCQ test that are designed for professionals like you to crack you interviews. You can take this Advanced java online test before appearing to you real interview. This Advanced java quiz there are around 30+ multiple choice questions on Advanced java with four options.

1) How constructor can be used for a servlet?

  • A. Initialization
  • B. Setup() method
  • C. Constructor function
  • D. Initialization and Constructor function

2) Which method is used to get three-letter abbreviation for locale’s country in servlets?

  • A. Locale.getISO3Country()
  • B. Request.getISO3Country()
  • C. Response.getISO3Country()
  • D. Local.retrieveISO3Country()

3) Which of the following is not a Java features?

  • A. Dynamic
  • B. Use of pointers
  • C. Object-oriented
  • D. Architecture Neutral

4) ___ is used to find and fix bugs in the Java programs

  • A. JRE
  • B. JDK
  • C. JVM
  • D. JDB

5) Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?

  • A. javah command
  • B. javadoc tool
  • C. javap tool
  • D. javaw command
Download Free : Advanced Java MCQ PDF

6) Which package contains the Random class?

  • A. java.util package
  • B. java.io package
  • C. java.awt package
  • D. java.lang package

7) How many threads can be executed at a time?

  • A. One threads
  • B. Two threads
  • C. Multiple threads
  • D. None Of Above

8) What are the major components of the JDBC?

  • A. DriverManager, Statement, and ResultSet
  • B. DriverManager, Driver, Connection, and Statement
  • C. DriverManager, Connection, Statement, and ResultSet
  • D. DriverManager, Driver, Connection, Statement, and ResultSet

9) Which of the following is advantage of using JDBC connection pool?

  • A. Slow performance
  • B. Better performance
  • C. Using less memory
  • D. Using more memory

10) To run a compiled java program the machine must have the following loaded and running

  • A. compiler
  • B. bytecode
  • C. virtual machine
  • D. Web browser

11) Which package is used for importing swing components?

  • A. java.awt
  • B. javax.swing
  • C. java.swing
  • D. All of the Above

12) Which component is used to compile, debug and execute the java program?

  • A. JDK
  • B. JVM
  • C. JRE
  • D. JIT

13) Which of the following is not a core interface of Hibernate?

  • A. Criteria
  • B. Session
  • C. Configuration
  • D. SessionManagement

14) In which file database table configuration is stored?

  • A. .sql
  • B. .ora
  • C. .dbm
  • D. .hbm

15) Which of the following is a business component in J2EE?

  • A. Applets
  • B. Application clients
  • C. Enterprise Java Beans (EJB)
  • D. Java servlet and JSP (Web)

16) The first web browser developed in Java?

  • A. Opera
  • B. Internet Explorer
  • C. Netscape Navigator
  • D. HotJava

17) The symbol, In java means?

  • A. AND
  • B. Logical NOT
  • C. Logical OR
  • D. Logical XOR

18) Java is a Successor of which programming language?

  • A. C
  • B. C++
  • C. Pascal
  • D. None Of Above

19) Java language was originally developed for operating?

  • A. TV
  • B. TV Set-top box
  • C. Embedded System equipment
  • D. All of the Above

20) Why the name OAK renamed to java?

  • A. because there was another language called OAK
  • B. because the name was not relevant to the language
  • C. because the language was unsuccessful
  • D. All of the Above

21) After first public release java was targeted at _______

  • A. Internet development
  • B. Desktop Development
  • C. Operating System Development
  • D. Search Engine Development

22) What is byte code in Java?

  • A. Name of Java source code file
  • B. Code generated by a Java compiler
  • C. Code generated by a Java Virtual Machine
  • D. Block of code written inside a class

23) Which of the following is not a Java features?

  • A. Dynamic
  • B. Object-oriented
  • C. Architecture Neutral
  • D. Use of pointers

24) In Java, a try block should immediately be followed by one or more

  • A. Throw
  • B. Run
  • C. Exit
  • D. Catch

25) Java compiler java translates Java source code into ______

  • A. Bit Code
  • B. Byte Code
  • C. Machine language
  • D. Assemble language

26) How Does Struts Work?

  • A. spring seats
  • B. shock absorbers
  • C. strut bearing
  • D. All of the Above

27) Dynamic array which can grow or shrink its size in the Vector in Java.

  • A. True
  • B. False

28) A class whose object wraps or contains primitive data types is called wrapper class.

  • A. True
  • B. False

29) The default value of a static integer variable of a class in Java is

  • A. Null
  • B. 1
  • C. Garbage Value

30) Multiple inheritance means

  • A. more classes inheriting from one super class
  • B. one class inheriting from more super classes
  • C. more classes inheriting from more super classes
  • D. None Of Above

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
May
Html MCQ
01st
Apr
MYSQL MCQ
01st
May
Java MCQ
01st
May
WPF MCQ
01st
Sep
AWS MCQ