We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would achieve this?
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
Java always provides a default constructor to a class.
Which of the following methods can be used to draw the outline of a square?
The name of the RMI compiler is ___________
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
The import statement is always the first no comment statement in a Java program files.
The modulus operator (%) can be used only with Integer operands.
The programmer must explicitly create the system .in and system .out objects.
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
Servlet has ___________
A string object can not be modified after it is created.
A Java monitor must either extend thread class or implement Runnable interface.
Submit button always fires doPost(...)
putValue(...) method takes _____________________-
When we invoke repaint () for a Component, the AWT invokes the method:
Which of the following methods belong to the String class?
Which of the following methods can be used to remove a component from the display?
A variable declared inside the for loop control can not be referenced out side the loop.
Every method of a final in class is implicitly final.
A final class may not have any abstract method.
It is an error to have a method with the same signature in both the super class and its subclass.
A JSP file can be stored_________________
All methods in an abstract class must be declared abstract.
Java is fully object oriented programme.
The concept of multiple inheritance is implemented in Java by
Any method in a supper class can be over ridden in its subclass.
In the code below, what data types the variable x can have?
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
One the features of is that an array can store many different types of values.
Which are the valid ways to create DataInputStream streams?
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter