What is the correct answer?


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

Correct Answer :

C. -2

Related Questions

The expression (x == y && a<b) is true If either x == y is true or… Which of the following control expressions are valid for an if statement? Which of the following will produce a value of 10 if x = 9.7? The break statement is required in the default case of a switch selection… Consider the following class definition.Class Student extends String{}What… A class may be both abstract and final. EJBs can be of the following type(s)None of the above Objects are passed to a method by use of call-by-reference. The name of the RMI compiler is ___________ What is wrong in the following class definitions? abstract class… Which are the valid ways to create DataInputStream streams? A JSP file can be stored_________________ Which key word can protect a class in package from accessibility by the… With javadoc, which of the following denotes a javadoc comment? A string object can not be modified after it is created. Which of the following command lines options generates documentation for… Which of the following are keywords? What does the following line of code do?TextField text=new TextField(10); JSP files creates ________________ A thread can make second thread ineligible for execution by calling the… Consider the following class definitions: class maths { student student1;… Any method in a supper class can be over ridden in its subclass. Servlet can have ___________ class.forName(...) creates an instance of java ODBC driver A package is a collection of Throwing an exception always causes program termination. Connection, Statement are interfaces and ResultSet is a class. In RMI before running the client program we must start RMI Registry. If m and n are int type variables, what will be the result of the expression'm… In evaluating a logical expression of type 'Boolean expression 1&& Boolean…