In today's generation, the smartphone and internet have become one of the most important part of our lives. We use our phone for almost every time in our daily tasks. Earlier, we used to shop at malls, queue up in front of banks and make a travel bookings at travel agency. But now we can do all of this things in our home using our smartphone. All of this are possible because of the high-level programming called Java.
What is Java?
Java is an object-oriented programming language that is used in a distributed environment on the internet.
It is a high-level language that is easy to read and understand.
Uses of Java Programming
It is popularly used in console, GUI, web, mobile application, game development and also to make embedded systems.
Apart from these,Java is also used to develop software for devices.
It is use not only in computers and mobiles, but even in electronic devices like televisions, washing machines, air conditioners and so on.
Online forms, banking and shopping are possible because of Java.
Java is a computer-base programming language invented by James Gosling
and Sun Microsystems in 1991.
He had a single motto while creating the language, it was "Write once, run anywhere."
This meant that the code would have to be written only once but could be used anywhere.
They name this language "Oak" because of the oak tree outside their office. Later they changed it to Green, then Java Coffee then finally to Java in 1995.
There are 3 editions of Java.
Each programmer can learn any of these editions based on the application they want to make.
Java Standard Edition
This contains core libraries like java.lang, java.util etc.
Java Enterprise Edition
This edition has APIs like JMS, EJB, JSPs, Sevlets, etc.
Java Micro Edition
Edition used to program Java in cellphone, set-top boxes, handhelds and so on.
Java is based in C and C++ language. However, it is improved and simplified to solve the errors in programming.
Java files are converted to bit code format using a compiler and then executed by the Java interpreter.
The whole Java code is run on the Java virtual machine which provide a runtime environment.
The main concepts of Java are its methods and classes.
Methods are a block of code that perform a task only when it is called.
Example : Changing channels in a Television using the remote buttons.
Classes are used to organise codes just like how fruits, vegetables and other products are divided into different sections in a market.
There are lot of features in Java.
It has simple syntax and very easy to understand.
Java is robust. It eliminates errors that occurs in C and C++ languages.
It has garbage collector and exception handling.
The most popular feature in Java is that it is platform independent. Java can run on any machine.
It is a very secure language as it contains no virus.
It has multi-threading - this feature helps Java to do multitasking.
It is a portable language as it can run on any platform and data type sizes are set permanently so Java program has a fixed size of the code.
Lastly, Java is not as fast as C and C++, but provide higher performance than any other languages.
Java has 4 concepts.
Abstraction
Showing relevant information that is needed for a task.
Encapsulation
Makes the Java code secured by storing data inside the Classes.
Inheritance
This means that the attributes and characteristics of one class can be inherited by another classes and this make coders take less time to create a code.
Polymorphism
• This mean that the same method can be used in different tasks.
This concepts makes Java very Unique.
If ever you plan on studying about programming or taking a course in Computer Science as it is essential and on demand for today's technology, this article will be very helpful for you to get started.
Make sure and please leave a like and subscribe if you find this helpful. Thank you! ❤️
Images sources:
I.T student or graduate? 🙈😲