Home / Programming Language / JAVA programming / JAVA Programming Tutorial Part 1 : Introduction to JAVA

JAVA Programming Tutorial Part 1 : Introduction to JAVA

JAVA Programming Tutorial Part 1 – Introduction to JAVA : Java is now one of the most popular programming language. Mainly because of how versatile and compatible it is, Java can be used for a large number of things, including software development, mobile applications, and large systems development. That is why , at present time 3 billion devices are running on java. So, if you learn Java it will be a great opportunity to become a successful developer. So, I am here to teach you the process of learning JAVA programming language.

What is java
What is java

What is JAVA?

before starting this JAVA Programming tutorial lets know about the Java little bit:

JAVA is a high level, modern programming language. This was originally developed by Sun Microsystems in the early 1990s. This was first released in 1995 and currently owned by Oracle.

History behind the invention of JAVA

JAVA Programming tutorial : It was 1991, James Gosling invented a language called “Oak,” naming it after the Oak tree that was outside his window in Menlo Park. Before this time,if you wanted to run a program you had written on another platform, you would have to recompile it first. As we know,need drives invention, particularly for efficiency. James Gosling was part of a team that was creating a handheld device known then as the Green Project. The project needed to run on different platforms and use animation, something languages of that time could not support he decided to develop the language known as Oak. However, it turned out that there was already a language called Oak. Seeing as they didn’t want to copy someone else’s name, they searched for a new name. Inspiration came when he walked into a coffee shop, so they called it “Java” in 1995.

To know more about java you can follow our article on ” History of java “.

Features of JAVA Programming Language :

Java was mainly a project from Sun Microsystem. Primarily the project name was green project. Which was a made to create such kind of product that will be platform independent. And for the result of that green project now we have our Platform independent programming language named JAVA. Now lets discuss about the another features including platform independence :

  1. Simple
  2. Platform Independent
  3. Architectural
  4. Neutral
  5. Portable
  6. Multi Threading
  7. Distributed
  8. Networked
  9. Robust
  10. Dynamic
  11. Secured
  12. High Performance
  13. Interpreted
  14. Object Oriented

Simple Programming language :

So, what will you say about simple? Mainly, ease of reading and writing makes any language simple. And this is also goes for the JAVA. The Java language is easy to learn and its coding style is easy to read and write. It contains many features of other Languages like C and C++ and has a less ambiguous syntax terminology.

Example : Pointers and Operator Overloading are not there in java but were an important part of C++.

Anyone can start right off with Java with an understanding of the basic underlying principles of programming. If you understand the basic concept of OOP Java, it would be easy to master. That is why we can call it simple.

simple
simple

Platform Independent :

The motto for Java comes in with ” Write Ones Run Anywhere ” Shortly “WORA”. That means – you can develop on one environment(Operating System) and run on another environment without doing any modification of the code.

For doing so – Java code is compiled into an intermediate format, called bytecode, which is to be executed in the JVM (Java Virtual Machine). Any system that runs a JVM is able to execute the Java code. That is why you do not need to make any modification the code to run it on another operating system. The only thing you have to ensure that JVM is installed on that Operating System.

Platform Independent
JAVA is Platform Independent

Architectural Neutral :

Here Architecture indicates the processor. A language or technology can be said to be an architecturally Neutral when it will be able to run on any possible processor in this real world without considering their development and compilation.

JAVA is Architectural Neutral
JAVA is Architectural Neutral

Portable :

According to Sun Microsystems – A language can be said portable when it will be a Platform Independent and Architecturally Neutral both at a time. As JAVA is platform independent and Architecturally Neutral, Java is a portable language.

Multithreaded :

Java supports Multithreading. Multithreading means handling more than one job at a time, so get more process get done in less time than it could with just one thread. 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.Also the Java platform is designed with multithreading capabilities built into the language. That means you can build applications with many concurrent threads of activity, resulting in highly interactive and responsive applications.

Distributed :

Java is also a distributed language. Using this language we can create distributed applications. RMI and EJB are used for creating distributed applications. In distributed application multiple client system depends on multiple server systems so that even problem occurred in one server will never be reflected on any client system. Also, Programs can be designed to run on computer networks. Java has a special class library for communicating using TCP/IP protocols. Creating network connections is very much easy in Java as compared to C/C++.

Networked :

Java was mainly designed for web based application. In java J2EE is used for developing network based Application.

Robust :

Robust means Strong. It is robust or strong Programming Language because this programming language has the capability to handle Run-time Error, automatic garbage collection, the lack of pointer concept, Exception Handling. And all this special functions made this language a strong programming language.

Dynamic :

Java is a dynamic language which means it can link new Java class libraries, Java objects, and Java methods dynamically. Also this is is considered to be more dynamic than C or C++ . Since it is designed to adapt to an evolving environment it also supports functions from its native languages like – C and C++. Java programs can carry an extensive amount of run-time information that can be used to verify and resolve accesses to objects at run-time.

It supports Dynamic memory allocation due to this memory wastage is reduce and improve performance of the application. The process of allocating the memory space to the input of the program at a run-time is known as dynamic memory allocation, To programming to allocate memory space by dynamically we use an operator called ‘new’. ‘new’ operator is known as dynamic memory allocation operator.

Secure :

When it comes to security, Java is always the first choice. With java secure features it enable us to develop virus free, temper free system. This Language always runs in Java runtime environment with almost null interaction with system OS, hence it is more secure.

JAVA is a secure language because it has the following features –

  • It has no explicit pointer.
  • Programs run in a virtual machine sandbox.
  • Java adds a class loader that separates the classes for a package of the local file system from imported ones from a network.
  • It has a bytecode verifier that checks the code fragments for any illegal code that violates the access right.
  • It has a security manager that defines the access of Java classes.

High performance :

The Java compiler is designed for high performance. Java code is compiled into bytecode which is highly optimized by the Java compiler, so that the Java virtual machine (JVM) can execute Java applications at full speed. In addition, compute-intensive code can be re-written in native code and interfaced with Java platform via Java Native Interface (JNI) thus improve the performance.

As Java is an interpreted language, so it will never be as fast as a compiled language like C or C++. But, Java enables high performance with the use of just-in-time compiler.

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.

Object Oriented :

As the name suggests, Object-Oriented Programming or OOPs refers to languages that uses objects in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function. OOPs Concepts:

  • Polymorphism
  • Inheritance
  • Encapsulation
  • Abstraction
  • Class
  • Object
  • Method
  • Message Passing

As JAVA supports these we can sa that java is a OOP Language.

Required Software –

Two types of Software is mandatory for JAVA Programming tutorial :

JDK (JAVA Development Kit) : The Java Development Kit (JDK) is a software development environment. We can use this for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development.

IDE (Integrated Development Environment) – A software application which enables users to more easily write and debug Java programs. Many IDEs provide features like syntax highlighting and code completion, which help the user to code more easily.

There are many ide for working with java. Such as- NetBeans, Eclipse, IntelliJ IDEA, Android Studio, Enide Studio etc. But we will use Netbeans for our working purpose.

This is for now as the JAVA Programming tutorial . next we will know how to install required software and setup your PC to learn JAVA .

Thank you for reading this post. If you are also ambitious to write blogs and want to improve your writing skills then create an account to this site and start writing new posts. You can also generate traffique for your site by writing your site’s post and link . See the rules of writing new post to know more.Also if you have any Question about this post or anything then comment below or mail me.

0%

User Rating: 5 ( 1 votes)

Report this post if contains any Adult Content or Plagiarism :

About Md. Sabbir Al Mamon

I am Md.Sabbir Al Mamon. Now I'm studying CSE in BRAC University.

Leave a Reply