It is an error if a class with one or more abstract methods is not explicitly declared abstract.
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 statements are valid array declarations?
The use of protected keyword to a member in a class will restrict its visibility as follows:
We can add more than one class(es) at the time of compilation Java Beans.
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
It is perfectly legal to assign a subclass object to a supper class reference.
Which of the following will produce a value of 10 if x = 9.7?
When we implement the Runnable interface, we must define the method
The name of the RMI compiler is ___________
Which of the following represent legal flow control statements?
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
executeUpdate automatically updates data because___________
When we invoke repaint () for a Component, the AWT invokes the method:
Which of the following methods can be used to remove a component from the display?
In the code below, what data types the variable x can have?
class.forName(...) creates an instance of java ODBC driver
It is perfectly legal to refer to any instance variable inside of a static method.
A panel can not be added to another panel.
A catch can have comma-separated multiple arguments.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
The modulus operator (%) can be used only with Integer operands.
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?
Which of the following methods can be used to change the size of a size() *resize()
It is an error to have a method with the same signature in both the super class and its subclass.
Throwing an exception always causes program termination.
A constructor must always invoke its supper class constructor in its first statement.
With javadoc, which of the following denotes a javadoc comment?
Servlet has ___________
Which of the following will produce a value of 22 if x=22.9:
An EJB is a server-side component that encapsulates the business logic of an application
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter