ExamVeda
Login
Home
This question belongs to Java Program Operators
Operators
?

What will be the output of the following Java program?
class Modulus 
{
    public static void main(String args[]) 
    {    
         double a = 25.64;
         int  b = 25;
         a = a % 10;
         b = b % 10;
         System.out.println(a + " "  + b);
    } 
}

Answer & Solution
Correct Answer: Option A
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.