Loading...
Write a Java expression for the following: √(b² − 4ac)
Evaluate the expression when x is 4: x + = x + + * + + x % 2;
What is the output of the statement Math.pow (36, 6/5); ?
Assertion (A): The result of the Java expression 3 + 7/2 is 6. Reason (R): According to the hierarchy of operators in Java, addition is done first followed by division.
Evaluate the Java expression: x = a * b % (+ + c) + (+ + a) + (– – b); if a = 7, b = 8, c = 2
The following program segment swaps the first element and the second element of the given array without using the third variable, fill in the blanks with appropriate java statements: void swap() { int x[ ] = {4, 8, 19,24, 15}; (1) __________; (2) __________; x[0] = x[0] / x[1]; System.out.println(x[0]+" "+x[1]); }
© 2026 PadhAiPro. This question is provided for educational purposes.