Wednesday, February 23, 2011

Introduction to Java

What is Java:

  • Java is a computer programming language originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform.
  • It enables programmers to write computer instructions using English based commands, instead of having to write in numeric codes. 
  • It’s known as a “high-level” language because it can be read and written easily by humans. 
  • Like English, Java has a set of rules that determine how the instructions are written. 
  • These rules are known as its “syntax”. Once a program has been written, the high-level instructions are translated into numeric codes that computers can understand and execute.
  • The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities.
  • Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture.
  •  Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible.
  •  It is intended to let application developers "write once, run anywhere". Java is currently one of the most popular programming languages in use, and is widely used from application software to web

Running/Opening Eclipse IDE

1. Run eclipse by double clicking on “eclipse.exe”
Figure: Eclipse IDE exc
2. From the "Workspace Launcher", choose a "workspace" (It is the folder where your projects files will be stores) Ex: D:\EclipseWorkSpace\. Click on "OK" button.
Figure: Eclipse Workspace
3. You will see a Eclipse Welcome Screen. Click on "Workbench", which is highlighted in the following figure.
Figure: Select Workbench
4. And then you will see the eclipse workbench screen
Figure: Eclipse Workbench Screen