in Education by
double x=0.5; System.out.println(Math.rint(x)); ….Plzz give me the output… Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
ANS not 0.0 This is absolutely correct Hope it helps

Related questions

0 votes
    In Java, what will be the output of the following code and how? double x=2.9,y=2.5; (SOP is abbreviated form ... x),y)); Explain how Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    Math Functions: System.out.println (Moth floor (-0.48)]; System.out.println (Math ceil (-0.46)); System.out.println ... Hound (-8.5)); Select the correct answer from above options...
asked Dec 16, 2021 in Education by JackTerrance
0 votes
    import java.util.*; class hello{ System.out.println(Math.ceil(-28.23)); } IN THIS CODE JAVA COMPILER IS ... URGENT .PLEASE . Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    class Modulus { public static void main(String args[]) { double a = 25.64; int b = 25; a = a % 10; b = b % 10; ... (a + + b); } } Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    State the type of errors if any in the following statements: (i) switch ( 2 ); (ii) System.out.println(670/0); pls answer Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    int n=10;int res=(n–+10>–n×5)?++n:n++ System.Out.println(res+”,”+n); what is the output Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
0 votes
    What is the output of the following: System. out. Println(“Time\n and \t tide waits for\”no man\””); pls answer Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    What Is the output of the following:String a= Java is programming language \n developed by \t\'James Gosling\' ... ; Please Answer ASAP Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    - Conveset (321),0 - binary number System (3) Subtract: (1100) A. (3) (1001) (1000) (3) Add : Convert (4 ... Multiply: (101). X (11 1) Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Give at least two to three differences between rint() and round() in Java… Please give the answer in points.. Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    Rewrite the following loop using for loop: int i=0; while (i...
asked Dec 22, 2021 in Education by JackTerrance
...