github

Made bySaurav Hathi

MCQ Test Java: Basic Concepts 2

Q1:

From where break statement causes an exit?

Tags:
Section:
Core Programming
Options:
Q2:

Which of the following is a method having same name as that of it’s class in java and C++?

Tags:
Section:
Core Programming
Options:
Q3:

Which of these operators can be used to concatenate two or more String objects in java?

Tags:
Section:
Core Programming
Options:
Q4:

Which of these is a wrapper for data type int in java?

Tags:
Section:
Core Programming
Options:
Q5:

In java, which of the following is method of wrapper Integer for converting the value of an object into int?

Tags:
Section:
Core Programming
Options:
Q6:

Standard output variable ‘out’ is defined in which class in java?

Tags:
Section:
Core Programming
Options:
Q7:

Which of the following is the advantage of BigDecimal over double in java?

Tags:
Section:
Core Programming
Options:
Q8:

Which two statements produce the same result in java?

16*4

16>>2

16/2^2

16>>>2

Tags:
Section:
Core Programming
Options:
Q9:

JVM stands for ___________ .

Tags:
Section:
Core Programming
Options:
Q10:

Which class loader loads jar files from JDK directory?

Tags:
Section:
Core Programming
Options:
Q11:

Which of the following has replaced PermGen in java 8 update?

Tags:
Section:
Core Programming
Options:
Q12:

Classes and Methods are stored in which space in java?

Tags:
Section:
Core Programming
Options:
Q13:

Which of these are types of multitasking?

Tags:
Section:
Core Programming
Options:
Q14:

What does not prevent JVM from terminating?

Tags:
Section:
Core Programming
Options:
Q15:

What does AWT stands for?

Tags:
Section:
Core Programming
Options:
Q16:

Which of these methods is a part of Abstract Window Toolkit (AWT)?

Tags:
Section:
Core Programming
Options:
Q17:

Which of the following is advantage of using PreparedStatement in Java?

Tags:
Section:
Core Programming
Options:
Q18:

Which of the following is used to call stored procedure in java?

Tags:
Section:
Core Programming
Options:
Q19:

What is an event in delegation event model used by Java programming language?

Tags:
Section:
Core Programming
Options:
Q20:

How does applet and servlet communicate in java?

Tags:
Section:
Core Programming
Options:
Q21:

In CGI, process starts with each request and will initiate OS level process.

Tags:
Section:
Core Programming
Options:
Q22:

Which class provides system independent server side implementation in java?

Tags:
Section:
Core Programming
Options:
Q23:

What does bind() method of ServerSocket offer?

Tags:
Section:
Core Programming
Options:
Q24:

What is the java method for ping?

Tags:
Section:
Core Programming
Options:
Q25:

In java, hasNext() method of an iterator returns which type of value?

Tags:
Section:
Core Programming
Options: