Q. What will be the output of following java code?
Code:
public class Test{
public static void main(String args[]){
int a = 42;
double b = 42.25;
System.out.print((a%10)+" "+(b%10));
}
}
β
Correct Answer: (B)
2 2.5