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.
To delete a file, we can use an instance of class file.
Which exception is thrown by the read() method of InputStream class?
The concept of multiple inheritance is implemented in Java by
Java always provides a default constructor to a class.
The import statement is always the first no comment statement in a Java program files.
Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
forName() is a static factory method
The programmer must explicitly create the system .in and system .out objects.
Given the codeString s = new String("abc");Which of the following calls are valid?
A string object can not be modified after it is created.
With javadoc, which of the following denotes a javadoc comment?
In the code below, what data types the variable x can have?
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
Declaring a method synchronized guarantees that the deadlock cannot occur.
EJBs can be of the following type(s)None of the above
We would like to make a member of a class visible in all subclasses regardless of what package they…
The methods wait() and noify() are defined in
In order to connect to a database through java program we must create _______-
Give file is a file object, which of the following are legal statements to create a new file.
Which of the following statements are true?
Any method in a supper class can be over ridden in its subclass.
executeUpdate(------------) returns ___________
We can add more than one class(es) at the time of compilation Java Beans.
Submit button always fires doPost(...)
The keywords reserved but not used in the initial version of Java re:
When present, package must be the first no comment statement in the file.
Frames and applets cannot be used together in the same program.
It is perfectly legal to refer to any instance variable inside of a static method.
All the bitwise operators have the same level of precedence in Java.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter