Page 1 of 1

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
by answerhappygod
Show The Output Of The Following Code Public Class Test Public Static Void Main String Args Double X 3 5 1
Show The Output Of The Following Code Public Class Test Public Static Void Main String Args Double X 3 5 1 (20.42 KiB) Viewed 93 times
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));