AsegGasiaBlog

Java - Introduction To Java

Java - Introduction To Java

What Is Java?

Java is a programming language which helps usin writing commands (code) to make a computer do a particular task.
Java is one of the many programminng languages we use to instruct the Computer.
Other languages include C, C++, Python and many more!
You know what? A computer is a dumb machine.
It needs to be instructed how to perform any particular task and we use a programming language to achieve this.
Java is one such language the computer understands.
That's what java is a mediator between you and your computer.
So if you know Java, you will be able to teach your computer to execute tasks!

Where Is Java Used?

So, as you have seen in the last topic, the applications where programming can be used are endless.
Let's see some specific scenarios where Java is being used.
Here, again, the list is endless....
Java is used to instruct robots to carry out a particular task.
In this case the robot has an operating system, just like a computer does, which allows it to be given instructions.
Java is used to create Android apps which you use on daily basis.
You may not know it, but almost every application for smartphones running on Android use Java.
Java is also used to create desktop applications which we use on daily basis.

How Java Works
Now, you must be wondering how the commands which we write in english are understood by the computer and how is it able to act accordingly?
Let me try to explain this in four simple steps.
1. First, we write a list of commands in English language, creating a Java program.
2. Then, the program is converted into an intermediate version, called bytecode. This version is not readable by humans anymore.
3. The bytecode is then read by a special software called a Java Interpreter, which translates it to a machine friendly language.
4. The computer reads the translated code and performs the tasks requested.

Let's Revise

1. According to you, what is Java? Choose whatever is applicable.
Select one or more answers
A. A mediator between you and your computer
B. A programming language
C. An island
D. A video game console

Answer :
A. and B.

2. Arrange the below in the order of how java works
Arrange the following in correct sequence
1. Computer reads instructions and performs task
2. You write the code in java and save it
3. The binary numbers are is feeded to the computer
4. The commands written in java are converted into
numbers

Answer :

2 - 4 - 3 - 1
 
In this topic, we have learned :

1. What is Java? A programming language, used to give instructions to a computer.

2. Where is Java used? Many different fields, like mobile apps, desktop applications, even robotics!

3. How does java work ? Yes! The four steps: write, convert, feed and perform 😀



Popular Posts