P
Q. What is the output of the following code?
int x = 5; int y = 3; System.out.println(x % y);
The modulus operator (%) returns the remainder of integer division. In this case, 5 divided by 3 has a remainder of 2, which is printed to the console.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Identify the correct way of declaring constructor.
Q. Choose correct examples of Hexadecimal literals in Java?
Q. What will be the output of the following Java program?
Q. How do you declare a multi-dimensional array in Java?
Q. Which keyword in java is used for exception handling?
Discusssion
Login to discuss.