![]() |
| Introduction to Java Programming Language |
introduction to Java: It is general-purpose, high level, pure object oriented programming language. Java is a popular programming language used to create applications for a wide variety of devices, including web, mobile, and desktop platforms. It is developed by James Gosling. It is developed at Sun Microsystems in 1995.
History of Java programming language
James Gosling and his team started to work on java for a client's set top box project in 1991. The first version of java (java 1.0) is released in 1995. First name of java is Oak next goes to Green and finally becomes JAVA. Java is the name of Coffee Seed.
Features of Java Programming Language
- Simple: Java is very simple and easy to learn.
- Platform Independent: Java is called platform independent because a java program can be run on different kind of platform for example Window os, Linux os etc.
- Object Oriented: Java supports object oriented programming structure so it is called object oriented.
- Security: Java is more secure language as compare to other programming language.
- Flexible: An application developed in java can be modified as per user requirement so it is called flexible programming language.
- Portable: A java program written in one system can be run in any other system. In simple a java program can be transferred from one system to another.
- Multithreading: In java we can perform more than one task simultaneously so it is called Multithreading.
What are the Application of Java
- Platform Independence: Java code is compiled into bytecode, which runs on any device with a Java Virtual Machine (JVM). This is called Write Once, Run Anywhere (WORA).
- Object-Oriented: Java organizes code using objects and classes, making modules, reusable, and easier to maintain.
- Robust and Secure: Java has strong memory management and built-in security features.
- Multithreading: Java supports performing multiple tasks simultaneously within a program, improving performance.
- Automatic Memory Management: Java has a built-in Garbage Collector that automatically handles memory allocation and cleanup.
- Extensive APl: Java provides APl (Application Programming Interfaces) for working with data, files, networking. It is used to develop Window Application, Web Application, Android/Mobile Application, Embedded System, Games etc.
Why Use Java
- Easy to learn language: Java has a straight forward syntax that's easy to learn for beginners. Java is a open source language.
- Widely Used: Java powers millions of
- applications, including Android apps, web servers, enterprise software, and more.
- Versatile: Write your code once, and it can run anywhere (thanks to the JVM, or Java Virtual Machine).
- Rich Libraries: Java provides pre-built tools and libraries to make programming easier.
- Strong Community: A large community of developers means you will find java resources, forums, and support to help you learn.
Java Environment Setup in Windows 10
Step 1: Copy the JDK Path
- Go to C Drive
- click on Program Files(x86)/Program Files
- click on java
- click on jdk
- click on bin
- Now copy the url, It looks like this
- C:\Program Files (x86)\Java\jdk1.8.0_45\bin
- or
- C:\Program Files (x86)\Java\jdk1.8.0_45
Step 2: Setup the environment variable
- 1. Choose This PC Right Click Properties
- 2.Choose System
- 3.Click the Advanced system settings
- 4.Click Environment Variables
- 5.In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
- 6.Now in next window there are two section variable Name and variable Value now in variable Name put PATH and in Variable Value paste the copied URL in the Step 1 then click ok.
- Now open command prompt window and run java code.
How to Write Java Program for Beginners
public static void main(String[] args) System.out.println("Welcome To Jiocoding Website"); } } ============OUTPUT============ Welcome To Jiocoding Website |
How to User Input in Java
class Jiocoding{ public static void main(String[] args) Scanner s = new Scanner(System.in); System.out.print("Enter Website Name: "); String name = s.nextLine(); System.out.println("You Can Visit Website:" + name); } } ============OUTPUT============ Enter Website Name: jiocoding You Can Visit Website: jiocoding |
Description of Java Program
class: It is a keyword which is used to declare a class. Class keyword which is predefined in the library is called keyword. For example class, void ,main etc.
Jiocoding: It is an user defined class name.
public: It is a keyword which is called access specifier. It is used to provide accessibility of data variable and member function.
static: It is a keyword. It can be used with a variable or function or block, we will discuss it in next chapter.
void: It is a keyword. It indicates that there is no value is returning by the function. If we use any other keyword like int, float, char etc.
main(): It is the function which is called the entry point of any program. The execution of any program starts from the main function. If in a program there is only one function then it should be main function.
String[] args: It is an array of type String. It is also called command line argument. You can write anything in place of args.
System.out.println: It is used to print data or information on to the output screen. System.out means Standard output object. println is a method/function.
Conclusion of Java Introduction
Conclusion: A java programming language is a most important language. Java can be used multinational company like YouTube, Facebook, Instagram, LinkedIn and more companies. Java is a very secure and pure object oriented programming language. That all about Introduction to Java Programming Language.

0 Comments