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. In order to connect to a database through java program we must create _______-
  2. It is an error to have a method with the same signature in both the super class and its subclass.
  3. When the string objects are compared with ==, the result is true If the strings contain the same values.
  4. To delete a file, we can use an instance of class file.
  5. Every method of a final in class is implicitly final.
  6. A class may be both abstract and final.
  7. The name of a Java program file must match the name of the class with the extension Java.
  8. Give file is a file object, which of the following are legal statements to create a new file.
  9. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  10. The length of a string object 's1' can be obtained using the expression s1.length.
  11. The setBackground() method is part of the class
  12. Which of the following are the wrapper classes?
  13. Servlet has ___________
  14. Which exception is thrown by the read() method of InputStream class?
  15. When we implement an interface method, it should be declared as public.
  16. Which key word can protect a class in package from accessibility by the classes outside the package?
  17. Which of the following statements are true?
  18. Which of the following statements are valid array declarations?
  19. An EJB is a server-side component that encapsulates the business logic of an application
  20. A static class method can be invoked by simply using the name of the method alone.
  21. putValue(...) method takes _____________________-
  22. We would like to make a member of a class visible in all subclasses regardless of what package they…
  23. Which of the following methods can be used to remove a component from the display?
  24. EJBs can be of the following type(s)None of the above
  25. In RMI before running the client program we must start RMI Registry.
  26. Any class may be inherited by another class in the same package.
  27. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  28. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  29. The programmer must explicitly create the system .in and system .out objects.
  30. The methods wait() and noify() are defined in