Home

Which of the following will produce a value of 22 if x=22.9:

A. Ceil(x)

B. Round(x)

C. Rint(x)

D. Abs(x)

You can do it
  1. Which of the following control expressions are valid for an if statement?
  2. A variable declared inside the for loop control can not be referenced out side the loop.
  3. In order to connect to a database through java program we must create _______-
  4. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  5. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  6. Which javadoc tag is used to denote a comment for methods parameters?
  7. JSP files creates ________________
  8. putValue(...) method takes _____________________-
  9. executeUpdate automatically updates data because___________
  10. When we invoke repaint () for a Component, the AWT invokes the method:
  11. Any method in a supper class can be over ridden in its subclass.
  12. Which of the following command lines options generates documentation for all classes and methods?
  13. class.forName(...) creates an instance of java ODBC driver
  14. An EJB is a server-side component that encapsulates the business logic of an application
  15. All the bitwise operators have the same level of precedence in Java.
  16. Which of the following methods can be used to remove a component from the display?
  17. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  18. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  19. Any class may be inherited by another class in the same package.
  20. A panel can not be added to another panel.
  21. Which of the following methods can be used to change the size of a size() *resize()
  22. Objects are passed to a method by use of call-by-reference.
  23. The setBackground() method is part of the class
  24. The default case is always required in the switch selection structure.
  25. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  26. Members of a class specified as private are accessible only to the methods of the class.
  27. Given the codeString s = new String("abc");Which of the following calls are valid?
  28. Which of the following methods can be used to draw the outline of a square?
  29. Declarations can appear anywhere in the body of a Java method.
  30. Declaring a method synchronized guarantees that the deadlock cannot occur.