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 are not keywords?
  2. A panel can not be added to another panel.
  3. EJBs can be of the following type(s)None of the above
  4. One the features of is that an array can store many different types of values.
  5. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  6. When the string objects are compared with ==, the result is true If the strings contain the same values.
  7. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  8. Throwing an exception always causes program termination.
  9. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  10. All methods in an abstract class must be declared abstract.
  11. Which of the following are keywords?
  12. class.forName(...) creates an instance of java ODBC driver
  13. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  14. Every method of a final in class is implicitly final.
  15. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  16. With javadoc, which of the following denotes a javadoc comment?
  17. A constructor must always invoke its supper class constructor in its first statement.
  18. executeUpdate(------------) returns ___________
  19. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  20. Which of the following will produce a value of 10 if x = 9.7?
  21. It is perfectly legal to assign a subclass object to a supper class reference.
  22. The concept of multiple inheritance is implemented in Java by
  23. A catch can have comma-separated multiple arguments.
  24. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  25. The import statement is always the first no comment statement in a Java program files.
  26. Given the codeString s = new String("abc");Which of the following calls are valid?
  27. Which key word can protect a class in package from accessibility by the classes outside the package?
  28. Frames and applets cannot be used together in the same program.
  29. DataInput is
  30. It is an error if a class with one or more abstract methods is not explicitly declared abstract.