Home

Declaring a method synchronized guarantees that the deadlock cannot occur.

A. True

B. False

You can do it
  1. Which of the following will produce a value of 22 if x=22.9:
  2. When we implement the Runnable interface, we must define the method
  3. An EJB is a server-side component that encapsulates the business logic of an application
  4. A panel can not be added to another panel.
  5. When present, package must be the first no comment statement in the file.
  6. Give file is a file object, which of the following are legal statements to create a new file.
  7. Servlet can have ___________
  8. Declarations can appear anywhere in the body of a Java method.
  9. We would like to make a member of a class visible in all subclasses regardless of what package they…
  10. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  11. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  12. In RMI before running the client program we must start RMI Registry.
  13. The import statement is always the first no comment statement in a Java program files.
  14. Declaring a method synchronized guarantees that the deadlock cannot occur.
  15. When we invoke repaint () for a Component, the AWT invokes the method:
  16. A final class may not have any abstract method.
  17. A constructor must always invoke its supper class constructor in its first statement.
  18. Which of the following keywords are used to control access to a class member?
  19. When we implement an interface method, it should be declared as public.
  20. We can add more than one class(es) at the time of compilation Java Beans.
  21. A package is a collection of
  22. putValue(...) method takes _____________________-
  23. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  24. With javadoc, which of the following denotes a javadoc comment?
  25. Given the codeString s = new String("abc");Which of the following calls are valid?
  26. The programmer must explicitly create the system .in and system .out objects.
  27. Submit button always fires doPost(...)
  28. A static class method can be invoked by simply using the name of the method alone.
  29. The setBackground() method is part of the class
  30. It is perfectly legal to refer to any instance variable inside of a static method.