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

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. The default case is always required in the switch selection structure.
  2. Which key word can protect a class in package from accessibility by the classes outside the package?
  3. forName() is a static factory method
  4. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  5. In a single Servlet class we can use____________
  6. It is an error to have a method with the same signature in both the super class and its subclass.
  7. All methods in an abstract class must be declared abstract.
  8. The use of protected keyword to a member in a class will restrict its visibility as follows:
  9. Which of the following statements are true?
  10. Which of the following methods belong to the String class?
  11. Declaring a method synchronized guarantees that the deadlock cannot occur.
  12. It is perfectly legal to refer to any instance variable inside of a static method.
  13. It is perfectly legal to assign a subclass object to a supper class reference.
  14. Which of the following represent legal flow control statements?
  15. Which of the following methods can be used to draw the outline of a square?
  16. When we invoke repaint () for a Component, the AWT invokes the method:
  17. We can add more than one class(es) at the time of compilation Java Beans.
  18. Which of the following methods can be used to remove a component from the display?
  19. Connection, Statement are interfaces and ResultSet is a class.
  20. In RMI before running the client program we must start RMI Registry.
  21. The break statement is required in the default case of a switch selection structure.
  22. Which of the following will produce a value of 10 if x = 9.7?
  23. Which of the following are keywords?
  24. Submit button always fires doPost(...)
  25. A final class may not have any abstract method.
  26. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  27. Declarations can appear anywhere in the body of a Java method.
  28. A string object can not be modified after it is created.
  29. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  30. The name of a Java program file must match the name of the class with the extension Java.