Introduction of JAVA

Rate this post

Hello everyone, in the previous topic we were talking about Functions of Human Resource Management or HRMHR Competencies RequiredSCAMPER Technique, and Challenges in the Role of HR. Today we are going to talk about JAVA, why we should use Java, its history and origin, why it was named Java, its features, and a comparison between C++ and Java.

What is JAVA

What is JAVA
Definition of JAVA

Java is a high-level object, an oriented programming language that is class-based, concurrent, and specially designed to have as few implementation dependencies as possible.

For example- We can write and compile a Java program on UNIX and run it on Microsoft Windows, Mac, or UNIX machines without any modifications to the source code.

Why should we use JAVA

We should use Java because-

  1. Java works on different platforms (Windows. Mac. Linux Raspberry Pi, etc.
  2. It is one of the most popular programming languages in the world.
  3. It is easy to learn and simple to use.
  4. It is open-source and free.
  5. It is secure, fast, and powerful.
  6. It has huge community support (tens of millions of developers.
  7. Java is an object-oriented language that gives a clear structure to programs and allows code to be reused, lowering development costs.
  8. As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa.

History and Origin of JAVA

History and Origin of JAVA
History and Origin of JAVA

James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991 at Sun Microsystems. The small team of sun engineers is called Green Team.

It was originally designed for small, embedded systems in electronic appliances like set-top boxes.  Firstly, it was called “Greentalk” by James Gosling, and the file extension was gt.

After that, it was called Oak and was developed as a part of the Green project. In 1995, Oak was renamed “Java” because it was already a trademark by Oak Technologies.

Why is JAVA programming named JAVA

The OAK team gathered to choose a new name. The suggested words were “dynamic“, “revolutionary“, “Silk“, “jolt“, “DNA“, etc. They wanted something that reflected the essence of the technology: revolutionary, dynamic, lively, cool, unique, and easy to spell, and fun to say.

According to James Gosling, “Java was one of the top choices along with Silk”. Since Java was so unique, most of the team members preferred Java to other names.

Features of JAVA

Following are the features of JAVA-

Features of JAVA
Features of JAVA

Simple

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 another platform.

Secured

Java is best known for its security. With Java, we can develop virus-free systems. Java is secured because it has no explicit pointer and Java Programs run inside a virtual machine sandbox.

Classloader

Classloader in Java is a part of the Java Runtime Environment (JRE) which is used to load Java classes into the Java Virtual Machine dynamically. It adds security by separating the package for the classes of the local file system from those that are imported from network sources.

Bytecode Verifier

It checks the code fragments for illegal code that can violate access rights to objects.

Security Manager

It determines what resources a class can access such as reading and writing to the local disk.

Portable

Java is portable because it facilitates you to carry the Java bytecode to any platform.

Multi-threaded

A thread is like a separate program, executing concurrently. We can write Java programs that deal with many tasks at once by defining multiple threads. The main advantage of multi-threading is that it doesn’t occupy memory for each thread.

It shares a common memory area. If we want to execute multiple programs simultaneously, then we use multithreaded architecture. Threads are important for multi-media, Web applications, etc.

Compiled and Interpreter

JAVA has both Compiled and Interpreter Interpret it. First of all The Program of java is compiled then after compilation it creates Bytes Codes rather than Machine Language.

Robust

It simply means strong. Java is robust because of these reasons-

  1. It uses strong memory management.
  2. There is a lack of pointers that avoids security problems.
  3. There is automatic garbage collection in java which runs on the Java Virtual Machine to get rid of objects which are not being used by a Java application anymore.
  4. There are exception handling and the type checking mechanism in Java. All these points make Java robust.

Comparison between JAVA and C++

Comparison between Java and C++ are as follow-

  • Java is Platform-independent whereas C++ is platform dependent.
  • C++ supports the goto statement whereas Java doesn’t support the goto statement.
  • C++ supports multiple inheritances whereas Java doesn’t support multiple inheritances through class. It can be achieved by interfaces in java.
  • C++ supports operator overloading whereas Java doesn’t support operator overloading.
  • C++ supports pointers. We can write pointer programs in C++ whereas Java supports pointer internally. However, we can’t write the pointer program in java. It means java has restricted pointer support in java.
  • C++ uses compiler only whereas Java uses compiler and interpreter both.
  • C++ supports both calls by value and call by reference whereas Java supports call by value only. There is no call by reference in java.
  • C++ supports structures and unions whereas Java doesn’t support structures and unions.
  • C++ doesn’t have built-in supports for threads whereas Java has built-in thread support. 
  • C++ supports virtual keywords so that we can decide whether or not to override a function whereas Java has no virtual keyword. We can override all non-static methods by default. In other words, non-static methods are virtual by default.
  • C++ doesn’t support >>> operator whereas Java supports unsigned right shift >>>
  • C++ supports structures and unions whereas Java doesn’t support structures and unions.

So, that is all for today guys see you in our next blog. If you like our article please don’t forget to share with others & follow our Instagram page for your daily dose of Motivation.

Thank You,

Regards

Grooming Urban

General FAQ

What is JAVA?

Java is a high-level object, an oriented programming language that is class-based, concurrent, and specially designed to have as few implementation dependencies as possible.

Why should we use JAVA?

We should use Java because-
1. Java works on different platforms (Windows. Mac. Linux Raspberry Pi, etc.
2. It is one of the most popular programming languages in the world.
3. It is easy to learn and simple to use.
4. It is open-source and free.
5. It is secure, fast, and powerful.
6. It has huge community support (tens of millions of developers.
7. Java is an object-oriented language that gives a clear structure to programs and allows code to be reused, lowering development costs.
8. As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa.

What is the history and origin of JAVA?

James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991 at Sun Microsystems. The small team of sun engineers is called Green Team. It was originally designed for small, embedded systems in electronic appliances like set-top boxes.  Firstly, it was called “Greentalk” by James Gosling, and the file extension was gt. After that, it was called Oak and was developed as a part of the Green project. In 1995, Oak was renamed “Java” because it was already a trademark by Oak Technologies.

Why is JAVA programming named JAVA?

The OAK team gathered to choose a new name. The suggested words were “dynamic“, “revolutionary“, “Silk“, “jolt“, “DNA“, etc. They wanted something that reflected the essence of the technology: revolutionary, dynamic, lively, cool, unique, and easy to spell, and fun to say.
According to James Gosling, “Java was one of the top choices along with Silk”. Since Java was so unique, most of the team members preferred Java to other names.

What are the features of JAVA?

Following are the features of JAVA
a. Simple
b. Secured
c. Classloader
d. Bytecode Verifier
e. Security Manager
f. Portable
g. Multi-threaded
h. Compiled and Interpreter
i. Robust

How JAVA makes our life simple?

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 another platform.

How JAVA is secured?

Java is best known for its security. With Java, we can develop virus-free systems. Java is secured because it has no explicit pointer and Java Programs run inside a virtual machine sandbox.

What is Classloader in JAVA?

Classloader in Java is a part of the Java Runtime Environment (JRE) which is used to load Java classes into the Java Virtual Machine dynamically. It adds security by separating the package for the classes of the local file system from those that are imported from network sources.

What is Bytecode Verifier in JAVA?

It checks the code fragments for illegal code that can violate access rights to objects.

What is Security Manager?

It determines what resources a class can access such as reading and writing to the local disk.

How JAVA is Portable?

Java is portable because it facilitates you to carry the Java bytecode to any platform.

What is Multi-threaded?

A thread is like a separate program, executing concurrently. We can write Java programs that deal with many tasks at once by defining multiple threads. The main advantage of multi-threading is that it doesn’t occupy memory for each thread. It shares a common memory area. If we want to execute multiple programs simultaneously, then we use multithreaded architecture. Threads are important for multi-media, Web applications, etc.

What is Compiled and Interpreter in JAVA?

JAVA has both Compiled and Interpreter Interpret it. First of all The Program of java is compiled then after compilation it creates Bytes Codes rather than Machine Language.

What is Robust?

It simply means strong.

How JAVA is Robust?

Java is robust because of these reasons-
1. It uses strong memory management.
2. There is a lack of pointers that avoids security problems.
3. There is automatic garbage collection in java which runs on the Java Virtual Machine to get rid of objects which are not being used by a Java application anymore.
4. There are exception handling and the type checking mechanism in Java. All these points make Java robust.

Sharing Is Caring:
Sneha Kriti

An aspiring MCA student formed an obsession with Computer Science And Coding with HTML, C, C++, Java, and Python now helping others to improve in their studies, grooming and personality traits as well.

1 thought on “Introduction of JAVA”

Leave a Comment