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

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  2. Which of the following methods can be used to remove a component from the display?
  3. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  4. When we implement the Runnable interface, we must define the method
  5. Which key word can protect a class in package from accessibility by the classes outside the package?
  6. Which of the following methods can be used to draw the outline of a square?
  7. Which of the following statements are true?
  8. We can add more than one class(es) at the time of compilation Java Beans.
  9. Give file is a file object, which of the following are legal statements to create a new file.
  10. A variable declared inside the for loop control can not be referenced out side the loop.
  11. It is perfectly legal to refer to any instance variable inside of a static method.
  12. The methods wait() and noify() are defined in
  13. executeUpdate automatically updates data because___________
  14. The programmer must explicitly create the system .in and system .out objects.
  15. An EJB is a server-side component that encapsulates the business logic of an application
  16. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  17. Which of the following statements are valid array declarations?
  18. Two methods cannot have the same name in Java.
  19. A final class may not have any abstract method.
  20. A class may be both abstract and final.
  21. Which of the following represent legal flow control statements?
  22. When the string objects are compared with ==, the result is true If the strings contain the same values.
  23. In a single Servlet class we can use____________
  24. Which of the following methods can be used to change the size of a size() *resize()
  25. Members of a class specified as private are accessible only to the methods of the class.
  26. The concept of multiple inheritance is implemented in Java by
  27. The use of protected keyword to a member in a class will restrict its visibility as follows:
  28. A static class method can be invoked by simply using the name of the method alone.
  29. An individual array element that is passed to a method and modified in that method will contain the…
  30. A Java monitor must either extend thread class or implement Runnable interface.