0% found this document useful (0 votes)
17 views2 pages

Overview of Java Programming Language

Java is a programming language and platform developed by Sun Microsystems in 1995. It is a high-level, robust, object-oriented and secure language that is widely used to develop desktop, web, enterprise and mobile applications.

Uploaded by

Tiya solanki
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Overview of Java Programming Language

Java is a programming language and platform developed by Sun Microsystems in 1995. It is a high-level, robust, object-oriented and secure language that is widely used to develop desktop, web, enterprise and mobile applications.

Uploaded by

Tiya solanki
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

What is Java?

Java is a programming language and a platform. Java is a high level,


robust, object-oriented and secure programming language.

Java was developed by Sun Microsystems (which is now the subsidiary of


Oracle) in the year 1995. James Gosling is known as the father of Java.
Before Java, its name was Oak. Since Oak was already a registered
company, so James Gosling and his team changed the name from Oak to
Java.

Platform: Any hardware or software environment in which a program runs,


is known as a platform. Since Java has a runtime environment (JRE) and API,
it is called a platform.

Java Example
Let's have a quick look at Java programming example. A detailed
description of Hello Java example is available in next page.

[Link]

1. class Simple{
2. public static void main(String args[]){
3. [Link]("Hello Java");
4. }
5. }

Application
According to Sun, 3 billion devices run Java. There are many devices where
Java is currently used. Some of them are as follows:

1. Desktop Applications such as acrobat reader, media player, antivirus,


etc.
2. Web Applications such as [Link], [Link], etc.
3. Enterprise Applications such as banking applications.
4. Mobile
5. Embedded System
6. Smart Card
7. Robotics
8. Games, etc.

Types of Java Applications


There are mainly 4 types of applications that can be created using Java
programming:

1) Standalone Application

Standalone applications are also known as desktop applications or window-


based applications. These are traditional software that we need to install on
every machine. Examples of standalone application are Media player,
antivirus, etc. AWT and Swing are used in Java for creating standalone
applications.

2) Web Application

An application that runs on the server side and creates a dynamic page is
called a web application.
Currently, Servlet, JSP, Struts, Spring, Hibernate, JSF, etc. technologies are
used for creating web applications in Java.

3) Enterprise Application

An application that is distributed in nature, such as banking applications,


etc. is called an enterprise application. It has advantages like high-level
security, load balancing, and clustering. In Java, EJB is used for creating
enterprise applications.

4) Mobile Application

An application which is created for mobile devices is called a mobile


application. Currently, Android and Java ME are used for creating mobile
applications.

Common questions

Powered by AI

Java's platform-independent nature, achieved through its 'write once, run anywhere' capability, is a key factor in its adoption across various device types. This feature is primarily due to the Java Virtual Machine (JVM), which allows Java applications to be executed on any device without needing modification for different operating systems. This capability is crucial in diverse environments such as desktop applications, embedded systems, smart cards, and robotics, where the underlying hardware and operating systems can vary significantly. The consistency provided by Java enhances developer productivity and broadens the scope of Java's applicability .

Java facilitates development across various application domains through a combination of platform independence, a rich set of APIs, and a consistent development environment. In web applications, Java provides frameworks like JSP and Servlet which are essential for building scalable web services. For mobile development, Java ME and Android leverage Java's portability and API richness to create extensive mobile applications. Embedded systems benefit from Java's low resource requirement and portability, enabling consistent development even on limited hardware. This versatility allows Java to maintain a strong presence in multiple development domains .

Java’s security model is built into its architecture from the start, offering a robust set of features that ensure safe execution of applications, particularly in networked and distributed environments. Features like the bytecode verifier check the code before execution to prevent certain types of vulnerabilities. Java’s secure classloader prevents loading of untrusted code, and the security manager allows applications to run with restricted permissions, hence controlling harmful operations during runtime. These features make Java particularly suited for environments where code is dynamically downloaded over a network, such as in web apps and distributed systems .

The early decisions in Java’s development, such as its naming and structured design, have significantly influenced current technology practices. Initially named Oak, the change to Java avoided legal conflicts and exemplified adaptable branding, which is crucial for technology scalability and legal viability. Structurally, Java's object-oriented design set a precedent for clarity and reuse in code, which has influenced modern software development practices, including naming conventions that prioritize clarity and convention over obscurity. These decisions have contributed to a robust version control system within Java, ensuring backwards compatibility while promoting consistent linguistic practices in technology hubs .

Java is classified as a high-level language because it abstracts the details of the computer hardware from the developers, allowing them to write programs in a more understandable language compared to low-level programming languages. Its object-oriented nature allows for encapsulation, inheritance, and polymorphism, which enable developers to build modular and reusable code. The strong emphasis on security is evident in Java's ability to prevent unauthorized access to applications by means of its secure classloader and bytecode verifier, which ensure that Java programs loaded from the web don't perform malicious operations .

Java's historical development plays a crucial role in its current use and identity. Initially named 'Oak' after an oak tree visible from James Gosling's office, the name was changed to Java because 'Oak' was already registered by another company. This transition highlights Java's foundational philosophy of adaptability and flexibility, which continue to define its evolution. Java's consistent adaptability is reflected in its extensive use across various platforms and devices today, confirming the foresight of its developers in anticipating broad applicability .

Java is distinguished as both a programming language and a platform due to its use of a runtime environment (JRE) and an API that allow Java applications to run. This makes Java a platform on which programs can execute. As a robust language, Java offers features such as automatic memory management, garbage collection, and a rich API. Its object-oriented nature allows for code reuse and modular programming, which are essential for scalability in enterprise and mobile applications. Java’s security features, alongside these characteristics, contribute to its widespread use across desktop, server-side web applications, and mobile platforms .

Java plays a significant role in powering internet-based applications and services due to its robust, platform-independent design. Java technologies such as Servlet and JSP provide the foundation for dynamic web page generation and interaction, which is essential for modern web applications. The Java RMI and Web Services frameworks enable seamless communication and data exchange across distributed systems. Additionally, Java’s strong security features and high-level concurrency abilities ensure that internet-based services are reliable, scalable, and secure, making Java a preferred choice for web and service-oriented applications .

Java is suitable for developing enterprise applications due to its strong scalability, security, and portability. It offers high-level security, essential for sensitive operations like banking, through EJB and other security frameworks. Java's platform independence across servers and operating systems is a substantial advantage, ensuring applications can be deployed widely without modification. The rich ecosystem, including libraries and frameworks, accelerates development and enhances application robustness. Additionally, features like load balancing and clustering in Java ensure reliability and optimum performance of enterprise systems, offering distinct advantages over some other languages lacking such comprehensive support .

Java supports the development of various application types, including standalone applications, web applications, enterprise applications, and mobile applications. Standalone applications are created using AWT and Swing for desktop environments. Web applications use technologies such as Servlet, JSP, Struts, Spring, and JSF to create dynamic server-side pages. Enterprise applications, which require high-level security and availability features like load balancing, are developed using EJB. For mobile applications, Android and Java ME are the primary platforms used for creating feature-rich mobile applications .

You might also like