Home

What is the correct answer?

4

It is perfectly legal to assign a subclass object to a supper class reference.

A. True

B. False

Correct Answer :

A. True


Related Questions

Consider the following class definition.Class Student extends String{}What… What is java -g used for? If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… What does the following line of code do?TextField text=new TextField(10); We can add more than one class(es) at the time of compilation Java Beans. JdbcOdbcDriver is an object of Object class It is an error if a class with one or more abstract methods is not explicitly… Which of the following methods can be used to remove a component from… executeUpdate(------------) returns ___________ Servlet can have ___________ Consider the following statements: int x = 10, y = 15; x = ((x < y)… When we invoke repaint () for a Component, the AWT invokes the method: DataInput is Java is fully object oriented programme. The length of a string object 's1' can be obtained using the expression… executeUpdate automatically updates data because___________ Which of the following methods can be used to change the size of a size()… Which javadoc tag is used to denote a comment for methods parameters? A static class method can be invoked by simply using the name of the method… The default case is always required in the switch selection structure. With javadoc, which of the following denotes a javadoc comment? Two methods cannot have the same name in Java. We would like to make a member of a class visible in all subclasses regardless… Which of the following are keywords? In RMI before running the client program we must start RMI Registry. Consider the following class definitions: class maths { student student1;… Session bean Which of the following will produce a value of 22 if x=22.9: The keywords reserved but not used in the initial version of Java re: A string object can not be modified after it is created.