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.
Every call to wait has a corresponding call to notify that will eventually end the wafting.
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
Which of the following methods can be used to remove a component from the display?
Which of the following methods can be used to change the size of a size() *resize()
A constructor must always invoke its supper class constructor in its first statement.
With javadoc, which of the following denotes a javadoc comment?
JdbcOdbcDriver is an object of Object class
When we implement an interface method, it should be declared as public.
In RMI we invoke client method from remote server
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
Which javadoc tag is used to denote a comment for methods parameters?
In order to connect to a database through java program we must create _______-
We can over load methods with differences only in their return type.
Which of the following classes are available in the java.lang package?
The setBackground() method is part of the class
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
Which of the following represent legal flow control statements?
Which of the following are keywords?
When we invoke repaint () for a Component, the AWT invokes the method:
All methods in an abstract class must be declared abstract.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
In a single Servlet class we can use____________
forName() is a static factory method
Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
The break statement is required in the default case of a switch selection structure.
What does the following line of code do?TextField text=new TextField(10);
One the features of is that an array can store many different types of values.
Java always provides a default constructor to a class.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter