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

You can do it
  1. Which of the following command lines options generates documentation for all classes and methods?
  2. Given the codeString s = new String("abc");Which of the following calls are valid?
  3. It is an error to have a method with the same signature in both the super class and its subclass.
  4. The import statement is always the first no comment statement in a Java program files.
  5. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  6. What does the following line of code do?TextField text=new TextField(10);
  7. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  8. Which key word can protect a class in package from accessibility by the classes outside the package?
  9. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  10. Which of the following are keywords?
  11. executeUpdate(------------) returns ___________
  12. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  13. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  14. Which of the following statements are valid array declarations?
  15. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  16. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  17. With javadoc, which of the following denotes a javadoc comment?
  18. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  19. The methods wait() and noify() are defined in
  20. A variable declared inside the for loop control can not be referenced out side the loop.
  21. DataInput is
  22. All methods in an abstract class must be declared abstract.
  23. Connection, Statement are interfaces and ResultSet is a class.
  24. An individual array element that is passed to a method and modified in that method will contain the…
  25. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  26. A JSP file can be stored_________________
  27. In order to connect to a database through java program we must create _______-
  28. When the string objects are compared with ==, the result is true If the strings contain the same values.
  29. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  30. Java always provides a default constructor to a class.