C++ Vs Java

C++ is the advanced version of the C Programming language.  Java Vs. C++ lies in the procedure follows by each programming languages. C is a procedural language whereas C++ follows an object-oriented paradigm. Like Java, C++ represents the class and objects and has an Object Oriented Concept. In this article, we’ll discuss some difference between […]

Assembly Language

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 […]

Unit 9: Packages and Interface

Packages are used in Java in order to prevent naming conflicts, to control access, to make searching/locating and usage of classes, interfaces, enumerations and annotations easier, etc. A package can be defined as a grouping of related types (classes, interfaces enumerations etc) providing access protection and name space management. A package is a collection of […]

Unit 8 : Inheritance

Inheritance is one of the three foundational principles of object oriented programming (abstraction, polymorphism and inheritance) because it allows the creation of hierarchical classifications. Using inheritance,  we can generate class that defines traits common to set of related classes. This class can then be inherited by other more specific classes each adding those things that […]