Which key word can protect a class in package from accessibility by the classes outside the package?
don't use any keyword at all(make it default)
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
Servlet has ___________
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
Which of the following classes are available in the java.lang package?
One the features of is that an array can store many different types of values.
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
A package is a collection of
We can add more than one class(es) at the time of compilation Java Beans.
JSP files creates ________________
Which of the following string can be used as mode string for creating a RandomAccessFile object?
A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
An individual array element that is passed to a method and modified in that method will contain the…
Which of the following control expressions are valid for an if statement?
A class may be both abstract and final.
It is perfectly legal to refer to any instance variable inside of a static method.
A panel can not be added to another panel.
When we implement the Runnable interface, we must define the method
A catch can have comma-separated multiple arguments.
When we implement an interface method, it should be declared as public.
Objects are passed to a method by use of call-by-reference.
In a single Servlet class we can use____________
A final class may not have any abstract method.
All methods in an abstract class must be declared abstract.
Which of the following statements are true?
The methods wait() and noify() are defined in
Java is fully object oriented programme.
Which of the following will produce a value of 10 if x = 9.7?
A Java monitor must either extend thread class or implement Runnable interface.
executeUpdate(------------) returns ___________
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter