Home

What is error in the following class definitions? 
abstract class xy { 
abstract sum(int x, int y) {
}
}

A. class header is not define properly

B. constructor is no defined

C. method is not defined properly

D. no error

You can do it
  1. Any class may be inherited by another class in the same package.
  2. What does the following line of code do?TextField text=new TextField(10);
  3. A final class may not have any abstract method.
  4. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  5. A static class method can be invoked by simply using the name of the method alone.
  6. Every method of a final in class is implicitly final.
  7. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  8. An individual array element that is passed to a method and modified in that method will contain the…
  9. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  10. A JSP file can be stored_________________
  11. Declaring a method synchronized guarantees that the deadlock cannot occur.
  12. Which of the following keywords are used to control access to a class member?
  13. What is java -g used for?
  14. In RMI before running the client program we must start RMI Registry.
  15. In the code below, what data types the variable x can have?
  16. Which of the following classes are available in the java.lang package?
  17. Any method in a supper class can be over ridden in its subclass.
  18. The concept of multiple inheritance is implemented in Java by
  19. The use of protected keyword to a member in a class will restrict its visibility as follows:
  20. Servlet can have ___________
  21. Which of the following represent legal flow control statements?
  22. It is perfectly legal to assign a subclass object to a supper class reference.
  23. A method declared as static can not access non-static class members.
  24. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  25. A panel can not be added to another panel.
  26. Which of the following methods can be used to remove a component from the display?
  27. The name of a Java program file must match the name of the class with the extension Java.
  28. The methods wait() and noify() are defined in
  29. executeUpdate automatically updates data because___________
  30. Connection, Statement are interfaces and ResultSet is a class.