Where did java come from, and why is it so popular?
Before java C was extremely popular language; however, C ran into limitations, because there is no easy way to cut up along C program into self-contained compartments. This meant that code in the first line of a long program could interfere with code in the last line, and the programmer had to keep the whole code in mind while programming.
To cut up long programs into semi-autonomous units, oop became popular. With oop, the motto is”divide and conquer”. In other words, you can divide a program into easily conceptualized parts.
When oop was added to C, it became C++, and programmers had a new darling. C++ let programmers deal with longer programs, and oo code helped solve many other problems as well.
All this seemed great to a programmer, and C++’s star rose high. It appeared too many that the perfect programming language had arrived.
What could be better?
However, the programming environment itself was about to undergo a great change with the popularization of what amounts to an immense new programming environment- THE INTERNET. And that’s what’s made Java so popular.
History of JAVA
First, we need to know the history of any programming language because it is an evaluation of that language if u have knowledge of past then u will have knowledge about present and signifies your future in that language
Java was not originally created for the internet. The first version of java began in 1991 and was written in 18 months at Sun Microsystems by a team of sun engineers named a green team who developed java programming language. James Gosling as called as father of java.
The first name of java a was green talk given by James Gosling and .gt was file extension and after, that he changed the name to OAK after tree outside his office. The original idea for OAK was to create a platform-independent, OO language. Sun wanted to create a language it could use in consumer electronics.
OAK was renamed JAVA in 1995. When it was released for public consumption. BY that time, java had adopted a model that made it perfect for the internet—the bytecode model.
After that oak was renamed as java due to trademark issue by oak technologies after that the green team came up with working demo or their first application of java called as star seven(1992) it was excellent application and star seven has touch screen similar to our today’s smartphone.
So the first version of Java was released on January 23, 1996, and it was JDK 1.0 oracle acquired sun Microsystems in 2010.
They want to create a language that should be platform independent and run on any os from 1995 they came with a name java and so from 1995 till now we have this name as java
Why java became more popular than c and c++?
C and c++ are powerful programming language but they are platform dependent
And Java was designed to be platform independent
C++ program is written on window machine which will not work on a Linux server or any other server so this is what this is platform dependencies.
But java program does not depend on OS
Java programs written on windows can work on the Linux server or any other OS, so this way java becomes a very popular language in 90’s.
WHAT IS Java?
Java is a programming language and a platform.
Java is a high level, platform independent, robust, secured by an object-oriented programming language.
Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has its own runtime environment (JRE) and API, it is called platform.
It is cross-platform programming language which will u develop and run on multiple Operating System like Windows, Linux and mac os or any other os and runs on a special VIRTUAL machine called as Java virtual machine .so this machine is responsible for Java programs. If u want to run java programs u need to have JVM on ur os and so this JVM is same for every os so its run on every os which Java supports.
Where is it used?
The main feature of java is its platform independent and java is most important language because all games, mobiles, and secure websites use java when you install java, you can see it’s written that 3 million devices use java. Some of them are as follows:
Enterprise Applications such as banking applications.
Web Applications such as irctc.co.in, javatpoint.com etc.
Desktop Applications such as text editor, video player, antivirus etc.
Types of Java Applications
Java is not targeted at the internet of course in fact; there are two types of java programs- one for internet and one for local machine use. Applications that can be created using java programming are as below:
Standalone applications are also known as window-based applications. AWT and Swing are used in java for creating desktop applications. Examples of J2SE are text editors, video players etc.
2) Jakarta EE.
An application that creates a dynamic page and runs on the server side, is called web application. An application such as applications related to banking etc. is called enterprise application. In Java, EJB is used for creating enterprise applications. For web applications servlet, JSP, struts, spring, hibernate, JSF etc. technologies are used in java.
An application that is created for mobile devices. Currently, Android and Java ME are used for creating mobile applications.
Java Platforms / Editions
There are 4 platforms or editions of Java:
1) Java SE (Java Standard Edition)
It is a Java programming platform. It includes Java programming APIs such as java.lang, java.io, java.net, java.sql, etc. It includes core topics like OOPs, Networking, String, Regex, Exception, Anonymous classes, Multithreading, I/O Stream, AWT, Swing, Reflection, and Collection etc.
2) Java EE (Java Enterprise Edition)
It is built on the top of Java SE platform. It includes topics like JSP, Web Services, EJB, Servlet JPA etc. Java EE is an enterprise platform which is mainly used to develop enterprise and web applications.
3) Java ME (Java Micro Edition)
It is a micro platform which is mainly used to develop mobile applications.
JavaFX is used to build up prosperous internet applications. It uses lightweight user interface API.
Hope this article was helpful in understanding few must knows about the language.