Related Questions
What is the correct answer?
4
Which of the following classes are available in the java.lang package?
What is the correct answer?
4
Frames and applets cannot be used together in the same program.
What is the correct answer?
4
Which of the following are the wrapper classes?
What is the correct answer?
4
The modulus operator (%) can be used only with Integer operands.
What is the correct answer?
4
Consider the following statements:
int x = 10, y = 15;
x = ((x < y) ? (y + x) : (y - x);
What will be the value of x after executing these statements?
D. Error can't be executed.
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
In RMI before running the client program we must start RMI Registry.
What is the correct answer?
4
Which of the following will produce a value of 10 if x = 9.7?
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
A thread can make second thread ineligible for execution by calling the suspend (-) method on second thread.
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
Which of the following methods belong to the String class?
What is the correct answer?
4
To delete a file, we can use an instance of class file.
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
An individual array element that is passed to a method and modified in that method will contain the modified value when the called method completes execution.
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
The keywords reserved but not used in the initial version of Java re:
What is the correct answer?
4
Submit button always fires doPost(...)
What is the correct answer?
4
A final class may not have any abstract method.
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
When we implement an interface method, it should be declared as public.
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
All the bitwise operators have the same level of precedence in Java.
What is the correct answer?
4
Servlet has ___________
C. All of the above methods.
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
Which of the following control expressions are valid for an if statement?
What is the correct answer?
4
The check box group class is a subclass of the component class.
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 RMI we invoke client method from remote server
What is the correct answer?
4
A method declared as static can not access non-static class members.