Unit 3: Java Input and Output System

Introduction to Java I/O : JDK has two sets of I/O packages: the Standard I/O (in package java.io), introduced since JDK 1.0 for stream based I/O, and, the New I/O (in package java.nio), introduced in JDK 1.4, for more efficient buffer based I/O. Concept of file:   So far we have used variables and arrays for […]

Unit 13: String Handling

One of the most commonly used Java classes is String. This is because string handling is an integral part of many Java programs. The string class is packaged in Java. Lang. Thus, it is automatically available to all programs. Java implements String as objects of type String. Implementing strings as objects allows Java to provide […]

 Unit 12: Enumerations, autoboxing and annotations

Enumeration is a common programming feature that is found in several other programming languages, it was not part of the original specification for Java. One reason for this is that enumeration is technically a convenience rather than a necessity. However, over the years, many programmers had wanted Java to support enumerations because they offer an […]

Unit 11: Multithreaded Programming

Unlike many other computer languages, Java provides built in support for multithreaded programming. A multithreaded program contains two or more parts that can run concurrently. Each part of such a program is called a thread, and each thread defines a separate path of execution. Multithreading is specialized for of multitasking. It is important to understand […]

Unit 10: Exception Handling

Exceptions An exception is an abnormal condition that arises in a code sequence at run time. In other words, an exception is a run time error. An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal flow of the program is disrupted and the […]