Java

                                  Java...

          


                   Java is a general-purpose, class-based, object-oriented programming language designed for having lesser implementation dependencies. It is a computing platform for application development. Java is fast, secure, and reliable, therefore. It is widely used for developing Java applications in laptops, data centers, game consoles, scientific supercomputers, cell phones, etc.

What is Java Platform?

Java Platform is a collection of programs that help programmers to develop and run Java programming applications efficiently. It includes an execution engine, a compiler, and a set of libraries in it. It is a set of computer software and specifications. James Gosling developed the Java platform at Sun Microsystems and the Oracle Corporation later acquired it.

Java Definition and Meaning 

Java is a multi-platform, object-oriented, and network-centric language. It is among the most used programming language. Java is also used as a computing platform.

It is considered as one of the fast, secure, and reliable programming languages preferred by most organizations to build their projects.

What is Java used for?

  • It is used for developing Android Apps
  • Helps you to create Enterprise Software
  • Wide range of Mobile java Applications
  • Scientific Computing Applications
  • Use for Big Data Analytics
  • Java Programming of Hardware devices
  • Used for Server-Side Technologies like Apache, J Boss, Glass Fish, etc

History of Java Programming Language

  • The Java language was initially called OAK.
  • Originally, it was developed for handling portable devices and set-top boxes. Oak was a massive failure.
  • In 1995, Sun changed the name to "Java" and modified the language to take advantage of the burgeoning w w w (World Wide Web) development business.
  • Later, in 2009, Oracle Corporation acquired Sun Microsystems and took ownership of three key Sun software assets: Java, MySQL, and Solaris.

Java Features

  • It is one of the easy-to-use programming languages to learn.
  • Write code once and run it on almost any computing platform.
  • Java is platform-independent. Some programs developed in one machine can be executed in another machine.
  • It is designed for building object-oriented applications.
  • It is multithreaded language with automatic memory management.
  • It is created for the distributed environment of the Internet.
  • Facilitates distributed computing as its network centric.

Different Types of Java Platforms

There are four different types of Java programming language platforms:

1. Java Platform, Standard Edition (Java SE): Java SE's API offers the Java programming language's core functionality. It defines all the basis of type and object to high-level classes. It is used for networking, security, database access, graphical user interface (GUI) development, and XML parsing.

2. Java Platform, Enterprise Edition (Java E E): The Java E E platform offers an API and runtime environment for developing and running highly scalable, large-scale, multi-tiered, reliable, and secure network applications.

3. Java Programming Language Platform, Micro Edition (Java ME): The Java ME platform offers an API and a small-footprint virtual machine running Java programming language applications on small devices, like mobile phones.

4. Java F X: Java F X is a platform for developing rich internet applications using a lightweight user-interface API. It user hardware-accelerated graphics and media engines that help Java take advantage of higher-performance clients and a modern look-and-feel and high-level APIs for connecting to networked data sources.

To understand Java programming language, we need to understand some basic concept of how a computer program can run a command and execute the action.

Example Of Java:

  1. import java.awt.*;  
  2. import java.awt.event.*;  
  3. import java.applet.*;  
  4. public class Q2 extends Applet implements ActionListener  
  5. {  
  6.     TextField t1 = new TextField(10);  
  7.     TextField t2 = new TextField(10);  
  8.     TextField t3 = new TextField(10);  
  9.     Label l1 = new Label("FIRST NO=:");  
  10.     Label l2 = new Label("SECOND NO:");  
  11.     Label l3 = new Label("SUM:");  
  12.     Button b = new Button("ADD");  
  13.     public void init()  
  14.     {  
  15.         t1.setForeground(Color = Red);  
  16.         add(l1);  
  17.         add(t1);  
  18.         add(l2);  
  19.         add(t2);  
  20.         add(l3);  
  21.         add(t3);  
  22.         add(b);  
  23.         b.addActionListener(this);  
  24.     }  
  25.     public void actionPerformed(ActionEvent e)  
  26.     {  
  27.         if (e.getSource() == b)  
  28.         {  
  29.             int n1 = Integer.parseInt(t1.getText());  
  30.             int n2 = Integer.parseInt(t2.getText());  
  31.             t3.setText(" " + (n1 + n2));  
  32.         }  
  33.     }  
  34. }  

Comments