Sail E0 Webinar
Question
What will be the output?public class Test{ public static void main(String args[]){ int a = 42; double b = 42.25; System.out.print((a%10)+" "+(b%10)); }}
Options:
A .  2 2.5
B .  4.2 4.225
C .  2 4.225
D .  42 42.5
E .  Compilation Error
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :

Latest Videos

Latest Test Papers