Java Programming language Tutorial


Definition of Java Programming Language:

Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.

What do you mean by high- level Programming language?

High-level Programming language means a programming language that allows a programmer to write codes that are more or less independent of a any computer. These types of language are called high-level because they are closer to human languages and further from machine languages.

History of Java

James Gosling 
Java Programming language created by James Gosling June 1991 for use in one of his many set-top box projects. The language, initially called ‘Oak’ after an oak tree that stood outside Gosling's office, also went by the name ‘Green’ and ended up later being renamed as Java.

Sun Microsystems First released Java 1.0 in 1995. It work on WORA Model (Write Once, Run Anywhere), providing no-cost run-times on popular platforms.

In 13 November, 2006, Sun Microsystems released Java as open source.

Why Java Programming Or Features of Java:


Features of Java


·    Object Oriented − In Java Programming, everything is an Object. Java Programming can be easily controlled and manipulated because it is based on the Object model.
·        Platform Independent − when Java Program is compiled, it is not compiled into platform specific machine; It is Compiled into platform independent byte code. This byte code is run over the web and interpreted by the Java Virtual Machine (JVM).
·        Simple − Java is designed to be easy to learn. If you understand the basic concept of OOP Java, it would be easily understand.
·        Secure − Java Programming is secure because it run inside Java Virtual Machine (JVM).
Java Secure
  • Architecture-neutral − In Java Programing no implementation dependent features such as size of primitive data types is fixed. In C programming, int data type occupies 2 bytes of memory for 32-bit architecture and 4 bytes of memory for 64-bit architecture. But in java, it occupies 4 bytes of memory for both 32 and 64 bit architectures.
  •  Portable − Being architecture-neutral and having no implementation dependent aspects of the specification makes Java portable.
  • Robust − Robust means strong. Java uses strong memory management system. There is lack of pointers that avoids security problem. There is automatic garbage collection in java. There is exception handling and type checking mechanism in java. All these points make java robust.
  • Multithreaded − With Java's multithreaded feature it is possible to write programs that can perform many tasks simultaneously. This design feature allows the developers to construct interactive applications that can run smoothly.
  • Interpreted − Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light-weight process.
  • High Performance – JAVA use of Just-In-Time compilers that Java enables high performance.
  • Distributed − Java is designed for the distributed environment of the internet.
  •  Dynamic − Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.

2 comments

You should to add some Java examples for sure!! As for me, I'm not so much experienced with Scala - I've no practical experience with that at all, to be clear. Moreover, I had many of issues with starting Java at my backend way at all, but it was likely a good luck that I found this Java tutorials https://explainjava.com/javascript-snake/. For me it was absolutely worth the time I spent, because content on both theoretical and practical parts was really informative and well-detailed. So it was a really nice fresh start for me!) And your project seems like something really useful to me, so I'm wondering if you would manage to add Java examples of this in the near future?


EmoticonEmoticon