Home

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

A. True

B. False

You can do it
  1. To delete a file, we can use an instance of class file.
  2. Which of the following will produce a value of 10 if x = 9.7?
  3. The setBackground() method is part of the class
  4. A catch can have comma-separated multiple arguments.
  5. Which of the following represent legal flow control statements?
  6. Which of the following methods can be used to draw the outline of a square?
  7. Which of the following command lines options generates documentation for all classes and methods?
  8. executeUpdate(------------) returns ___________
  9. The import statement is always the first no comment statement in a Java program files.
  10. The check box group class is a subclass of the component class.
  11. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  12. Which of the following methods can be used to change the size of a size() *resize()
  13. A variable declared inside the for loop control can not be referenced out side the loop.
  14. In the code below, what data types the variable x can have?
  15. It is perfectly legal to refer to any instance variable inside of a static method.
  16. A method declared as static can not access non-static class members.
  17. Java is fully object oriented programme.
  18. What is java -g used for?
  19. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  20. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  21. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  22. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  23. In RMI we invoke client method from remote server
  24. Which of the following statements are true?
  25. Throwing an exception always causes program termination.
  26. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  27. The programmer must explicitly create the system .in and system .out objects.
  28. When present, package must be the first no comment statement in the file.
  29. Which of the following methods can be used to remove a component from the display?
  30. The default case is always required in the switch selection structure.