Connection, Statement are interfaces and ResultSet is a class.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
It is an error if a class with one or more abstract methods is not explicitly declared abstract.
Which of the following methods can be used to remove a component from the display?
In RMI before running the client program we must start RMI Registry.
The use of protected keyword to a member in a class will restrict its visibility as follows:
Which javadoc tag is used to denote a comment for methods parameters?
executeUpdate automatically updates data because___________
class.forName(...) creates an instance of java ODBC driver
All methods in an abstract class must be declared abstract.
An EJB is a server-side component that encapsulates the business logic of an application
The import statement is always the first no comment statement in a Java program files.
The methods wait() and noify() are defined in
The concept of multiple inheritance is implemented in Java by
Give file is a file object, which of the following are legal statements to create a new file.
We would like to make a member of a class visible in all subclasses regardless of what package they…
Which of the following control expressions are valid for an if statement?
Which of the following classes are available in the java.lang package?
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
A catch can have comma-separated multiple arguments.
An individual array element that is passed to a method and modified in that method will contain the…
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
The name of a Java program file must match the name of the class with the extension Java.
When we implement the Runnable interface, we must define the method
It is perfectly legal to refer to any instance variable inside of a static method.
Which of the following keywords are used to control access to a class member?
Declaring a method synchronized guarantees that the deadlock cannot occur.
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
The setBackground() method is part of the class
All the bitwise operators have the same level of precedence in Java.
JdbcOdbcDriver is an object of Object class
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter