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. Java is fully object oriented programme.
  2. Which exception is thrown by the read() method of InputStream class?
  3. The break statement is required in the default case of a switch selection structure.
  4. DataInput is
  5. The methods wait() and noify() are defined in
  6. Which of the following will produce a value of 22 if x=22.9:
  7. A final class may not have any abstract method.
  8. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  9. Servlet has ___________
  10. It is perfectly legal to assign a subclass object to a supper class reference.
  11. Connection, Statement are interfaces and ResultSet is a class.
  12. A constructor must always invoke its supper class constructor in its first statement.
  13. Which of the following methods belong to the String class?
  14. class.forName(...) creates an instance of java ODBC driver
  15. The name of the RMI compiler is ___________
  16. Give file is a file object, which of the following are legal statements to create a new file.
  17. An individual array element that is passed to a method and modified in that method will contain the…
  18. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  19. Declaring a method synchronized guarantees that the deadlock cannot occur.
  20. Two methods cannot have the same name in Java.
  21. When we invoke repaint () for a Component, the AWT invokes the method:
  22. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  23. When we implement an interface method, it should be declared as public.
  24. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  25. When present, package must be the first no comment statement in the file.
  26. Objects are passed to a method by use of call-by-reference.
  27. The check box group class is a subclass of the component class.
  28. Consider the following class definitions: class maths { student student1; } class student { String name;…
  29. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  30. The use of protected keyword to a member in a class will restrict its visibility as follows: