Related Questions
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
Connection, Statement are interfaces and ResultSet is a class.
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 keywords are used to control access to a class member?
What is the correct answer?
4
Consider the following class definition.
Class Student extends String
{
}
What happens when we try to compile this class?
A. Will not compile because class body is not defined
B. Will not compile because class is not declared public
C. Will compile successfully.
D. Will not compile because String is abstract
What is the correct answer?
4
Which of the following are keywords?
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
The keywords reserved but not used in the initial version of Java re:
What is the correct answer?
4
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
What is the correct answer?
4
A variable declared inside the for loop control can not be referenced out side the loop.
What is the correct answer?
4
The methods wait() and noify() are defined in
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
An EJB is a server-side component that encapsulates the business logic of an application
What is the correct answer?
4
The import statement is always the first no comment statement in a Java program files.
What is the correct answer?
4
What does the following line of code do?
TextField text=new TextField(10);
A. Creates text object that can hold 10 rows of text.
B. Creates text object that can hold 10 columns of text.
C. Creates the object text and initializes it with the value 10.
What is the correct answer?
4
Which key word can protect a class in package from accessibility by the classes outside the package?
D. don't use any keyword at all(make it default)
What is the correct answer?
4
In RMI we invoke client method from remote server
What is the correct answer?
4
forName() is a static factory method
What is the correct answer?
4
The check box group class is a subclass of the component class.
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
A final class may not have any abstract method.
What is the correct answer?
4
It is an error if a class with one or more abstract methods is not explicitly declared abstract.
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
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
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
What is the correct answer?
4
The modulus operator (%) can be used only with Integer operands.
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);
What is the correct answer?
4
Any class may be inherited by another class in the same package.
What is the correct answer?
4
The break statement is required in the default case of a switch selection structure.
What is the correct answer?
4
When the string objects are compared with ==, the result is true If the strings contain the same values.