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
Data Streams like Character Streams, which makes it easy to read and write character files, are used to perform binary input output operations of all the primitive data types in Java including Strings. For example, if we want to perform input/output operations for char, boolean, int, short, byte, long, float, double or Strings then we have data streams which provides a very efficient way for those operations. This allows us to read-write Java primitives instead of raw bytes.
There are two main classes: DataInputStream and DataOutputStream. Let’s visit few points of them.
DataInputStream
It makes InputStream Object wrapped and then application read the Java primitive data types from the wrapped input stream.
Conversion process into primitive data is machine independent.
It is users responsibility to make DataInputStream safe in multithreaded environment
DataOutputStream
Similar to DataInputStream it is wrapped object and then Java program writes primitives to the wrapped output stream.
Don't miss out!