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 will produce a value of 22 if x=22.9:
  2. Which of the following methods can be used to change the size of a size() *resize()
  3. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  4. A Java monitor must either extend thread class or implement Runnable interface.
  5. The modulus operator (%) can be used only with Integer operands.
  6. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  7. Every method of a final in class is implicitly final.
  8. The methods wait() and noify() are defined in
  9. The programmer must explicitly create the system .in and system .out objects.
  10. Which of the following methods can be used to remove a component from the display?
  11. Which javadoc tag is used to denote a comment for methods parameters?
  12. What does the following line of code do?TextField text=new TextField(10);
  13. When present, package must be the first no comment statement in the file.
  14. Submit button always fires doPost(...)
  15. executeUpdate(------------) returns ___________
  16. Which of the following classes are available in the java.lang package?
  17. What is java -g used for?
  18. It is an error to have a method with the same signature in both the super class and its subclass.
  19. We can over load methods with differences only in their return type.
  20. putValue(...) method takes _____________________-
  21. A class may be both abstract and final.
  22. Give file is a file object, which of the following are legal statements to create a new file.
  23. DataInput is
  24. A constructor must always invoke its supper class constructor in its first statement.
  25. Java always provides a default constructor to a class.
  26. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  27. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  28. Which of the following methods belong to the String class?
  29. The name of a Java program file must match the name of the class with the extension Java.
  30. The length of a string object 's1' can be obtained using the expression s1.length.