Problem statement:
Can you let me know the output of the following code?
Can you let me know the output of the following code?
- public class ExecutionOne {
- public static void main(String[] args) {
- double d1 = 0.8;
- double d2 = 0.8;
- System.out.println(d1 == d2);
- Double d3 = 0.8;
- Double d4 = 0.8;
- System.out.println(d3 == d4);
- }
- }
Output:
true
false
No comments:
Post a Comment