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. An EJB is a server-side component that encapsulates the business logic of an application
  2. Which of the following classes are available in the java.lang package?
  3. Declarations can appear anywhere in the body of a Java method.
  4. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  5. In the code below, what data types the variable x can have?
  6. The break statement is required in the default case of a switch selection structure.
  7. Which of the following methods belong to the String class?
  8. Every method of a final in class is implicitly final.
  9. Give file is a file object, which of the following are legal statements to create a new file.
  10. A catch can have comma-separated multiple arguments.
  11. DataInput is
  12. Objects are passed to a method by use of call-by-reference.
  13. A panel can not be added to another panel.
  14. The keywords reserved but not used in the initial version of Java re:
  15. All methods in an abstract class must be declared abstract.
  16. Any method in a supper class can be over ridden in its subclass.
  17. Frames and applets cannot be used together in the same program.
  18. We can over load methods with differences only in their return type.
  19. In RMI we invoke client method from remote server
  20. The name of a Java program file must match the name of the class with the extension Java.
  21. Declaring a method synchronized guarantees that the deadlock cannot occur.
  22. A class may be both abstract and final.
  23. The setBackground() method is part of the class
  24. A variable declared inside the for loop control can not be referenced out side the loop.
  25. Which of the following keywords are used to control access to a class member?
  26. JdbcOdbcDriver is an object of Object class
  27. What does the following line of code do?TextField text=new TextField(10);
  28. A method declared as static can not access non-static class members.
  29. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  30. Members of a class specified as private are accessible only to the methods of the class.