Declaring a method synchronized guarantees that the deadlock cannot occur.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
When present, package must be the first no comment statement in the file.
executeUpdate automatically updates data because___________
Given the codeString s = new String("abc");Which of the following calls are valid?
forName() is a static factory method
Every method of a final in class is implicitly final.
The length of a string object 's1' can be obtained using the expression s1.length.
Two methods cannot have the same name in Java.
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
Which of the following are keywords?
A variable declared inside the for loop control can not be referenced out side the loop.
Which of the following methods can be used to remove a component from the display?
The programmer must explicitly create the system .in and system .out objects.
Which of the following string can be used as mode string for creating a RandomAccessFile object?
In order to connect to a database through java program we must create _______-
An EJB is a server-side component that encapsulates the business logic of an application
Which javadoc tag is used to denote a comment for methods parameters?
EJBs can be of the following type(s)None of the above
Which of the following classes are available in the java.lang package?
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
Any method in a supper class can be over ridden in its subclass.
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
The keywords reserved but not used in the initial version of Java re:
A string object can not be modified after it is created.
We can add more than one class(es) at the time of compilation Java Beans.
It is perfectly legal to refer to any instance variable inside of a static method.
One the features of is that an array can store many different types of values.
In a single Servlet class we can use____________
putValue(...) method takes _____________________-
executeUpdate(------------) returns ___________
The default case is always required in the switch selection structure.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter