A class may be both abstract and final.
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 package is a collection of
Connection, Statement are interfaces and ResultSet is a class.
The name of the RMI compiler is ___________
When present, package must be the first no comment statement in the file.
Which of the following keywords are used to control access to a class member?
Which exception is thrown by the read() method of InputStream class?
In the code below, what data types the variable x can have?
Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
Which of the following methods can be used to draw the outline of a square?
JSP files creates ________________
Declarations can appear anywhere in the body of a Java method.
With javadoc, which of the following denotes a javadoc comment?
Which of the following are not keywords?
The concept of multiple inheritance is implemented in Java by
A final class may not have any abstract method.
Which of the following statements are valid array declarations?
The check box group class is a subclass of the component class.
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
When we implement an interface method, it should be declared as public.
Given the codeString s = new String("abc");Which of the following calls are valid?
Servlet has ___________
Java always provides a default constructor to a class.
A method declared as static can not access non-static class members.
Throwing an exception always causes program termination.
To delete a file, we can use an instance of class file.
It is perfectly legal to assign a subclass object to a supper class reference.
It is an error to have a method with the same signature in both the super class and its subclass.
When we implement the Runnable interface, we must define the method
Which of the following statements are true?
One the features of is that an array can store many different types of values.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter