Home

Any class may be inherited by another class in the same package.

A. True

B. False

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

You can do it
  1. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  2. Frames and applets cannot be used together in the same program.
  3. When present, package must be the first no comment statement in the file.
  4. Given the codeString s = new String("abc");Which of the following calls are valid?
  5. The name of the RMI compiler is ___________
  6. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  7. Which of the following will produce a value of 10 if x = 9.7?
  8. A JSP file can be stored_________________
  9. We can over load methods with differences only in their return type.
  10. Which of the following represent legal flow control statements?
  11. The check box group class is a subclass of the component class.
  12. An EJB is a server-side component that encapsulates the business logic of an application
  13. class.forName(...) creates an instance of java ODBC driver
  14. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  15. In a single Servlet class we can use____________
  16. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  17. All methods in an abstract class must be declared abstract.
  18. It is perfectly legal to assign a subclass object to a supper class reference.
  19. Declaring a method synchronized guarantees that the deadlock cannot occur.
  20. Any class may be inherited by another class in the same package.
  21. The setBackground() method is part of the class
  22. Which of the following methods belong to the String class?
  23. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  24. A final class may not have any abstract method.
  25. Which of the following are not keywords?
  26. In order to connect to a database through java program we must create _______-
  27. Two methods cannot have the same name in Java.
  28. The name of a Java program file must match the name of the class with the extension Java.
  29. Servlet can have ___________
  30. A catch can have comma-separated multiple arguments.