Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following option leads to the portability and security of Java?

Answer»

Which of the following option leads to the PORTABILITY and security of Java?
Choose the correct option from below list
(1)Bytecode is EXECUTED by JVM
(2)The applet makes the Java code SECURE and portable
(3)Use of EXCEPTION handling
(4)Dynamic binding between objects

Answer:-(1)Bytecode is executed by JVM

2.

Native-protocol pure Java converts _________ into the _________ used by DBMSs directly.

Answer»

Native protocol pure Java CONVERTS _________ into the _________ USED by DBMSs directly.
Choose the correct option from below list
(1)JDBC calls, NETWORK protocol
(2)ODBC class, network protocol
(3)ODBC class, user call
(4)JDBC calls, user call

Answer:-(1)JDBC calls, network protocol

3.

Which is the root class of all AWT events

Answer»

Which is the root CLASS of all AWT events
Choose the correct OPTION from below list
(1)java.awt.ActionEvent
(2)java.awt.AWTEvent
(3)java.awt.event.AWTEvent
(4)java.awt.event.Event

Answer:-(2)java.awt.AWTEvent

4.

Filters were officially introduced in the Servlet _________ specification.

Answer» FILTERS were officially introduced in the SERVLET _________ specification.
Choose the correct option from below LIST
(1)2.1
(2)2.3
(3)2.2
(4)2.4

Answer:-(2)2.3
5.

Which one of the following is true for Java

Answer»

Which ONE of the FOLLOWING is true for Java
Choose the CORRECT option from below list
(1)Java is object-oriented and interpreted
(2)Java is efficient and faster than C
(3)Java is the CHOICE of everyone.
(4)Java is not robust.

Answer:-(1)Java is object-oriented and interpreted

6.

_________ is used to find and fix bugs in the Java programs

Answer»

_________ is used to find and fix bugs in the Java programs
Choose the correct OPTION from below list
(1)JVM
(2)JDK
(3)JDB
(4)JRE

Answer:-(3)JDB

7.

All Java classes are derived from

Answer»

All JAVA CLASSES are DERIVED from
Choose the correct option from below LIST
(1)java.lang.Class
(2)java.util.Name
(3)java.lang.Object
(4)java.awt.Window

Answer:-(3)java.lang.Object

8.

The u0021 article referred to as a

Answer»

The u0021 article REFERRED to as a
Choose the correct options from below list
(1)Unicode escape sequence
(2)OCTAL escape
(3)Hexadecimal
(4)Line feed

Answer:-(1)Unicode escape sequence
Note:-Backslash " " is ASCII character 92 and "u" is ASCII 117. And a FOUR hexadeciaml DIGITS

9.

Java servlets are an efficient and powerful solution for creating _________ for the web.

Answer»

Java SERVLETS are an efficient and powerful SOLUTION for creating _________ for the web.
Choose the CORRECT option from below list
(1)Dynamic content
(2)Static content
(3)Hardware
(4)Both a and b

Answer:-(1)Dynamic content

10.

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

Answer»

_____ is used to find and fix bugs in the JAVA programs.
Choose the correct OPTIONS from below list
(1)JVM
(2)JRE
(3)JDK
(4)JDB

Answer:-(4)JDB
Notes:-Java Debugger (JDB or jdb) is a command LINE java debugger that DEBUGS the java class

11.

The command javac is used to

Answer»

The command javac is used to
Choose the correct option from below LIST
(1)DEBUG a JAVA program
(2)compile a java program
(3)interpret a java program
(4)EXECUTE a java program

Answer:-(2)compile a java program

12.

Which method will a web browser call on a new applet?

Answer»

Which method will a web browser call on a new applet?
Choose the correct OPTION from below list
(1)MAIN method
(2)destroy method
(3)execute method
(4)init method

Answer:-(4)init method

13.

Java has its origin in

Answer» JAVA has its origin in
Choose the correct option from below list
(1)C PROGRAMMING language
(2)PERRL
(3)COBOL
(4)Oak programming language

Answer:-(4)Oak programming language
14.

For the execution of DELETE SQL query in JDBC, _______ method must be used.

Answer»

For the execution of DELETE SQL query in JDBC, _______ method must be used.
Choose the correct option from below LIST
(1)EXECUTEQUERY()
(2)executeDeleteQuery()
(3)EXECUTEUPDATE()
(4)executeDelete()

Answer:-(3)executeUpdate()

15.

Which of the following is not mandatory in a variable declaration?

Answer»

Which of the FOLLOWING is not mandatory in a variable declaration?
Choose the correct option from below list
(1)a semicolon
(2)an identifier
(3)an assignment
(4)a DATA type

Answer:-(3)an assignment

16.

An expression involving byte, int, and literal numbers is promoted to which of these?

Answer»

An expression involving byte, int, and literal numbers is promoted to which of these?
CHOOSE the CORRECT options from below LIST
(1)int
(2)LONG
(3)byte
(4)float

Answer:-(1)int

17.

Explain which of the following option leads to the portability and security of Java?

Answer»

Explain which of the FOLLOWING option leads to the PORTABILITY and security of Java?
Choose the correct option from below LIST
(1)Bytecode is executed by JVM
(2)The applet makes the Java code secure and portable
(3)Use of exception HANDLING
(4)Dynamic binding between objects

Answer:-(1)Bytecode is executed by JVM

18.

Java programs are

Answer»

Java PROGRAMS are
Choose the CORRECT OPTION from below list
(1)Faster than others
(2)Platform independent
(3)Not reusable
(4)Not scalable

Answer:-(2)Platform independent

19.

What is the return type of the hashCode() method in the Object class?

Answer»

What is the return type of the hashCode() method in the Object CLASS?
CHOOSE the correct options from below list
(1)Object
(2)int
(3)long
(4)void

Answer:-(2)int
Note:- Return type of hashCode() method is an INTEGER

20.

Can you define range of short data type in Java?

Answer»

Can you define range of short DATA type in Java?
Choose the CORRECT OPTIONS from below list
(1)-128 to 127
(2)-32768 to 32767
(3)-2147483648 to 2147483647
(4)None of the mentioned

Answer:-(2)-32768 to 32767

21.

Prepared Statement object in JDBC used to execute _______ queries.

Answer»

Prepared Statement object in JDBC used to execute _______ queries.
Choose the correct option from below LIST
(1)EXECUTABLE
(2)SIMPLE
(3)HIGH level
(4)Parameterized

Answer:-(4)Parameterized

22.

What would happen if String[]args is not included as an argument in the main method?

Answer»

What would happen if String[]ARGS is not included as an argument in the main method?
Choose the CORRECT option from below LIST
(1)No error
(2)Compilation error
(3)Program wonot RUN
(4)Program exit

Answer:-(3)Program wonot run

23.

Which method of the Class is used to determine the name of a class represented by the class object as a String?

Answer»

Which method of the Class is used to DETERMINE the name of a class REPRESENTED by the class object as a String?
Choose the correct options from below LIST
(1)getClass()
(2)intern()
(3)getName()
(4)toString()

ANSWER:-(3)getName()

24.

Which of the following creates a List of 3 visible items and multiple selections abled?

Answer»

Which of the FOLLOWING creates a List of 3 visible ITEMS and multiple selections ABLED?
Choose the CORRECT options from below list
(1)new List(false, 3)
(2)new List(3, true)
(3)new List(true, 3)
(4)new List(3, false)

Answer:-(2)new List(3, true)

25.

Select tool is used to generate API documentation in HTML format from doc comments in source code?

Answer»

Select tool is used to GENERATE API documentation in HTML format from doc comments in source code?
CHOOSE the CORRECT options from below list
(1)javap tool
(2)javah command
(3)javaw command
(4)Javadoc tool

Answer:-(4)Javadoc tool
Note:-Javadoc is a tool that is used to generate API documentation in HTML format from the Java source files.

26.

select option leads to the portability and security of Java?

Answer»

select option leads to the portability and SECURITY of Java?
CHOOSE the correct options from below list
(1)Bytecode is executed by JVM
(2)The applet makes the Java code secure and portable
(3)Use of exception handling
(4)Dynamic BINDING between objects

Answer:-(1)Bytecode is executed by JVM

27.

Which package contains the Random class?

Answer»

Which package CONTAINS the Random CLASS?
Choose the correct OPTIONS from below list
(1)java.io package
(2)java.lang package
(3)java.awt package
(4)java.util package

Answer:-(4)java.util package

28.

Which of the following is not a Java features?

Answer»

Which of the following is not a Java FEATURES?
Choose the correct options from below list
(1)Dynamic
(2)ARCHITECTURE Neutral
(3)USE of pointers
(4)Object-oriented

Answer:-(3)Use of pointers