Which of the following classes are available in the java.lang package?
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
The modulus operator (%) can be used only with Integer operands.
We can over load methods with differences only in their return type.
Objects are passed to a method by use of call-by-reference.
executeUpdate(------------) returns ___________
The name of a Java program file must match the name of the class with the extension Java.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
Which of the following are keywords?
The keywords reserved but not used in the initial version of Java re:
A class may be both abstract and final.
Any method in a supper class can be over ridden in its subclass.
It is perfectly legal to assign a subclass object to a supper class reference.
The check box group class is a subclass of the component class.
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
Servlet has ___________
A final class may not have any abstract method.
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
A Java monitor must either extend thread class or implement Runnable interface.
Which javadoc tag is used to denote a comment for methods parameters?
Declaring a method synchronized guarantees that the deadlock cannot occur.
The setBackground() method is part of the class
Frames and applets cannot be used together in the same program.
EJBs can be of the following type(s)None of the above
Which of the following control expressions are valid for an if statement?
Declarations can appear anywhere in the body of a Java method.
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
Which of the following keywords are used to control access to a class member?
A JSP file can be stored_________________
All methods in an abstract class must be declared abstract.
Which of the following command lines options generates documentation for all classes and methods?
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter