Home / Programming MCQs / JAVA MCQs / Question
M
Q. What output you will get if you run this program?
class Modulus { public static void main(String args[]) { int x = 42; double y = 42.25; System.out.println("x mod 10 = " + x % 10); System.out.println("y mod 10 = " + y % 10); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
In Java, the functions are called
The use of final keyword with method definition
What is the output of this program?
If a negative value is used for an array index, ____.
Which of these class is used to read from byte array?.
The method toString() is a public member of the class _____________.
Discusssion
Login to discuss.