We can add more than one class(es) at the time of compilation Java Beans.
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 command lines options generates documentation for all classes and methods?
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
A constructor must always invoke its supper class constructor in its first statement.
The use of protected keyword to a member in a class will restrict its visibility as follows:
A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
With javadoc, which of the following denotes a javadoc comment?
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
The import statement is always the first no comment statement in a Java program files.
The setBackground() method is part of the class
putValue(...) method takes _____________________-
Connection, Statement are interfaces and ResultSet is a class.
A final class may not have any abstract method.
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
A Java monitor must either extend thread class or implement Runnable interface.
When present, package must be the first no comment statement in the file.
All methods in an abstract class must be declared abstract.
The keywords reserved but not used in the initial version of Java re:
Which of the following keywords are used to control access to a class member?
It is an error to have a method with the same signature in both the super class and its subclass.
Which of the following will produce a value of 10 if x = 9.7?
An EJB is a server-side component that encapsulates the business logic of an application
Which of the following control expressions are valid for an if statement?
Which of the following methods can be used to remove a component from the display?
Which key word can protect a class in package from accessibility by the classes outside the package?
Which exception is thrown by the read() method of InputStream class?
A package is a collection of
executeUpdate automatically updates data because___________
Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter