The default case is always required in the switch selection structure.
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.
It is an error if a class with one or more abstract methods is not explicitly declared abstract.
In order to connect to a database through java program we must create _______-
What does the following line of code do?TextField text=new TextField(10);
The length of a string object 's1' can be obtained using the expression s1.length.
Java is fully object oriented programme.
Objects are passed to a method by use of call-by-reference.
The import statement is always the first no comment statement in a Java program files.
All the bitwise operators have the same level of precedence in Java.
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
Which of the following methods belong to the String class?
A package is a collection of
forName() is a static factory method
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
It is perfectly legal to refer to any instance variable inside of a static method.
Which of the following string can be used as mode string for creating a RandomAccessFile object?
Throwing an exception always causes program termination.
Give file is a file object, which of the following are legal statements to create a new file.
The name of a Java program file must match the name of the class with the extension Java.
Every call to wait has a corresponding call to notify that will eventually end the wafting.
The methods wait() and noify() are defined in
It is an error to have a method with the same signature in both the super class and its subclass.
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
A constructor must always invoke its supper class constructor in its first statement.
An EJB is a server-side component that encapsulates the business logic of an application
Which of the following methods can be used to change the size of a size() *resize()
Which of the following will produce a value of 10 if x = 9.7?
The name of the RMI compiler is ___________
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
The break statement is required in the default case of a switch selection structure.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter