Back to Browse

Lecture - 13| Part 2 - Arithmetic Operators in Java | Division by Zero, Infinity & NaN Explained

46 views
Jan 6, 2026
48:26

In this video, we continue Arithmetic Operators in Java – Part 2, where we focus on special and tricky cases that every Java student must understand. You will learn how Java handles division by zero and why the output differs for integer and floating-point arithmetic. This video explains concepts like Infinity, -Infinity, and NaN (Not a Number) with multiple real examples. TELEGRAM:- https://t.me/javabyganesh2025 📌 Topics covered in this video: • 10 / 0 → ArithmeticException • 10.0 / 0 → Infinity • -10.0 / 0 → -Infinity • 0 / 0 → ArithmeticException • 0.0 / 0 → NaN • Integer vs Floating-point division • Output-based and interview-level examples 🎯 This video is helpful for: Java beginners | MCA / BSc students | University exams | Interview preparation 🔔 Subscribe to Java by Ganesh for in-depth Java concepts explained in a simple and practical way.

Download

1 formats

Video Formats

360pmp477.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Lecture - 13| Part 2 - Arithmetic Operators in Java | Division by Zero, Infinity & NaN Explained | NatokHD