Home

What is wrong in the following class definitions? 
abstract class print { 
abstract show();
}
class Display extends print {
}

A. Nothing is wrong

B. Wrong Method show() should have a return type

C. Wrong Methods show() is not implemented in Display

D. Wrong Display does not contain any members.

You can do it
  1. Which of the following will produce a value of 22 if x=22.9:
  2. Throwing an exception always causes program termination.
  3. The concept of multiple inheritance is implemented in Java by
  4. A final class may not have any abstract method.
  5. Which of the following keywords are used to control access to a class member?
  6. Two methods cannot have the same name in Java.
  7. We would like to make a member of a class visible in all subclasses regardless of what package they…
  8. When the string objects are compared with ==, the result is true If the strings contain the same values.
  9. The default case is always required in the switch selection structure.
  10. Which javadoc tag is used to denote a comment for methods parameters?
  11. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  12. Which of the following methods can be used to change the size of a size() *resize()
  13. In a single Servlet class we can use____________
  14. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  15. The modulus operator (%) can be used only with Integer operands.
  16. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  17. We can add more than one class(es) at the time of compilation Java Beans.
  18. Session bean
  19. Consider the following class definitions: class maths { student student1; } class student { String name;…
  20. Any class may be inherited by another class in the same package.
  21. A catch can have comma-separated multiple arguments.
  22. The break statement is required in the default case of a switch selection structure.
  23. An EJB is a server-side component that encapsulates the business logic of an application
  24. The use of protected keyword to a member in a class will restrict its visibility as follows:
  25. Connection, Statement are interfaces and ResultSet is a class.
  26. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  27. Which of the following represent legal flow control statements?
  28. Any method in a supper class can be over ridden in its subclass.
  29. The import statement is always the first no comment statement in a Java program files.
  30. forName() is a static factory method