My Java Journey

HISTORY OF JAVA

Java is one of the most popular programming language. It was created in 1991 by James Gosling of Sun Microsystems and publicly released in 1995. The language was acquired afterward by Oracle and currently owned by the same company. Java finds use in multiple ways among which are mobile application, desktop application, web development, distributed processing and game development. FEATURES OF JAVA

  1. It is a platform independent language that can run on any platform, hence it is a write once, run anytime.

  2. It is object oriented which everything that happens is in the manner of an object. Objects talk to each other, objects use each other methods and properties. Objects communicate with each other.

  3. Statically typed: unlike most interpreted languages such as python, Javascript et al. Java is typed in such a manner that the variable types are declared always. This is also referred to as strong typed checking hence this helps the language to check errors before compilation.

  4. Compile and Interpret: Java compiles codes into byte codes which are afterwards interpreted by the Java Virtual Machine(JVM).

  5. Garbage Collector: variables and data in Java are stored in the heap(memory location for Java). Each time a new variable is created, a memory space is allocated to it in the heap. When a memory space is filled by a redundant variable, Java takes the initiation to remove it and create space for a new variable.

  6. Multi-threading: this means for a software, the different components of the software are assigned to different classes. Hence, there is no overloading of a class.

  7. Secure: due to the concept of access modifier and abstraction. Java shields its fields from the global view and can abstract some processes thus not allowing any memory leak.

THE PROCESS OF COMPILATION AND EXECUTION

SOURCE CODE (a .java file) - JAVA COMPILER (gives a .class file) - Runs on any platform (Windows, MacOS or Linus)