Throwing an exception always causes program termination.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
executeUpdate automatically updates data because___________
Any class may be inherited by another class in the same package.
Java always provides a default constructor to a class.
Which are the valid ways to create DataInputStream streams?
In RMI before running the client program we must start RMI Registry.
We would like to make a member of a class visible in all subclasses regardless of what package they…
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
A catch can have comma-separated multiple arguments.
When the string objects are compared with ==, the result is true If the strings contain the same values.
Objects are passed to a method by use of call-by-reference.
To delete a file, we can use an instance of class file.
Which of the following statements are valid array declarations?
JdbcOdbcDriver is an object of Object class
Give file is a file object, which of the following are legal statements to create a new file.
What does the following line of code do?TextField text=new TextField(10);
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
The use of protected keyword to a member in a class will restrict its visibility as follows:
Which of the following classes are available in the java.lang package?
Which of the following string can be used as mode string for creating a RandomAccessFile object?
When present, package must be the first no comment statement in the file.
It is perfectly legal to assign a subclass object to a supper class reference.
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
Servlet has ___________
Frames and applets cannot be used together in the same program.
A Java monitor must either extend thread class or implement Runnable interface.
Given the codeString s = new String("abc");Which of the following calls are valid?
Two methods cannot have the same name in Java.
A final class may not have any abstract method.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter