Bloggi
  • News
  • Technology
  • Business
  • How To
No Result
View All Result
Write For Us
Bloggi.
  • News
  • Technology
  • Business
  • How To
No Result
View All Result
Bloggi.
No Result
View All Result

What is Java? A detailed guide to Java

Ankit Gupta by Ankit Gupta
April 3, 2022
in Technology
0
what is java? A detailed guide to java
Share on FacebookShare on Twitter

Today we will be dealing with some of the most powerful and beautiful programming languages called Java? So today we will begin with what is java? And the letter we will discuss what is JDK, JRE, and JVM. So read this article fully without missing any line.

There are lots of programming languages are available that you can learn. Every day new programming languages are developed by developers. But here we are going to discuss the well-known programming language java.

You might also like

12 best SEO Strategies

12 best SEO Strategies for small businesses in 2022

April 9, 2022
SEO Techniques

The Most Crucial SEO Techniques and Guidelines for Better Rankings

April 9, 2022

What is Java?

You probably already know that java is a programming language it is just another programming language. So what is special about it?

Java is known as an object-oriented programming language and is used to develop applications or software. We can understand more about Java by seeing the features of Java that we will discuss here. 

When Java was first released its developer wrote a paper to justify a new programming language. And why do we need to learn a new programming language? And in that white paper, they describe Java as follows, and is also known as features of Java.

Features of Java

  • Simple
  • Object-oriented 
  • Distributed
  • Interpreted
  • Robust
  • Secure
  • Architecture-neutral
  • Portable
  • High-performance
  • Multithreaded
  • Dynamic 

Java contains extensive libraries. When you install java or JDK it comes with approximately 2500 classes. That can be used to do write your code. 

You can use java to create a Web application, desktop application. Superficially it looks like C++. Inside it looks like Smalltalk.

History of Java

Java was developed in the year 1991 by Sun Microsystem and latter this is owned by Oracle Corporation. They wanted to develop a programming language for small devices like TV, VCRS, Toasters, etc. And their goal was to make portable, small, fast, and efficient programming language.

Originally the language was known as Oak. This language was originally released as Java in the year 1995.

Now Java we called as platform independence or write once run anywhere. Nowadays Java becomes more popular. It was continuously developed by the developer of the Java programming language.

Now we have discussed what is Java and the history of Java so let’s discuss what is JDK ?, what is JRE ?, What is JVM?

What is JDK

JDK means Java Development Kit. So commonly it may be called a software development environment so it provides a development environment for Java Application development. It may include some of the software components.

So here we will see what are the components inside JDK. 

  1. JVM
  2. JRE
  3. Java
  4. Javac

What is JVM?

There are many development tools are available and also libraries and apis. JVM means Java Virtual Machine. So the Java Virtual Machine provides the execution support with any platform. 

So this is actually virtually present in your software or in hardware. And it simply helps to execute java code on your device. And it has no physical presence in your device. 

So this is the major one.

What is JRE?

JRE means Java Runtime Environment. JRE is the combination of JVM and Libraries set. In addition to JVM, we have here libraries set. Now, these are the libraries set that the java virtual machine requires in the runtime for the code execution. 

The second one is Java means its loader or interpreter. And the third one is Javac. Javac is a Java Compiler so before we execute the Java Program you need to compile the Java program with the help of the Java compiler.

To run a Java program on your computer you need to download JDK from the official website of Oracle.

So these are the components is available with the JDK. JDK contains JVM, JRE, and libraries set.

Now the question is where to write Java Code and how to run a Java Program? How to execute a Java program? Let’s know it!

Where to write a Java program

So to write a Java program you need to have a text editor. There are many text editors are present in which you can write Java code.

Examples of a text editor are netbeans, Eclipse, etc.

These text editors are also known as IDE. Now, what is IDE? IDE means an Integrated Development Environment. It provides a user-friendly environment for the developer to write a Java code or to run a Java program. 

How to execute a Java program

We can run Java programs in two different ways. Now, what is the ways to execute or run a Java program? But before that, you have to save your Java file with the extension .java and then you can run it.

  1. Run in command prompt
  2. Run using IDE

So to run a Java program in the command prompt you have to set a path for your java file. And after that you have to compile the Java program in the command prompt by writing the command javac filename.java then your java program will be compiled. And if there is an error in your java program then it will show you that error.

If your Java program is compiled successfully and there is no error in your Java program then the last step is to write the command java filename.java in the command prompt. It will give you an output of your java program.

Write the name of your Java file instead of filename.java

These are steps you have to follow when you write your java code in notepad but if you are using IDE then you do not need to follow these steps. Simply you can run your java program directly inside the IDE by pressing the Run button.

Conclusion:

In this article, we have learned what is Java, what is JDK, JVM, JRE, IDE, some features of the Java programming language, the history of Java, where to run the Java program, and how to execute the Java program. 

Programming is fun. If you want to learn Java programming then start to learn it today. You can use youtube tutorials, online courses, or any books to learn Java.

Tags: JAVAJDKJVM
Ankit Gupta

Ankit Gupta

Related Stories

12 best SEO Strategies

12 best SEO Strategies for small businesses in 2022

by Parag
April 9, 2022
0

Small businesses may be intimidated by the notion of implementing an SEO campaign. There are a lot of publications out...

SEO Techniques

The Most Crucial SEO Techniques and Guidelines for Better Rankings

by Parag
April 9, 2022
0

With SEO, your content will appear higher in search engine rankings. It's easy to lose track of important details when...

Earth Elixir

Farmers’ Tapioca ‘Elixir’ Boosts Crop Yields By 20%; Saves 50% Water

by Parag
April 3, 2022
0

Yogesh Sonar, a farmer from Chhattisgarh, created the Earth Elixir, an environmentally friendly and biodegradable product produced from tapioca and...

Healthcare Startups

Healthcare Startups And Their Products

by Parag
April 3, 2022
0

The product roadmap explains why, what, and how a tech startup is building something. This week, Bloggi looks at the...

Next Post
what are HTML and use of HTML complete information

what are HTML and use of HTML complete information

bloggi footer logo

  • Privacy Policy
  • Terms and conditions
  • Disclaimer
  • Acceptable use Policy
  • Contact Us

© 2022 - All Copyrights Reserved | Bloggi

No Result
View All Result
  • News
  • Technology
  • Business
  • How To

© 2022 - All Copyrights Reserved | Bloggi