DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
A package is a collection of
A Java monitor must either extend thread class or implement Runnable interface.
It is perfectly legal to assign a subclass object to a supper class reference.
putValue(...) method takes _____________________-
An individual array element that is passed to a method and modified in that method will contain the…
The break statement is required in the default case of a switch selection structure.
We can add more than one class(es) at the time of compilation Java Beans.
Throwing an exception always causes program termination.
executeUpdate(------------) returns ___________
The concept of multiple inheritance is implemented in Java by
When we implement an interface method, it should be declared as public.
When present, package must be the first no comment statement in the file.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
The import statement is always the first no comment statement in a Java program files.
What is java -g used for?
The default case is always required in the switch selection structure.
Which of the following are not keywords?
In a single Servlet class we can use____________
Give file is a file object, which of the following are legal statements to create a new file.
Which of the following represent legal flow control statements?
Members of a class specified as private are accessible only to the methods of the class.
Which are the valid ways to create DataInputStream streams?
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
Which of the following string can be used as mode string for creating a RandomAccessFile object?
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
It is an error to have a method with the same signature in both the super class and its subclass.
Objects are passed to a method by use of call-by-reference.
In the code below, what data types the variable x can have?
Which of the following methods can be used to change the size of a size() *resize()
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter