Home

The methods wait() and noify() are defined in

A. java.lang.Thread

B. java.lang.Runnable

C. java.lang.Object

D. java.lang.ThreadGroup

You can do it
  1. The setBackground() method is part of the class
  2. A catch can have comma-separated multiple arguments.
  3. The name of a Java program file must match the name of the class with the extension Java.
  4. Which of the following methods can be used to change the size of a size() *resize()
  5. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  6. Which of the following will produce a value of 22 if x=22.9:
  7. When present, package must be the first no comment statement in the file.
  8. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  9. A class may be both abstract and final.
  10. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  11. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  12. When we implement an interface method, it should be declared as public.
  13. Every method of a final in class is implicitly final.
  14. We would like to make a member of a class visible in all subclasses regardless of what package they…
  15. executeUpdate(------------) returns ___________
  16. The import statement is always the first no comment statement in a Java program files.
  17. The length of a string object 's1' can be obtained using the expression s1.length.
  18. When the string objects are compared with ==, the result is true If the strings contain the same values.
  19. Session bean
  20. An EJB is a server-side component that encapsulates the business logic of an application
  21. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  22. Members of a class specified as private are accessible only to the methods of the class.
  23. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  24. When we implement the Runnable interface, we must define the method
  25. What is java -g used for?
  26. An individual array element that is passed to a method and modified in that method will contain the…
  27. Give file is a file object, which of the following are legal statements to create a new file.
  28. Which of the following are not keywords?
  29. When we invoke repaint () for a Component, the AWT invokes the method:
  30. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.