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.
Which of the following methods belong to the String class?
Which of the following will produce a value of 10 if x = 9.7?
Which of the following are keywords?
executeUpdate automatically updates data because___________
We can over load methods with differences only in their return type.
Which of the following keywords are used to control access to a class member?
One the features of is that an array can store many different types of values.
In RMI before running the client program we must start RMI Registry.
Which key word can protect a class in package from accessibility by the classes outside the package?
A catch can have comma-separated multiple arguments.
What does the following line of code do?TextField text=new TextField(10);
Servlet can have ___________
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
EJBs can be of the following type(s)None of the above
All methods in an abstract class must be declared abstract.
A constructor must always invoke its supper class constructor in its first statement.
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
putValue(...) method takes _____________________-
Two methods cannot have the same name in Java.
The use of protected keyword to a member in a class will restrict its visibility as follows:
The keywords reserved but not used in the initial version of Java re:
A Java monitor must either extend thread class or implement Runnable interface.
In order to connect to a database through java program we must create _______-
An individual array element that is passed to a method and modified in that method will contain the…
The programmer must explicitly create the system .in and system .out objects.
The methods wait() and noify() are defined in
The setBackground() method is part of the class
Which of the following are the wrapper classes?
What is java -g used for?
The concept of multiple inheritance is implemented in Java by
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter