Understanding Multithreading in Java

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. Each thread defines a separate path of execution. Multithreading is a specialized form of Multitasking.

Learn how to handle Events using Java

In any interactive environment, the program should be able to respond to actions performed by the user. There actions can be Mouse click, Key Press or selection of a Menu Item. When the user initiates an action, the AWT generates an event and communicates it to event handlers. These event handlers can respond to the […]

Learn how to handle Exception using Java

An exception is an abnormal condition which occurs during the running of a program. For example division by zero, invalid array index are the instances of exceptions. It’s better to anticipate such errors in advance and take necessary precautions while writing source code itself.

Understanding Data Types and Variables in Java

In every programming language, you will learn about data types like Integer, Float etc. Data types are necessary for variable declaration. Data Types in Java are primitive types i.e.; they are built into the Java language itself. Data types in Java can be classified as Byte, Short, Long, Integer, Float, Double, Character, Boolean. Let us […]

Introduction to Java

Java is a programming language for the internet and was developed by Sun Microsystems. It’s completely object-oriented and more flexible than C/C++. You can perform two type of Programming work with java. First is general applications and the second applets. However, applications are not as much developed by using java. Programmers use java to design […]