Home

Declaring a method synchronized guarantees that the deadlock cannot occur.

A. True

B. False

You can do it
  1. putValue(...) method takes _____________________-
  2. A class may be both abstract and final.
  3. The name of a Java program file must match the name of the class with the extension Java.
  4. One the features of is that an array can store many different types of values.
  5. A catch can have comma-separated multiple arguments.
  6. Java is fully object oriented programme.
  7. Consider the following class definitions: class maths { student student1; } class student { String name;…
  8. The length of a string object 's1' can be obtained using the expression s1.length.
  9. The modulus operator (%) can be used only with Integer operands.
  10. JSP files creates ________________
  11. When we invoke repaint () for a Component, the AWT invokes the method:
  12. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  13. Java always provides a default constructor to a class.
  14. All methods in an abstract class must be declared abstract.
  15. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  16. Servlet has ___________
  17. In order to connect to a database through java program we must create _______-
  18. Which of the following control expressions are valid for an if statement?
  19. The use of protected keyword to a member in a class will restrict its visibility as follows:
  20. In RMI we invoke client method from remote server
  21. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  22. What is java -g used for?
  23. It is perfectly legal to refer to any instance variable inside of a static method.
  24. Any class may be inherited by another class in the same package.
  25. Which of the following are the wrapper classes?
  26. The name of the RMI compiler is ___________
  27. It is an error to have a method with the same signature in both the super class and its subclass.
  28. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  29. Declarations can appear anywhere in the body of a Java method.
  30. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…