Q. What is the output of System.out.println(Math.pow(2, 3));?
Solution:
Math.pow() raises a number to a power, so 2^3 = 8.0 (returned as a double).
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Math.pow() raises a number to a power, so 2^3 = 8.0 (returned as a double).
Strengthen Your Practice with our comprehensive question bank.