Related Questions
What is the correct answer?
4
When present, package must be the first no comment statement in the file.
What is the correct answer?
4
The setBackground() method is part of the class
What is the correct answer?
4
The length of a string object 's1' can be obtained using the expression s1.length.
What is the correct answer?
4
Java always provides a default constructor to a class.
What is the correct answer?
4
Which exception is thrown by the read() method of InputStream class?
What is the correct answer?
4
putValue(...) method takes _____________________-
A. Two arguments of object type
B. First one is of a character type and second one is of an object type
C. First one is of an object type and second one is of a character type
What is the correct answer?
4
forName() is a static factory method
What is the correct answer?
4
A class may be both abstract and final.
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
Which of the following are not keywords?
What is the correct answer?
4
Which of the following will produce a value of 22 if x=22.9:
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
JSP files creates ________________
B. html files and java files
C. java files and class files
What is the correct answer?
4
Every call to wait has a corresponding call to notify that will eventually end the wafting.
What is the correct answer?
4
Which javadoc tag is used to denote a comment for methods parameters?
What is the correct answer?
4
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
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
In RMI before running the client program we must start RMI Registry.
What is the correct answer?
4
Which of the following represent legal flow control statements?
What is the correct answer?
4
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
What is the correct answer?
4
A Java monitor must either extend thread class or implement Runnable interface.
What is the correct answer?
4
class.forName(...) creates an instance of java ODBC driver
What is the correct answer?
4
It is an error to have a method with the same signature in both the super class and its subclass.
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
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
In the code below, what data types the variable x can have?
What is the correct answer?
4
In RMI we invoke client method from remote server
What is the correct answer?
4
It is perfectly legal to assign a subclass object to a supper class reference.
What is the correct answer?
4
Submit button always fires doPost(...)
What is the correct answer?
4
Declaring a method synchronized guarantees that the deadlock cannot occur.