Declarations can appear anywhere in the body of a Java method.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
The concept of multiple inheritance is implemented in Java by
Two methods cannot have the same name in Java.
Which exception is thrown by the read() method of InputStream class?
All methods in an abstract class must be declared abstract.
Which of the following are the wrapper classes?
A JSP file can be stored_________________
We can add more than one class(es) at the time of compilation Java Beans.
Which of the following will produce a value of 10 if x = 9.7?
When the string objects are compared with ==, the result is true If the strings contain the same values.
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.
executeUpdate(------------) returns ___________
The name of a Java program file must match the name of the class with the extension Java.
A package is a collection of
JSP files creates ________________
One the features of is that an array can store many different types of values.
A constructor must always invoke its supper class constructor in its first statement.
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
Throwing an exception always causes program termination.
A variable declared inside the for loop control can not be referenced out side the loop.
JdbcOdbcDriver is an object of Object class
The use of protected keyword to a member in a class will restrict its visibility as follows:
A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
In order to connect to a database through java program we must create _______-
EJBs can be of the following type(s)None of the above
An individual array element that is passed to a method and modified in that method will contain the…
Give file is a file object, which of the following are legal statements to create a new file.
The check box group class is a subclass of the component class.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter