class.forName(...) creates an instance of java ODBC driver
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
The check box group class is a subclass of the component class.
Two methods cannot have the same name in Java.
We would like to make a member of a class visible in all subclasses regardless of what package they…
A Java monitor must either extend thread class or implement Runnable interface.
Throwing an exception always causes program termination.
The use of protected keyword to a member in a class will restrict its visibility as follows:
It is perfectly legal to assign a subclass object to a supper class reference.
A constructor must always invoke its supper class constructor in its first statement.
Which of the following represent legal flow control statements?
Which of the following will produce a value of 22 if x=22.9:
When present, package must be the first no comment statement in the file.
The default case is always required in the switch selection structure.
All methods in an abstract class must be declared abstract.
Give file is a file object, which of the following are legal statements to create a new file.
Which of the following string can be used as mode string for creating a RandomAccessFile object?
A static class method can be invoked by simply using the name of the method alone.
Which javadoc tag is used to denote a comment for methods parameters?
Objects are passed to a method by use of call-by-reference.
In RMI we invoke client method from remote server
When we implement the Runnable interface, we must define the method
With javadoc, which of the following denotes a javadoc comment?
It is an error to have a method with the same signature in both the super class and its subclass.
forName() is a static factory method
The name of the RMI compiler is ___________
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
The programmer must explicitly create the system .in and system .out objects.
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
Which of the following are not keywords?
Given the codeString s = new String("abc");Which of the following calls are valid?