Home

The modulus operator (%) can be used only with Integer operands.

A. True

B. False

You can do it yup
  1. Which of the following will produce a value of 10 if x = 9.7?
  2. All the bitwise operators have the same level of precedence in Java.
  3. The setBackground() method is part of the class
  4. executeUpdate(------------) returns ___________
  5. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  6. Given the codeString s = new String("abc");Which of the following calls are valid?
  7. Session bean
  8. In order to connect to a database through java program we must create _______-
  9. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  10. Which of the following will produce a value of 22 if x=22.9:
  11. A catch can have comma-separated multiple arguments.
  12. We can over load methods with differences only in their return type.
  13. A package is a collection of
  14. In RMI we invoke client method from remote server
  15. With javadoc, which of the following denotes a javadoc comment?
  16. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  17. All methods in an abstract class must be declared abstract.
  18. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  19. Which of the following represent legal flow control statements?
  20. A method declared as static can not access non-static class members.
  21. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  22. To delete a file, we can use an instance of class file.
  23. Which of the following classes are available in the java.lang package?
  24. A class may be both abstract and final.
  25. What is java -g used for?
  26. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  27. Submit button always fires doPost(...)
  28. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  29. What does the following line of code do?TextField text=new TextField(10);
  30. Every method of a final in class is implicitly final.