When we implement an interface method, it should be declared as public.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
Which of the following methods belong to the String class?
The break statement is required in the default case of a switch selection structure.
Given the codeString s = new String("abc");Which of the following calls are valid?
What does the following line of code do?TextField text=new TextField(10);
Which of the following statements are valid array declarations?
We can over load methods with differences only in their return type.
A class may be both abstract and final.
Every call to wait has a corresponding call to notify that will eventually end the wafting.
When present, package must be the first no comment statement in the file.
A method declared as static can not access non-static class members.
Throwing an exception always causes program termination.
EJBs can be of the following type(s)None of the above
We would like to make a member of a class visible in all subclasses regardless of what package they…
Which of the following are keywords?
The methods wait() and noify() are defined in
All methods in an abstract class must be declared abstract.
A panel can not be added to another panel.
JdbcOdbcDriver is an object of Object class
Which of the following will produce a value of 22 if x=22.9:
Two methods cannot have the same name in Java.
A constructor must always invoke its supper class constructor in its first statement.
When the string objects are compared with ==, the result is true If the strings contain the same values.
Any class may be inherited by another class in the same package.
Declaring a method synchronized guarantees that the deadlock cannot occur.
One the features of is that an array can store many different types of values.
Members of a class specified as private are accessible only to the methods of the class.
In order to connect to a database through java program we must create _______-
The default case is always required in the switch selection structure.
When we implement the Runnable interface, we must define the method
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter