The name of a Java program file must match the name of the class with the extension Java.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
The modulus operator (%) can be used only with Integer operands.
Declarations can appear anywhere in the body of a Java method.
class.forName(...) creates an instance of java ODBC driver
Which of the following keywords are used to control access to a class member?
A catch can have comma-separated multiple arguments.
The concept of multiple inheritance is implemented in Java by
It is perfectly legal to assign a subclass object to a supper class reference.
Servlet can have ___________
It is perfectly legal to refer to any instance variable inside of a static method.
Which of the following statements are true?
We can over load methods with differences only in their return type.
When we invoke repaint () for a Component, the AWT invokes the method:
The methods wait() and noify() are defined in
The keywords reserved but not used in the initial version of Java re:
Throwing an exception always causes program termination.
We can add more than one class(es) at the time of compilation Java Beans.
forName() is a static factory method
Java always provides a default constructor to a class.
The use of protected keyword to a member in a class will restrict its visibility as follows:
All the bitwise operators have the same level of precedence in Java.
Which of the following command lines options generates documentation for all classes and methods?
A panel can not be added to another panel.
Given the codeString s = new String("abc");Which of the following calls are valid?
Objects are passed to a method by use of call-by-reference.
Which javadoc tag is used to denote a comment for methods parameters?
The default case is always required in the switch selection structure.
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
Members of a class specified as private are accessible only to the methods of the class.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter