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. Which of the following statements are true?
  2. Which of the following represent legal flow control statements?
  3. Which of the following will produce a value of 10 if x = 9.7?
  4. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  5. Declaring a method synchronized guarantees that the deadlock cannot occur.
  6. The setBackground() method is part of the class
  7. The use of protected keyword to a member in a class will restrict its visibility as follows:
  8. Given the codeString s = new String("abc");Which of the following calls are valid?
  9. The keywords reserved but not used in the initial version of Java re:
  10. Which of the following control expressions are valid for an if statement?
  11. Consider the following class definitions: class maths { student student1; } class student { String name;…
  12. The name of a Java program file must match the name of the class with the extension Java.
  13. forName() is a static factory method
  14. A class may be both abstract and final.
  15. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  16. Throwing an exception always causes program termination.
  17. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  18. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  19. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  20. EJBs can be of the following type(s)None of the above
  21. In the code below, what data types the variable x can have?
  22. The programmer must explicitly create the system .in and system .out objects.
  23. Members of a class specified as private are accessible only to the methods of the class.
  24. The name of the RMI compiler is ___________
  25. Declarations can appear anywhere in the body of a Java method.
  26. putValue(...) method takes _____________________-
  27. With javadoc, which of the following denotes a javadoc comment?
  28. Which of the following methods can be used to remove a component from the display?
  29. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  30. When the string objects are compared with ==, the result is true If the strings contain the same values.