Main menu

Pages

What is the Java language - CS academy

 



What is the Java language

hh

What is the Java language?

JAVA is written in Arabic, and it is a high-level programming language invented by James Gosling in 1991 while working in the laboratories of Sun Microsystems to use it as the thinking brain used to operate smart devices.


It works on all major operating systems such as Windows, Mac OS, Linux, Unix, Android, etc.. and is considered one of the most popular programming languages ever.


Currently, millions of electronic devices are programmed on the Java language, and this is the slogan of the Java language:




Advantages of the Java language for developers
It is very popular and there are many references for anyone who wants to learn it.
Simple and great to learn
different in other languages.
It is similar to C and C++, but it is easier and smoother to deal with.
If you create a program using the Java language, the program works on any system in the world, and this is one of the most important things that drive you to learn it.
The Java language is very popular abroad. If you want to enter the job market, the Java language provides you with many opportunities.
Advantages of Java over other programming languages
physically
You will not pay any amount to work on the Java language, as it is open source and free, and it will remain free for life.


Technically



Simplicity
Learning it is very easy after you understand object programming.


Act impartially
The Java compiler can split program commands into multiple processors simultaneously using the JRE scheme.


multitasking
Java provides you with the Multithreading technology, which allows you to make your program able to execute several commands together and at the same time.


Translation speed
The Java language is translated into commands that the device understands very quickly, without storing them and trying to analyze them, because the objects in it are gradually linked together, which makes the commands in it be executed quickly.


Error handling
Java handles errors in two ways. While writing the code, it tries to fix any errors in writing the code, and while running the code, it tells you of any logical error if it occurs, which you have to handle yourself.


dynamically
Java is designed to be more dynamic than C and C++. Java programs can carry a large amount of information at runtime that can be used to check the code and see if the compiler can access objects at runtime.
Who is this reference prepared for?
This reference is made for all people who want to learn.
So whether you are an amateur, a student or a programmer, this reference will help you understand the basics of the Java language and reach a very advanced level.


In the next lesson, we will guide you to download the Java language tools that we will use to demonstrate and that you can use to build your own applications in the future.



So the code you write is called Source Code.
In order for this code to be executed, it is converted into byte code by the Java language interpreter (javac), and this interpreter ensures that the code you write runs in the Java language.
Then the Java language interpreter (JVM) executes the code in a manner appropriate to the operating system that the user is using, whether it is Windows, Linux, or MacOS.


Technical terms
Source Code: means the source code or code, and it is also called source code.
Byte Code: Java code that has been validated and prepared for the Java interpreter.
javac: Short for Java Compiler, it is called the Java language compiler. Actually, it is a program that converts code written in Java into byte code.
Interpreter: It is a program whose task is to execute the code so that it works like any other program on the user's computer.
JVM: An abbreviation for the Java Virtual Machine, which is a special Interpreter to run the Byte Code, which is basically Java code like any regular program.
OS: An abbreviation for Operating System, which means the operating system.
The concept of the JDK and its importance to the Java language
As you may have noticed earlier, code written in Java goes through several stages in order to run. The main reason for this is that the operating system is not written in Java.
From this point of view, you should know that in order for the operating system you are using to recognize the Java language, you need to download and install the Java Development Kit (Java Development Kit), which is called the JDK.


The JDK, in turn, includes many things, such as:


Ready-made classes in java.
Explanations of ready-made classes and functions that appear to you while writing the code, which are called javadoc.
java language compiler.
The Java Runtime Environment (JRE), which in turn contains the JVM.

Comments

table of contents title