Home

Declaring a method synchronized guarantees that the deadlock cannot occur.

A. True

B. False

You can do it
  1. A static class method can be invoked by simply using the name of the method alone.
  2. One the features of is that an array can store many different types of values.
  3. class.forName(...) creates an instance of java ODBC driver
  4. Java always provides a default constructor to a class.
  5. The modulus operator (%) can be used only with Integer operands.
  6. What does the following line of code do?TextField text=new TextField(10);
  7. A method declared as static can not access non-static class members.
  8. The name of the RMI compiler is ___________
  9. The use of protected keyword to a member in a class will restrict its visibility as follows:
  10. Consider the following class definitions: class maths { student student1; } class student { String name;…
  11. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  12. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  13. EJBs can be of the following type(s)None of the above
  14. When present, package must be the first no comment statement in the file.
  15. It is an error to have a method with the same signature in both the super class and its subclass.
  16. Which of the following represent legal flow control statements?
  17. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  18. Which are the valid ways to create DataInputStream streams?
  19. Which of the following control expressions are valid for an if statement?
  20. Which of the following statements are true?
  21. We can over load methods with differences only in their return type.
  22. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  23. It is perfectly legal to refer to any instance variable inside of a static method.
  24. The length of a string object 's1' can be obtained using the expression s1.length.
  25. An EJB is a server-side component that encapsulates the business logic of an application
  26. With javadoc, which of the following denotes a javadoc comment?
  27. JSP files creates ________________
  28. All methods in an abstract class must be declared abstract.
  29. In order to connect to a database through java program we must create _______-
  30. Which of the following methods can be used to change the size of a size() *resize()