Home

What is the correct answer?

4

Any class may be inherited by another class in the same package.

A. True

B. False

Correct Answer :

B. False


Related Questions

Which of the following methods can be used to change the size of a size()… In RMI before running the client program we must start RMI Registry. The check box group class is a subclass of the component class. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… JSP files creates ________________ Which of the following are keywords? forName() is a static factory method Which of the following will produce a value of 22 if x=22.9: A package is a collection of Every method of a final in class is implicitly final. A catch can have comma-separated multiple arguments. To delete a file, we can use an instance of class file. One the features of is that an array can store many different types of… Frames and applets cannot be used together in the same program. Consider the following class definitions: class maths { student student1;… It is an error to catch the same type of exception in two different catch… Which of the following methods belong to the String class? The length of a string object 's1' can be obtained using the expression… Message-Driven beans act as a listener for the Java Message Service API,… Consider the following statements: int x = 10, y = 15; x = ((x < y)… All the bitwise operators have the same level of precedence in Java. The modulus operator (%) can be used only with Integer operands. What is error in the following class definitions? abstract class… It is perfectly legal to assign a subclass object to a supper class reference. Objects are passed to a method by use of call-by-reference. Java always provides a default constructor to a class. Throwing an exception always causes program termination. For all insert, update, delete, query operations on a database, ResultSet… An EJB is a server-side component that encapsulates the business logic… What is wrong in the following class definitions? abstract class…