What is the correct answer?


Which of the following statements are true?

A. An abstract class may not have any final methods?

B. A final class may not have any abstracts methods.

C. Transient variables must be static.

D. all of the above

Correct Answer :

B. A final class may not have any abstracts methods.

Related Questions

Declarations can appear anywhere in the body of a Java method. Every method of a final in class is implicitly final. All methods in an abstract class must be declared abstract. It is perfectly legal to assign a subclass object to a supper class reference. When the string objects are compared with ==, the result is true If the… For all insert, update, delete, query operations on a database, ResultSet… Which of the following methods can be used to remove a component from… DataInput is An EJB is a server-side component that encapsulates the business logic… In RMI we invoke client method from remote server Objects are passed to a method by use of call-by-reference. Give file is a file object, which of the following are legal statements… To delete a file, we can use an instance of class file. A method declared as static can not access non-static class members. A constructor must always invoke its supper class constructor in its first… Consider the following class definition.Class Student extends String{}What… Which of the following command lines options generates documentation for… A class may be both abstract and final. A string object can not be modified after it is created. Every call to wait has a corresponding call to notify that will eventually… Servlet can have ___________ An individual array element that is passed to a method and modified in… Which of the following will produce a value of 22 if x=22.9: A JSP file can be stored_________________ forName() is a static factory method Java always provides a default constructor to a class. When present, package must be the first no comment statement in the file. Any method in a supper class can be over ridden in its subclass. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division… The keywords reserved but not used in the initial version of Java re: