Related Questions
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
Servlet can have ___________
A. get method and post method
B. get method or post 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
Which of the following statements are true?
A. An abstract class may not have any final methods?
B. A final class may not have any abstracts methods.
C. Transient variables must be static.
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
In the code below, what data types the variable x can have?
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
Which of the following string can be used as mode string for creating a RandomAccessFile object?
What is the correct answer?
4
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
What is the correct answer?
4
Declarations can appear anywhere in the body of a Java method.
What is the correct answer?
4
Which javadoc tag is used to denote a comment for methods parameters?
What is the correct answer?
4
The programmer must explicitly create the system .in and system .out objects.
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
It is perfectly legal to assign a subclass object to a supper class reference.
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
One the features of is that an array can store many different types of values.
What is the correct answer?
4
A catch can have comma-separated multiple arguments.
What is the correct answer?
4
Which of the following statements are valid array declarations?
What is the correct answer?
4
Members of a class specified as private are accessible only to the methods 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 is fully object oriented programme.
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
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
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
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
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 represent legal flow control statements?
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
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
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.