Home

If m and n are int type variables, what will be the result of the expression
'm % n' when m = -14 and n = -3?

A. 4

B. 2

C. -2

D. -4

You can do it
  1. A string object can not be modified after it is created.
  2. JSP files creates ________________
  3. Which of the following keywords are used to control access to a class member?
  4. Given the codeString s = new String("abc");Which of the following calls are valid?
  5. When the string objects are compared with ==, the result is true If the strings contain the same values.
  6. The setBackground() method is part of the class
  7. Any method in a supper class can be over ridden in its subclass.
  8. Which key word can protect a class in package from accessibility by the classes outside the package?
  9. A method declared as static can not access non-static class members.
  10. A panel can not be added to another panel.
  11. Two methods cannot have the same name in Java.
  12. To delete a file, we can use an instance of class file.
  13. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  14. A Java monitor must either extend thread class or implement Runnable interface.
  15. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  16. It is an error to have a method with the same signature in both the super class and its subclass.
  17. Which of the following will produce a value of 22 if x=22.9:
  18. The check box group class is a subclass of the component class.
  19. class.forName(...) creates an instance of java ODBC driver
  20. Servlet can have ___________
  21. Frames and applets cannot be used together in the same program.
  22. Which of the following are keywords?
  23. Which of the following statements are valid array declarations?
  24. executeUpdate(------------) returns ___________
  25. Java always provides a default constructor to a class.
  26. Which of the following are not keywords?
  27. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  28. Submit button always fires doPost(...)
  29. In RMI before running the client program we must start RMI Registry.
  30. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.