Introduction to Java Programming

This blog Introduction to Java Programming is a thread in this site is focused towards the freshmen who are willing to self-learn JAVA. For those who already have an idea about Java and wanted to read the same again in a new friendly angle; you are welcome too. Those of Novice and Trained level readers I will writing a separate blog with some interesting facts I know about Java.

Having set the context now, as every other programming blog starts; I do not want to start with the question ‘What is Java?’; The basic answer for that would be that it is one among the Elite programming languages which has stood across decades and now every Tom, Dick and Harry knows it/ wants to learn it.

Programming language is nothing but a intermediate language with defined boundaries which allows us to code a function we want the machine to perform. How this Programming language is understood by the machines is that there is a machine interpreter part for this (all) Programming language which is structured and defined.

So What makes Java Stand Out?

Well as Java has the Object as its core heart which conceals the way in which the class / a function has been written but reveals only the purpose has an edge over all other languages since this behavior plays an important role in Security.

Something like your Bag; whose purpose is known for everyone that it is used to carry stuff but no one knows what exactly are you carrying.

Having said an outline about programming language and plus on Java, let’s get into the main picture of learning Java.

Introduction to Java Programming, where is it applied and used?

Java currently is being used in almost all fields / sectors Core & Online Banking, Retail & Online Retail, Financial Services, Android and much more

Java is a programming language designed and developed by James Gosling with other team members called as Green Team in 1995 for Sun Microsystems for digital devices such as set-top boxes, interactive televisions etc. Now the same is owned by Oracle Corporation. The language was first named Oak, believe it or James Gosling when wanted to come up with a name for this new language the first thing flashed in his mind is the Oak tree which stood outside his office and that became the name.

When this language was first devised this was formulated on top of C/C++ which was already in the Computer world and also be helping the programmers learn this new language sooner. At the beginning the language was just an extension of the OOPS (Object Oriented Programming Structure) which was used in C++ but later this became the very core thing of Java.

{Author Comments: In Java world anyone and everyone will use this OOPS abbreviation better to memorize what it is and what that means}

So to collate all the points together Java is an Object-Oriented, platform independent, robust and secure programming language

The key principles / features of Java are as follows

  • The language should be Simple, Familiar to the computer world
  • Language should be Object-Oriented
  • Language should be Secure and Sturdy
  • Language should be machine independent and neutral
  • Language should be dynamic and threaded (Thread is a term used to represent a running space taken by a program to execute current operation)

Features of Java

 Simple: Though Java was first formulated on top of C++, Java has made life easier by removing all the complexities such as pointers, operator overloading as you see in C++ or any other programming language.

Portable: Java is platform independent which means that any application written on one platform can be easily ported to any other platform(s). Since Java is dependent only of JVM (Java Virtual Machine), of course without that you will not be able to run Java in any machine.

Object-oriented: Everything is considered to be an “object” which possess some state, behavior and all the operations are performed using these objects.

Secured: All the code is converted in bytecode after compilation, which is not readable by a human and Java does not use an explicit pointer and run the programs inside the sandbox to prevent any activities from untrusted sources. It enables to develop virus-free, tamper-free systems/applications.

Scalable: It is designed in such a way to possess the ability to adapt to an evolving environment, and it support continuous improvement on the developed structures which avoids rework and increases the scalability

Distributed: Java provides a feature which helps to create distributed applications. Using Remote Method Invocation (RMI), a program can invoke a method of another program across a network and get the output. You can access files by calling the methods from any machine on the internet.

 Robust: Java has a strong memory management system. It helps in eliminating error as it checks the code during compile and runtime.

 High Performance: Java achieves high performance through the use of bytecode which can be easily translated into native machine code. With the use of JIT (Just-In-Time) compilers, Java enables high performance.

Multithreaded: Java supports multiple threads of execution (a.k.a., lightweight processes), including a set of synchronization primitives. This makes programming with threads much easier.

Java Components

Well in the world of Java you will come across these three things every time

  • Java Runtime Environment (JRE)
  • Java Virtual Machine (JVM)
  • Java Development Kit (JDK)

Java Runtime Environment-JRE

JRE is the set of supporting classes and libraries used to compile and execute the developed Java classes. JRE is part of JVM which as a complete set used to develop and execute Java Projects. This can be downloaded part of whole package or as separate entity as well.

Java Virtual Machine-JVM

A Java virtual machine (JVM), an implementation of the Java Virtual Machine Specification, interprets compiled Java binary code (called bytecode) for a computer’s processor (or “hardware platform”) so that it can perform a Java program’s instructions. Java was designed to allow application programs to be built that could be run on any platform without having to be rewritten or re-compiled by the programmer for each separate platform. A Java virtual machine makes this possible because it is aware of the specific instruction lengths and other particularities of the platform.

Java Development Kit-JDK

JDK is a development environment used to develop Java and Applet applications. This environment sits on top the machine’s operating system and provides the runtime environment, tools and programming that developers need to develop, compile and debug Java and Applet applications

Leave a Reply

Your email address will not be published. Required fields are marked *