Related Questions
What is the correct answer?
4
Which of the following represent legal flow control statements?
What is the correct answer?
4
A string object can not be modified after it is created.
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
Throwing an exception always causes program termination.
What is the correct answer?
4
EJBs can be of the following type(s)
None of the above
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 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
Frames and applets cannot be used together in the same program.
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
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
Connection, Statement are interfaces and ResultSet is a class.
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
The concept of multiple inheritance is implemented in Java by
A. extending two or more classes
B. extending one class and implementing one or more interfaces
What is the correct answer?
4
A package is a collection of
D. classes and interfaces
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 setBackground() method is part of the class
What is the correct answer?
4
Two methods cannot have the same name in Java.
What is the correct answer?
4
Which of the following methods belong to the String class?
What is the correct answer?
4
We can over load methods with differences only in their return type.
What is the correct answer?
4
It is perfectly legal to refer to any instance variable inside of a static method.
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
class.forName(...) creates an instance of java ODBC driver
What is the correct answer?
4
Objects are passed to a method by use of call-by-reference.
What is the correct answer?
4
Any class may be inherited by another class in the same package.
What is the correct answer?
4
executeUpdate automatically updates data because___________
A. auto commit is on, by default
B. It performs a hidden commit statement as well
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
Members of a class specified as private are accessible only to the methods of the class.
What is the correct answer?
4
A class may be both abstract and final.
What is the correct answer?
4
A constructor must always invoke its supper class constructor in its first statement.