- Designed for creating network-centric applications.
- Complementary to and integrated with Java.
- Complementary to and integrated with HTML.
- Open and cross-platform
- Less server interaction
- Immediate feedback to the visitors
- Increased interactivity
- Richer interfaces
• Simplicity and ease of use
• Speed and performance
• Popularity and widespread adoption
• Less overhead
• Less client-side security
• Limited older browser support
• Lack of debugging facilities
Java: The Statically Typed OOP Language
Java is a case-sensitive statically typed programming language. Much like C++ and C#, Java is an object-oriented programming (OOP) language, which means all programs are made of entities representing concepts or physical things known as “objects”. Java programs are found in desktops, servers, mobile devices, and many things that power our world.
Sun Microsystems created the Java language in 1995, and today it is owned by Oracle. As of 2022, over 3 billion devices run Java.
Where is Java Used?
Java is hugely popular due to its platform independence. Furthermore, Java only needs a Java Runtime Environment (JRE) to be installed to work, regardless of whether it is installed on a desktop PC running Windows, Linux, or Unix, a Macintosh computer, or even a smartphone. Here are some common places you’ll see Java:
- Android Applications
- Desktop GUI Applications
- Web-Based Applications
- Financial and Retail Services
- Database Applications
- Games and Entertainment
Common Applications of Java:
• Java produces applets (browser-run programs), which facilitate graphical user interface (GUI) and object interaction by internet users.
• Java applets run in a web browser with Java Virtual Machine (JVM), which translates Java bytecode into native processor instructions and allows indirect OS or platform program execution.
• Java program development requires a Java software development kit (SDK), which typically includes a compiler, interpreter, documentation generator, and other tools used to produce a complete application.
• Development time may be accelerated through the use of integrated development environments (IDE) – such as JBuilder, Netbeans, Eclipse, or JCreator. IDEs are the development of GUIs, which include buttons, text boxes, panels, frames, scrollbars, and other objects via drag-and-drop and point-and-click actions.
Pros of Java:
- Java is simple and relatively easy to use
- Object-oriented and shares concepts with other languages
- Platform independent
- Good for distributed computing
- Secure and robust
Cons of Java:
- Heavy, complicated syntax
- Slower than similar languages like C++ and C#
- Garbage collection is only for memory
- Poor support for generic code
- Has to run in JVM, which is bad for performance
Further reading on Java
Frequently Asked Questions