Related Questions
What is the correct answer?
4
A catch can have comma-separated multiple arguments.
What is the correct answer?
4
A Java monitor must either extend thread class or implement Runnable interface.
What is the correct answer?
4
A panel can not be added to another panel.
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
The name of the RMI compiler is ___________
What is the correct answer?
4
Which of the following classes are available in the java.lang package?
What is the correct answer?
4
If m and n are int type variables, what will be the result of the expression
'm % n' when m = -14 and n = -3?
What is the correct answer?
4
Declarations can appear anywhere in the body of a Java method.
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
The programmer must explicitly create the system .in and system .out objects.
What is the correct answer?
4
Connection, Statement are interfaces and ResultSet is a class.
What is the correct answer?
4
When the string objects are compared with ==, the result is true If the strings contain the same values.
What is the correct answer?
4
forName() is a static factory method
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
We can over load methods with differences only in their return type.
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
It is an error to catch the same type of exception in two different catch blocks associated with a particular try block.
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
All the bitwise operators have the same level of precedence in Java.
What is the correct answer?
4
The methods wait() and noify() are defined in
What is the correct answer?
4
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean expressions are not always evaluated.
What is the correct answer?
4
Which exception is thrown by the read() method of InputStream class?
What is the correct answer?
4
Servlet has ___________
C. All of the above methods.
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
Java is fully object oriented programme.
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
Frames and applets cannot be used together in the same program.
What is the correct answer?
4
executeUpdate(------------) returns ___________
B. Returns a ResultSet object
C. Returns an integer value to show the no. of updated rows
What is the correct answer?
4
Which of the following methods belong to the String class?
What is the correct answer?
4
Give file is a file object, which of the following are legal statements to create a new file.
B. FileOutputStream fos=new FileOutputStream(file);
C. FileInputStream fis=new FileInputStream(file);