Show the output of the following code? public class Test { public static void main(String[] args) { Double x = 3.5; } }
Posted: Tue Jul 12, 2022 8:04 am
Show the output of the following code? public class Test { public static void main(String[] args) { Double x = 3.5; } } System.out.println(x.intValue()); System.out.println(x.compareTo (4.5));