It is perfectly legal to assign a subclass object to a supper class reference.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
Any method in a supper class can be over ridden in its subclass.
A string object can not be modified after it is created.
All methods in an abstract class must be declared abstract.
Connection, Statement are interfaces and ResultSet is a class.
The use of protected keyword to a member in a class will restrict its visibility as follows:
Which of the following statements are valid array declarations?
A static class method can be invoked by simply using the name of the method alone.
Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
An EJB is a server-side component that encapsulates the business logic of an application
A catch can have comma-separated multiple arguments.
Which of the following methods can be used to remove a component from the display?
Declarations can appear anywhere in the body of a Java method.
Every call to wait has a corresponding call to notify that will eventually end the wafting.
A final class may not have any abstract method.
It is an error if a class with one or more abstract methods is not explicitly declared abstract.
We can add more than one class(es) at the time of compilation Java Beans.
In RMI we invoke client method from remote server
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
A package is a collection of
executeUpdate automatically updates data because___________
All the bitwise operators have the same level of precedence in Java.
forName() is a static factory method
The concept of multiple inheritance is implemented in Java by
Members of a class specified as private are accessible only to the methods of the class.
Which of the following will produce a value of 22 if x=22.9:
It is perfectly legal to refer to any instance variable inside of a static method.
When present, package must be the first no comment statement in the file.
Which of the following string can be used as mode string for creating a RandomAccessFile object?
Give file is a file object, which of the following are legal statements to create a new file.
The programmer must explicitly create the system .in and system .out objects.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter