Home

Which of the following will produce a value of 10 if x = 9.7?

A. floor(x)

B. abs(x)

C. rint(x)

D. round(x)

You can do it
  1. The import statement is always the first no comment statement in a Java program files.
  2. We can over load methods with differences only in their return type.
  3. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  4. The setBackground() method is part of the class
  5. A Java monitor must either extend thread class or implement Runnable interface.
  6. In the code below, what data types the variable x can have?
  7. Which of the following methods belong to the String class?
  8. Declarations can appear anywhere in the body of a Java method.
  9. Java always provides a default constructor to a class.
  10. Which of the following represent legal flow control statements?
  11. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  12. Two methods cannot have the same name in Java.
  13. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  14. class.forName(...) creates an instance of java ODBC driver
  15. A string object can not be modified after it is created.
  16. Given the codeString s = new String("abc");Which of the following calls are valid?
  17. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  18. In order to connect to a database through java program we must create _______-
  19. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  20. It is an error to have a method with the same signature in both the super class and its subclass.
  21. executeUpdate(------------) returns ___________
  22. A static class method can be invoked by simply using the name of the method alone.
  23. Which of the following represent legal flow control statements?
  24. A variable declared inside the for loop control can not be referenced out side the loop.
  25. Which of the following methods can be used to draw the outline of a square?
  26. A panel can not be added to another panel.
  27. Any class may be inherited by another class in the same package.
  28. Which of the following classes are available in the java.lang package?
  29. JSP files creates ________________
  30. EJBs can be of the following type(s)None of the above