Which of the following string can be used as mode string for creating a RandomAccessFile object?
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
Frames and applets cannot be used together in the same program.
The programmer must explicitly create the system .in and system .out objects.
A variable declared inside the for loop control can not be referenced out side the loop.
Which of the following methods can be used to change the size of a size() *resize()
Which of the following represent legal flow control statements?
Which of the following control expressions are valid for an if statement?
JdbcOdbcDriver is an object of Object class
Two methods cannot have the same name in Java.
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
A class may be both abstract and final.
Servlet has ___________
A static class method can be invoked by simply using the name of the method alone.
A Java monitor must either extend thread class or implement Runnable interface.
The setBackground() method is part of the class
A catch can have comma-separated multiple arguments.
Which key word can protect a class in package from accessibility by the classes outside the package?
An individual array element that is passed to a method and modified in that method will contain the…
JSP files creates ________________
The use of protected keyword to a member in a class will restrict its visibility as follows:
We can over load methods with differences only in their return type.
executeUpdate(------------) returns ___________
Which of the following classes are available in the java.lang package?
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
Which of the following statements are valid array declarations?
Every method of a final in class is implicitly final.
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
Which of the following methods can be used to remove a component from the display?
Which of the following will produce a value of 10 if x = 9.7?
Which of the following are the wrapper classes?
It is an error to catch the same type of exception in two different catch blocks associated with a particular…