What does the double d2 = (double) 1 / 3; System.out.println(d2); do and why?
What will be an ideal response?
It will cast 1 to double and then divide by 3 and set the value of d2 to 0.3333333333333333.
Computer Science & Information Technology
You might also like to view...
A sort can only list records in a database in a specific numeric sequence
Indicate whether the statement is true or false
Computer Science & Information Technology
You can manage the information provided by a person filling in a form by modifying the styles of content control
Indicate whether the statement is true or false
Computer Science & Information Technology