Home

Which of the following statements are true?

A. An abstract class may not have any final methods?

B. A final class may not have any abstracts methods.

C. Transient variables must be static.

D. all of the above

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

You can do it
  1. A Java monitor must either extend thread class or implement Runnable interface.
  2. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  3. A class may be both abstract and final.
  4. When we implement the Runnable interface, we must define the method
  5. A static class method can be invoked by simply using the name of the method alone.
  6. executeUpdate(------------) returns ___________
  7. With javadoc, which of the following denotes a javadoc comment?
  8. Which exception is thrown by the read() method of InputStream class?
  9. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  10. The setBackground() method is part of the class
  11. What does the following line of code do?TextField text=new TextField(10);
  12. Servlet has ___________
  13. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  14. Given the codeString s = new String("abc");Which of the following calls are valid?
  15. Java always provides a default constructor to a class.
  16. The import statement is always the first no comment statement in a Java program files.
  17. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  18. Which of the following will produce a value of 10 if x = 9.7?
  19. Frames and applets cannot be used together in the same program.
  20. Throwing an exception always causes program termination.
  21. Any class may be inherited by another class in the same package.
  22. A constructor must always invoke its supper class constructor in its first statement.
  23. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  24. In order to connect to a database through java program we must create _______-
  25. It is perfectly legal to assign a subclass object to a supper class reference.
  26. A method declared as static can not access non-static class members.
  27. A string object can not be modified after it is created.
  28. Which of the following methods can be used to change the size of a size() *resize()
  29. forName() is a static factory method
  30. It is an error to have a method with the same signature in both the super class and its subclass.