A
Q. What will be the output?
Code:
public class Test{
public static void main(String args[]){
int a = 42;
double b = 42.25;
System.out.print((a%10)+" "+(b%10));
}
}
public static void main(String args[]){
int a = 42;
double b = 42.25;
System.out.print((a%10)+" "+(b%10));
}
}
- Correct Answer - Option(B)
- Views: 13
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.