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. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  2. The break statement is required in the default case of a switch selection structure.
  3. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  4. Which of the following will produce a value of 22 if x=22.9:
  5. It is an error to have a method with the same signature in both the super class and its subclass.
  6. Which of the following are the wrapper classes?
  7. A final class may not have any abstract method.
  8. Which of the following statements are true?
  9. Which key word can protect a class in package from accessibility by the classes outside the package?
  10. When we invoke repaint () for a Component, the AWT invokes the method:
  11. All the bitwise operators have the same level of precedence in Java.
  12. The keywords reserved but not used in the initial version of Java re:
  13. Session bean
  14. executeUpdate automatically updates data because___________
  15. A JSP file can be stored_________________
  16. The programmer must explicitly create the system .in and system .out objects.
  17. Java is fully object oriented programme.
  18. A string object can not be modified after it is created.
  19. One the features of is that an array can store many different types of values.
  20. It is perfectly legal to refer to any instance variable inside of a static method.
  21. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  22. The methods wait() and noify() are defined in
  23. We can add more than one class(es) at the time of compilation Java Beans.
  24. EJBs can be of the following type(s)None of the above
  25. A class may be both abstract and final.
  26. The import statement is always the first no comment statement in a Java program files.
  27. Consider the following class definitions: class maths { student student1; } class student { String name;…
  28. Java always provides a default constructor to a class.
  29. Give file is a file object, which of the following are legal statements to create a new file.
  30. Every method of a final in class is implicitly final.