Any class may be inherited by another class in the same package.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
A method declared as static can not access non-static class members.
The setBackground() method is part of the class
The name of the RMI compiler is ___________
Which of the following statements are valid array declarations?
Every call to wait has a corresponding call to notify that will eventually end the wafting.
In a single Servlet class we can use____________
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
Any method in a supper class can be over ridden in its subclass.
A Java monitor must either extend thread class or implement Runnable interface.
A string object can not be modified after it is created.
class.forName(...) creates an instance of java ODBC driver
One the features of is that an array can store many different types of values.
Which of the following classes are available in the java.lang package?
We would like to make a member of a class visible in all subclasses regardless of what package they…
It is perfectly legal to assign a subclass object to a supper class reference.
The methods wait() and noify() are defined in
forName() is a static factory method
The default case is always required in the switch selection structure.
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
executeUpdate automatically updates data because___________
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
We can over load methods with differences only in their return type.
All methods in an abstract class must be declared abstract.
The import statement is always the first no comment statement in a Java program files.
Which are the valid ways to create DataInputStream streams?
Java always provides a default constructor to a class.
A static class method can be invoked by simply using the name of the method alone.
The break statement is required in the default case of a switch selection structure.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
The length of a string object 's1' can be obtained using the expression s1.length.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter