Home

Consider the following class definition.
Class Student extends String
{
}
What happens when we try to compile this class?

A. Will not compile because class body is not defined

B. Will not compile because class is not declared public

C. Will compile successfully.

D. Will not compile because String is abstract

You can do it
  1. executeUpdate automatically updates data because___________
  2. When we invoke repaint () for a Component, the AWT invokes the method:
  3. Which of the following statements are true?
  4. The programmer must explicitly create the system .in and system .out objects.
  5. Consider the following class definitions: class maths { student student1; } class student { String name;…
  6. Which of the following statements are true?
  7. Submit button always fires doPost(...)
  8. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  9. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  10. Which of the following are keywords?
  11. All methods in an abstract class must be declared abstract.
  12. In RMI we invoke client method from remote server
  13. A catch can have comma-separated multiple arguments.
  14. The setBackground() method is part of the class
  15. What is java -g used for?
  16. JSP files creates ________________
  17. We would like to make a member of a class visible in all subclasses regardless of what package they…
  18. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  19. Which of the following represent legal flow control statements?
  20. Which of the following are the wrapper classes?
  21. A variable declared inside the for loop control can not be referenced out side the loop.
  22. Which of the following methods belong to the String class?
  23. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  24. To delete a file, we can use an instance of class file.
  25. Which of the following statements are valid array declarations?
  26. Which of the following represent legal flow control statements?
  27. Two methods cannot have the same name in Java.
  28. A final class may not have any abstract method.
  29. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  30. The name of the RMI compiler is ___________