Related Questions
What is the correct answer?
4
A panel can not be added to another panel.
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
When we implement an interface method, it should be declared as public.
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
Servlet can have ___________
A. get method and post method
B. get method or post method
What is the correct answer?
4
A Java monitor must either extend thread class or implement Runnable interface.
What is the correct answer?
4
Which of the following represent legal flow control statements?
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
Consider the following code snippet:
try
{
int x=0; int y=50/x;
System.out.println("Division by zero");
}
catch(ArithmeticException e)
{
System.out.println("catch block");
}
What will be the output?
D. Division by zero catch block
What is the correct answer?
4
Which of the following methods can be used to draw the outline of a square?
What is the correct answer?
4
Objects are passed to a method by use of call-by-reference.
What is the correct answer?
4
Java always provides a default constructor to a class.
What is the correct answer?
4
When we implement the Runnable interface, we must define the method
What is the correct answer?
4
JdbcOdbcDriver is an object of Object class
What is the correct answer?
4
Which of the following represent legal flow control statements?
What is the correct answer?
4
The name of a Java program file must match the name of the class with the extension Java.
What is the correct answer?
4
Which of the following control expressions are valid for an if statement?
What is the correct answer?
4
Which of the following are keywords?
What is the correct answer?
4
The check box group class is a subclass of the component class.
What is the correct answer?
4
Declarations can appear anywhere in the body of a Java method.
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
Which of the following are the wrapper classes?
What is the correct answer?
4
DataInput is
A. An abstract class defined is java.io.
B. A class we can use to read primitive data types.
C. An interface that defines methods to open files.
D. An interface that defines methods to read primitive data types.
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 catch can have comma-separated multiple arguments.
What is the correct answer?
4
Which of the following classes are available in the java.lang package?
What is the correct answer?
4
Throwing an exception always causes program termination.
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
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
Which of the following methods belong to the String class?