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 yup
  1. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  2. Two methods cannot have the same name in Java.
  3. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  4. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  5. Which of the following methods belong to the String class?
  6. Session bean
  7. Any method in a supper class can be over ridden in its subclass.
  8. What does the following line of code do?TextField text=new TextField(10);
  9. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  10. Which of the following statements are true?
  11. What is java -g used for?
  12. Java always provides a default constructor to a class.
  13. In RMI before running the client program we must start RMI Registry.
  14. A catch can have comma-separated multiple arguments.
  15. Give file is a file object, which of the following are legal statements to create a new file.
  16. In order to connect to a database through java program we must create _______-
  17. In a single Servlet class we can use____________
  18. A method declared as static can not access non-static class members.
  19. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  20. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  21. Which javadoc tag is used to denote a comment for methods parameters?
  22. When we invoke repaint () for a Component, the AWT invokes the method:
  23. Which of the following will produce a value of 22 if x=22.9:
  24. The name of a Java program file must match the name of the class with the extension Java.
  25. Given the codeString s = new String("abc");Which of the following calls are valid?
  26. The name of the RMI compiler is ___________
  27. executeUpdate(------------) returns ___________
  28. Objects are passed to a method by use of call-by-reference.
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. A Java monitor must either extend thread class or implement Runnable interface.