i
Understanding Requirement: Why Java
Why Java is important to the Internet
Java On Linux
First Java Program
Java Virtual Machine Architecture
Class Loading Process by Class Loaders
Role Of Just In Time Compiler
Execution Engine
Data Types
Variables
Arrays
Operators
Arithmetic Operations
Shifting Operators
Logical Operators
Control Statements
Object Oriented Paradigms
The Three OOP principles
Looping Statements
JAVA Class Fundamentals
Command Line Arguments
Static Initialize
Creating an Object
Instance Variable Hiding
Overriding and Overloading of methods
Understanding The Access Controls
Nested And Inner Classes
Dynamic Method Dispatching
Abstract Classes
Using Final To Prevent Overriding & Inheritance
Garbage Collection
Defining a package
Understanding Classpath
Access Protection
Importing packages
Defining and Implementing An Interface
Abstract classes vs Interfaces
Generics
Annotations
Varargs
Foreach
Fundamentals Of Exception Handling
Types Of Exceptions
Learning exception handling, try-catch, multiple catch clauses
Nested Try Statements
Throw, Throws and Finally
Custom Exceptions
Java Thread Model
Creating A Thread
Context Switching
Synchronization: Methods And Statements
Inter-thread Communication
Let’s start with the idea that exceptions are normal in every application. What is exception at all? It is the not predictable situation or we can say that this is the case when our applications is not acting as expected. Exceptions can be treated and handled so that it won’t collapse our application in the middle of process. Java exception handling is managed via five keywords: try, catch, throw, throws, and finally. We will describe whole process and usage of these keywords in the following chapters in details but before we move there let’s shortly state the options we have during exceptions.
When an exception happens, we can handle it which is catch. Or we can throw it to upper level. Or we can catch it, do some operations and then throw another exception.
Don't miss out!