In this article we will see what is Java Programming Language ? Where to use Java, features of Java and basic syntax of Java programming language.

What is Java ?

Java is a well known, most popular, opensource and object oriented high level programming language. Java is simple, robust, Architectural-neutral, Portable, Distributed and Dynamic programming language.



Where to use Java ?

Being platform independent in nature, java has emerged as one of the most popular programming language of today. According to Sun?s official website, java runs on over 3 millions devices and increasing. That means ?Java is simply Everywhere?, here are fewuse cases of Java Programming Language.

1) Desktop Applications such as Browsers, Store Softwares, Media player, antivirus etc.
2) Web Applications such as Google.com, Facebook.com etc.
3) Mobile Applications, Android applications are merely developped in Java programming language.
4) Robotics, Games and Artificial Intelligence.
5) Embedded Systems like TV Remotes, Digital keyboards etc.

Welcome to the Core Java Tutorials series, be here for couple of weeks and follow the series step by step. You guys are going to view one of the best content over internet as if today. Let?s start our journey to be a Core Java expert by following this Java Programming Tutorials series.



History of Java

Java Programming Language was initiated and developed by Games Gosling, the initial concept was to develop a simple programming language for digital devices like set top boxes and TV etc. Later on in 1995, Sun Microsystems realeased Java officially under the name Java 1.0 [J2SE]. The initial name of the developer?s team was Green Team so the language was names as Green Language, which was than converted to ?OAK?. In 1995, Oak was renamed to "Java" because it was already a trademark by Oak Technologies



Feature of Java programming Language

Simple

Java syntax is very simple and straight forward, most of the syntax and constructs are inherited from C and C++ languages. Unlike C, Java does not have pointers hence no overhead of memory management or memory leaks. Java simply contains everything inside a class body, like c and c++ Java has methods, variables, premitive data types(int, short, long ..), arrays and some additional features like collection framework, Wrapper classes etc.


Object-Oriented

Java is an object-oriented programming language, except those premitive data types everything is an object. Variables holds the data and methods are used to play with that data to get required output.


Distributed

Java is meant to be used in distributed environment. We can create distributed applications in java using RMI and EJB like technologies. We can access files and by calling the methods from any machine on the internet.


Interpreted

Java code is first converted to an intermediate byte-code by the compiler, rather than native machine code. This compiled byte-code is than interpreted to some other code that actrually runs on JVM.


Robust

Java is seriously designed for writing highly reliable or robust software applications, it has strongly typed data types, exception handling, automatic memory management with GC and much more to make an run stable and robust applications.


Secure

Because of being used in networked environments java gives and strong assurance of security, jave enforce access restrictions (public, private) strongly and byte codes are verified before running on JVM, which copes with the threat of a hostile compiler.


Architecture-Neutral

Java code is first converted to bytecodes, which is fully platform independent, Once a byte-code is generated on any playform. We can run that byte-code on any other machine having JVM installed on.


Portable

Java code is fully portable in nature, we can write and compile the application code on one machine and that code can be ported to some other machine at any point of time.


Multithreaded

Java provides and easy and convenient way to develop a multithreaded system, Java supports multithreading fully. This helps the developers to use most of the resources.



Tools and Environment required for Java Programming

In order to get started one must have a decent PC configuration and related JDK installed on the machine. There are a number of tools available like Eclipse, Netbeans etc to program in Java. Yet one can start programming in java with just a JDK installed on the machine and a notepad to write code.

1) Linux 7.1 or Windows 95/98/2000/XP operating system.
2) Java JDK 5
3) Microsoft Notepad or any other text editor


Basic Syntax of Java Programming

Java syntax is very simple and straight forward, most of the keywords and constructs are inherited from C and C++ languages. In java program everything goes under a .java file that contains at least one Class and everything goes under that class. Generally a Java programming code file contains a class and few variables and methods defined in that class. Packages are imported at the very beginning of the file, outside the class body. Below is a example of a typical Java Program:


public class HelloWorld {
    public static void main(String []args) {
System.out.println("Hello World");
    }
}
  • By Techburps.com
  • Feb 14, 2015
  • Core Java