Related Questions
What is the correct answer?
4
In a single Servlet class we can use____________
A. doGet(...) method only
B. doPost(...) method only
C. doGet(...) method and doPost(...) method both at a time.
What is the correct answer?
4
Which of the following methods can be used to remove a component from the display?
What is the correct answer?
4
The keywords reserved but not used in the initial version of Java re:
What is the correct answer?
4
Which of the following represent legal flow control statements?
What is the correct answer?
4
The name of the RMI compiler is ___________
What is the correct answer?
4
The use of protected keyword to a member in a class will restrict its visibility as follows:
A. Visibility only in the class and its subclasses in the same package.
B. Visibility only inside the same package.
C. Visibility in all classes in the same package and subclasses in other packages.
D. Visibility only in the class where it is declared.
What is the correct answer?
4
Objects are passed to a method by use of call-by-reference.
What is the correct answer?
4
Every method of a final in class is implicitly final.
What is the correct answer?
4
EJBs can be of the following type(s)
None of the above
What is the correct answer?
4
The setBackground() method is part of the class
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
Given the code
String s = new String("abc");
Which of the following calls are valid?
What is the correct answer?
4
Throwing an exception always causes program termination.
What is the correct answer?
4
We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would achieve this?
What is the correct answer?
4
Session bean
A. Represents a single client inside the application server
D. Satisfies all of the above conditions
What is the correct answer?
4
When we implement an interface method, it should be declared as public.
What is the correct answer?
4
Which exception is thrown by the read() method of InputStream class?
What is the correct answer?
4
forName() is a static factory method
What is the correct answer?
4
Java is fully object oriented programme.
What is the correct answer?
4
The modulus operator (%) can be used only with Integer operands.
What is the correct answer?
4
Which of the following command lines options generates documentation for all classes and methods?
What is the correct answer?
4
A static class method can be invoked by simply using the name of the method alone.
What is the correct answer?
4
Connection, Statement are interfaces and ResultSet is a class.
What is the correct answer?
4
In RMI we invoke client method from remote server
What is the correct answer?
4
In the code below, what data types the variable x can have?
What is the correct answer?
4
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
What is the correct answer?
4
Any class may be inherited by another class in the same package.
What is the correct answer?
4
We can over load methods with differences only in their return type.
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
When we implement the Runnable interface, we must define the method