Home

Declaring a method synchronized guarantees that the deadlock cannot occur.

A. True

B. False

You can do it
  1. executeUpdate(------------) returns ___________
  2. Any class may be inherited by another class in the same package.
  3. When we invoke repaint () for a Component, the AWT invokes the method:
  4. Which key word can protect a class in package from accessibility by the classes outside the package?
  5. We would like to make a member of a class visible in all subclasses regardless of what package they…
  6. Consider the following class definitions: class maths { student student1; } class student { String name;…
  7. Which of the following are the wrapper classes?
  8. Objects are passed to a method by use of call-by-reference.
  9. Members of a class specified as private are accessible only to the methods of the class.
  10. We can add more than one class(es) at the time of compilation Java Beans.
  11. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  12. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  13. Which of the following control expressions are valid for an if statement?
  14. The use of protected keyword to a member in a class will restrict its visibility as follows:
  15. A string object can not be modified after it is created.
  16. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  17. JSP files creates ________________
  18. Session bean
  19. The modulus operator (%) can be used only with Integer operands.
  20. When we implement the Runnable interface, we must define the method
  21. Any method in a supper class can be over ridden in its subclass.
  22. We can over load methods with differences only in their return type.
  23. In the code below, what data types the variable x can have?
  24. Which are the valid ways to create DataInputStream streams?
  25. Which of the following statements are true?
  26. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  27. EJBs can be of the following type(s)None of the above
  28. A final class may not have any abstract method.
  29. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  30. An individual array element that is passed to a method and modified in that method will contain the…