Java Tutorial For beginners

Watch and track your favorite playlist.

Curated by: Telusko (106 videos)


Currently Playing: #76 What is Exception in Java

Check out our courses: Mastering Agentic AI with Java : https://go.telusko.com/agentic-ai Coupon: TELUSKO10 (10% Discount) DevOps Bootcamp: https://go.telusko.com/complete-devops Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/learn-master Coupon: TELUSKO10 (10% Discount) For More Queries WhatsApp or Call on : +919008963671 website : https://telusko.com/ Udemy Courses: Java Spring:- https://go.telusko.com/Udemyjavaspring Java:- https://go.telusko.com/udemyteluskojava Spring: https://go.telusko.com/udemyteluskospring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 WhatsApp : https://go.telusko.com/whatsapp TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : https://discord.gg/D8hWe9BqfF In this lecture we are discussing about Exception: -- In java three types of errors that can occur during the execution of a program i) compile time error ii)logical error iii) run time error -- this can be called as Exception i) Compile-time errors: Compile-time errors are errors that occur during the compilation of the Java code. These errors are caused by syntax errors, missing semicolons, or incorrect variable names, among other things. If there are compile-time errors in your Java program, it cannot be compiled into bytecode, and it cannot be executed. ii) Logical errors: Logical errors are errors that occur when the program runs correctly, but it does not produce the expected output. These errors occur because of a mistake in the program's logic. For example, if a program is supposed to add two numbers but instead multiplies them, it will produce the wrong output. Logical errors are more difficult to detect than compile-time errors because the program runs without any error messages. Exceptions(Runtime error) Exceptions are errors that occur during the execution of the Java program. Exceptions occur when something unexpected happens, such as trying to read from a file that does not exist or dividing by zero. When an exception occurs, the program will terminate unless the exception is handled by an exception handler. In Exception we have Checked and Unchecked Exception this topic is discussed in Exception hierarachy: a) Checked Exception: Checked exceptions are exceptions that the Java compiler requires you to handle or declare. These exceptions are checked at compile time, and you must either handle the exception with a try-catch block or declare it with a throws clause. If you do not handle or declare a checked exception, the code will not compile. Checked exceptions are typically related to input/output operations, such as file handling or network communication. b) Unchecked Exception: unchecked exceptions are exceptions that are not checked at compile time. These exceptions are typically caused by programming errors, such as null pointer exceptions, array index out of bounds exceptions, and class cast exceptions. Unchecked exceptions are not required to be handled or declared, but they can still occur during runtime. Important: both checked and unchecked exceptions can occur during runtime, but checked exceptions are checked at compile time and require handling or declaring, while unchecked exceptions are not checked at compile time and do not require handling or declaring. Github repo : https://github.com/navinreddy20/Javacode.git More Learning : Java :- https://bit.ly/3x6rr0N Python :- https://bit.ly/3GRc7JX Django :- https://bit.ly/3MmoJK6 JavaScript :- https://bit.ly/3tiAlHo Node JS :- https://bit.ly/3GT4liq Rest Api :-https://bit.ly/3MjhZwt Servlet :- https://bit.ly/3Q7eA7k Spring Framework :- https://bit.ly/3xi7buh Design Patterns in Java :- https://bit.ly/3MocXiq Docker :- https://bit.ly/3xjWzLA Blockchain Tutorial :- https://bit.ly/3NSbOkc Corda Tutorial:- https://bit.ly/3thbUKa Hyperledger Fabric :- https://bit.ly/38RZCRB NoSQL Tutorial :- https://bit.ly/3aJpRuc Mysql Tutorial :- https://bit.ly/3thpr4L Data Structures using Java :- https://bit.ly/3MuJa7S Git Tutorial :- https://bit.ly/3NXyCPu Donation: PayPal Id : navinreddy20 https://www.telusko.com


Tracks in this Playlist