Home

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

A. True

B. False

You can do it
  1. Java always provides a default constructor to a class.
  2. Which of the following methods can be used to draw the outline of a square?
  3. The programmer must explicitly create the system .in and system .out objects.
  4. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  5. Which of the following are the wrapper classes?
  6. A catch can have comma-separated multiple arguments.
  7. Which of the following are keywords?
  8. Which of the following classes are available in the java.lang package?
  9. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  10. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  11. Submit button always fires doPost(...)
  12. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  13. An EJB is a server-side component that encapsulates the business logic of an application
  14. The use of protected keyword to a member in a class will restrict its visibility as follows:
  15. A method declared as static can not access non-static class members.
  16. With javadoc, which of the following denotes a javadoc comment?
  17. Which of the following will produce a value of 10 if x = 9.7?
  18. JSP files creates ________________
  19. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  20. The setBackground() method is part of the class
  21. Any method in a supper class can be over ridden in its subclass.
  22. Give file is a file object, which of the following are legal statements to create a new file.
  23. Every method of a final in class is implicitly final.
  24. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  25. EJBs can be of the following type(s)None of the above
  26. A class may be both abstract and final.
  27. Servlet has ___________
  28. We can over load methods with differences only in their return type.
  29. Consider the following class definitions: class maths { student student1; } class student { String name;…
  30. It is an error if a class with one or more abstract methods is not explicitly declared abstract.