DEV Community

Cover image for Advanced Java Multiple Choice Questions
Satyam Jaiswal
Satyam Jaiswal

Posted on

Advanced Java Multiple Choice Questions

Practice the most popular Advanced Java Multiple Choice Questions to improve your skills.

Image description

What are the major components of the JDBC Core Components?

  • DriverManager, Statement, ResultSet
  • DriverManager, Driver, Connection, Statement
  • DriverManager, Connection, Statement, ResultSet
  • DriverManager, Driver, Connection, Statement, ResultSet

Which package is used for importing swing controls?

  • java.awt.
  • java.swing
  • javax.swing
  • All of above

In which file database table configuration is stored?

  • .sql
  • .ora
  • .hbm
  • .dbm

How constructor can be used for a servlet?

  • Initialization
  • Constructor function
  • Setup() method
  • Both a and b

Hibernate XML configuration file name is?

  • hibernate.cg.xml
  • hibernate.cfg.xml
  • hibernate.config.xml

Which element in hibernate maps java.util.SortedMap property ?

  • < set >
  • < map >
  • < tree >
  • < list >

Which of the following is not a Java features?

  • Object-oriented
  • Architecture Neutral
  • Use of pointers
  • Dynamic

____ the first web browser developed in Java?

  • Opera
  • HotJava
  • JDB
  • Internet Explorer

____ is used to find and fix bugs in the Java programs.

  • JRE
  • JDK
  • JDB
  • JVM

Which of the following is a reserved keyword in Java?

  • main
  • object
  • system
  • strictfp

_____ consist a data and methods?

  • Class
  • Vectors
  • Variable
  • None of the above

Which one of the following is a java keyword?

  • Void
  • Public
  • While
  • Switch

Java declaration statement must end with

  • Colon
  • Comma
  • Semicolon
  • Full stop

Which one of the following languages is pure object oriented language?

  • C
  • C#
  • C++
  • Java

The java visibility modifier is

  • Public
  • Private
  • Protected
  • All of above

JDBC-ODBC bridge is

  • Multithreaded
  • Singlethreaded
  • Both A & B
  • None of the above

An Enterprise JavaBeans can be deployed in _____

  • Weblogic
  • Web sphere
  • J2EE server
  • All of above

Java Language is architechturally _______

  • specific
  • neutral
  • oriented
  • abstract

SSL stands for______

  • Secure Socket Layer
  • Server Socket Layer
  • Secure Server Layer
  • Session Service Layer

The business process file’s name needs to end in

  • xml
  • jpdl
  • jpdl.xml
  • None of the above

Thanks for reading here. Also read most popular java interview questions.

Top comments (0)