Related Questions
What is the correct answer?
4
A panel can not be added to another panel.
What is the correct answer?
4
A package is a collection of
D. classes and interfaces
What is the correct answer?
4
Declarations can appear anywhere in the body of a Java method.
What is the correct answer?
4
A class may be both abstract and final.
What is the correct answer?
4
Which key word can protect a class in package from accessibility by the classes outside the package?
D. don't use any keyword at all(make it default)
What is the correct answer?
4
The import statement is always the first no comment statement in a Java program files.
What is the correct answer?
4
Which of the following statements are valid array declarations?
What is the correct answer?
4
The name of the RMI compiler is ___________
What is the correct answer?
4
Which of the following keywords are used to control access to a class member?
What is the correct answer?
4
We can add more than one class(es) at the time of compilation Java Beans.
What is the correct answer?
4
The setBackground() method is part of the class
What is the correct answer?
4
forName() is a static factory method
What is the correct answer?
4
Consider the following class definitions:
class maths {
student student1;
}
class student {
String name;
}
This code represents:
A. an 'is a' relationship
B. a 'has a' relationship
What is the correct answer?
4
The modulus operator (%) can be used only with Integer operands.
What is the correct answer?
4
What is java -g used for?
B. Executing a class with optimization turned off
C. To provided information about deprecated methods
What is the correct answer?
4
Which of the following represent legal flow control statements?
What is the correct answer?
4
Connection, Statement are interfaces and ResultSet is a class.
What is the correct answer?
4
A variable declared inside the for loop control can not be referenced out side the loop.
What is the correct answer?
4
The default case is always required in the switch selection structure.
What is the correct answer?
4
Which of the following methods can be used to change the size of a
size() *
resize()
What is the correct answer?
4
A constructor must always invoke its supper class constructor in its first statement.
What is the correct answer?
4
What is error in the following class definitions?
abstract class xy {
abstract sum(int x, int y) {
}
}
A. class header is not define properly
B. constructor is no defined
C. method is not defined properly
What is the correct answer?
4
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
What is the correct answer?
4
Any method in a supper class can be over ridden in its subclass.
What is the correct answer?
4
Submit button always fires doPost(...)
What is the correct answer?
4
Which of the following are keywords?
What is the correct answer?
4
Two methods cannot have the same name in Java.
What is the correct answer?
4
executeUpdate automatically updates data because___________
A. auto commit is on, by default
B. It performs a hidden commit statement as well
What is the correct answer?
4
With javadoc, which of the following denotes a javadoc comment?
What is the correct answer?
4
When we implement an interface method, it should be declared as public.