Meraki : Java : Introduction

Welcome to the Java Introduction, mate!


What is Java?

  • Java is an "OOPL" (object-oriented programming language) released by Sun Microsystems in 1995.
  • Java was originally developed by James Gosling at Sun Microsystems (which has since merge into Oracle Corporation).
  • Java programs are platform independent, which means they can run on any system that supports the java interpreter and has the hardware (like a display or input devices) necessary for the program being run.
  • Some Java code can be called “write once, run anywhere”, meaning it can be run on many types of hardware without being reconfigured or recompiled..
  • Java code is executed by the Java Virtual Machine on the host/client machine.

Types of Java Applications

  1. Web Application Java is commonly used to create server-side web applications using the many technologies it supports, like: servlet, jsp, struts, jsf etc.
  2. Standalone Application Java is also commonly used for desktop or clientside applications. AWT and Swing are used to implement graphical user interfaces in Java.
  3. Enterprise ApplicationJava is also used to create some large, distributed systems used by banks and other large enterprises.
  4. Mobile Application Java is frequently used for mobile applications. Java provides the basis for the popular Android operating system.

Popular Java Editors

To write your java programs you will need a text editor. There are even more sophisticated IDE available in the market. But for now, you can consider one of the following:

  • Eclipse – , which we personally recommend, is a java IDE developed by the eclipse open source community and can be downloaded from http://www.eclipse.org/
  • Notepad – On Windows machine you can use any simple text editor like Notepad or TextPad.
  • Netbeans – is another Java IDE that is open source and free which can be downloaded from http://www.netbeans.org/index.html

Example of a basic Java program


public class Hello
{
public static void main(String[] args)
{
System.out.println("Hello Java");
}
}



Syntax

Next, we will look at Syntax, and how it is required for functioning programs.