1.

What is the value stored in variable res given below : double res = Math.pow (“345”.indexOf(‘5’), 3);

Answer»

res = Math.pow (“345”.indexOf(‘5’), 3); is valued as :

res =8



Discussion

No Comment Found

Related InterviewSolutions