Name the type of error that occurs for the following statement: System.out.println(Math.sqrt(24-25));

Explanation

The correct option is B because the statement System.out.println(Math.sqrt(24-25)); will throw a run-time error because the square root of a negative number is undefined.


โฌ† Related Topic

View Topic Hub โ†’

๐Ÿ“˜ Syllabus

View ICSE Class 10 Syllabus โ†’

๐Ÿ“ Practice Questions

Practice Previous Year Questions โ†’

๐Ÿค– Practice with AI

Generate Practice Question Paper โ†’


๐Ÿ“š Related Concepts