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
Inter-thread communication is the process which allows synchronized threads to communicate with each other. This is a mechanism in which a thread is paused running in its critical section and different thread is allowed to execute the same critical section. This process is implemented by three methods of Object class:
Wait() – In this case, current thread releases the lock and waits until either a specified amount of time has elapsed or another thread invokes the notify() method or the notifyAll() method for this object.
Notify() – In this case, the thread that is waiting on this object's monitor is waking up. If any threads are waiting on this object, one of them will be chosen to be awaked. The choice is the discretion of the implementation.
NotifyAll() – This method is waking up all the threads which are waiting on this object's monitor.
Don't miss out!