JAVA TUTORIAL

Java Intro Java Features Java vs C++ Java Simple Program Java Applet vs Application JVM,JDK or JRE Java Keywords Java Variables Java Literals Java Separators Java Datatypes Java Operators Java Statements Java Array Java String

CONTROL STATEMENTS

Java If-else Java While Loop Java Do-While Loop Java For Loop Java For-each Loop Java Switch Java Break/Continue

JAVA METHODS

Java Method Java Overloading Java Overriding

JAVA CLASSES

Java OOPs Java Classes/Objects Java Inheritance Java Polymorphism Java Encapsulation Java Abstraction Java Modifiers Java Constructors Java Interface Java static keyword Java this keyword

What is Java?

Java is an object oriented internet programming language

Java is a strongly typed language

Java was developed by a team of computer professionals under the guidance of James Gosling at Sun Microsystems in 1991

They wanted to give a suitable name. Initially they called it “oak” after seeing an oak tree from their window, but after some weeks they were discussing another name and were sipping Java coffee, so one of them suggested the name “Java”


History of Java

James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. Java was originally designed for interactive television, but it was too advanced for the digital cable television industry at the time.

The language was initially called Oak after an oak tree that stood outside Gosling's office. Later the project went by the name Green and was finally renamed Java, from Java coffee, a type of coffee from Indonesia

Sun Microsystems released the first public implementation as Java 1.0 in 1996. It promised Write Once, Run Anywhere (WORA) functionality, providing no-cost run-times on popular platforms. Fairly secure and featuring configurable security, it allowed network- and file-access restrictions.

Principles

There were five primary goals of the Java language

1. It must be simple, object-oriented, and familiar.

2. It must be robust and secure.

3. It must be architecture-neutral and portable.

4. It must execute with high performance.

5. It must be interpreted, threaded, and dynamic.

Versions

There are many java versions have been released till now.

1. JDK Beta => 1995

2. JDK1.0 => Jan 23 1996

3. JDK 1.1 => Feb 19 1997

4. J2SE 1.2 => Dec 8 1998

5. J2SE 1.3 => May 8 2000

6. J2SE 1.4 => Feb 6 2002

7. J2SE 5.0 => Sep 30 2004

8. Java SE 6 => Dec 11 2006

9. Java SE 7 => July 28 2011

10. Java SE 8 => March 18 2014

11. Java SE 9 => Sep 21 2017

12. Java SE 10 => March 20 2018

13. Java SE 11 => Sep 25 2018

14. Java SE 12 => March 19 2019

15. Java SE 13 => Sep 17 2019

16. Java SE 14 => March 17 2020

17. Java SE 15 => Sep 15 2020

18. Java SE 16 => March 16 2021


Why we use Java?

Java is one of the best programming language that is based on the concept of Objects. And thus, it is also known as the Object Oriented Programming Language. Also, there are some of the striking features that Java provides and hence, it makes programmers to use it as one of the most effective and the efficient programming language. Thus, here are some of the features that you can have a look at.

Some of the striking features of Java

It is based on the concept of class and objects.

It is network aware and hence, java programs can easily be run on any platform.

It is designed especially to remove certain types of programming errors.

Java language is known to be compiled to byte-codes, which are then interpreted to Java Run-Time Environment.

Java provides one with the most secure environment. Even though it is running on a network, one can be sure about the online security with java run-time environment.

Java is one of the most dynamic programming language.

Most of the programming languages are very hard to understand and one might require to put a lot of effort but using java as a programming language.