Unit 11 : 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. Thus,Ā multithreading is a specialized form of multitasking.  There are two distinct types of multitasking: process-based and thread-based.  A process-based multitasking is the feature […]

Continue Reading

Unit 8 : Inheritance

Inheritance It is the process by which object of one class can acquire the properties of object of anotherĀ class. Ā The class, from which properties are inherited, is known as super class. Ā The class, to which properties are inherited, is known as sub class. A sub class inherits all of theĀ variables and methods defined by the […]

Continue Reading

Unit 6 & 7 java programming

Class and object A class is a user defined data type which binds data and function into a single unit and objects are theĀ instance of a class. A class is declared by use of the class keyword. The general form of a class definition is shown here:

The data, or variables, defined within a […]

Continue Reading

Unit 5 : Control Statements

Java’s Control Statements A programming language uses control statements to cause the flow of execution to advance andĀ branch based on changes to the state of a program. Java’s program control statements can be put intoĀ the following categories: selection, iteration, and jump. Ā Selection statements allows program to choose different paths of execution based upon theĀ outcome of […]

Continue Reading

unit 1 Java programming

Example;-WAP to print a message ā€œWelcome to Java Worldā€.

Output: Welcome to Java World Explanation of above program public static void main(String args[]) All Java applications begin execution from main ( ) function. (This is just like C/C++.) The public keyword is an access specifier, which allows the programmer to control the visibility of […]

Continue Reading