Java tutorial

Java is an object oriented high level programming language, developed by Sun Microsystems. Java software development was initiated in 1991 and released in 1995. Java is a very popular programming language which is used everywhere to develop many applications.

Key features of Java:

  • Java is an open source software that can be downloaded for free.
  • Java is simple , reliable, secure and portable which can run on Windows, UNIX and many other operating systems. Java application runs similarly on all hardware and operating systems that produces similar outputs.
  • This Java tutorial for beginners is developed for new learners, students and also for the corporate level developers who wants to refresh their Java programming skills.

Start with Java tutorial now

Java programming tutorial topics:

Java basic program:

Three things need to be done to make a Java program work. They are 1. Create 2. Compile 3. Run. A source file with .java extension is created and is compiled by Java compiler which yields a class file with .class extension. This class file is run by the JVM and gives the result. A class file, if it is created in a windows environment can run and gives the same result in a Linux environment and so on. That is why, Java is platform independent….more…

Java – Class and Object:

Objects are anything that exists in the world. A Class is a blueprint to develop objects. If you consider creating objects like chair, table, cupboard, then you need to create a class called Furniture. Similarly, by using Person class, we can create objects like Elaya, Dara, Bharath etc….more…

Java – Comment:

Comments are description given by the programmer within the program. So that if another programmer looks at the program, he can easily understand the program by reading the comments. The characters or words or anything which is given in comments section won’t be considered by the Java compiler for compilation process. These will be ignored by the Java compiler during compilation….more…

Java – Datatypes:

Java is a strongly typed language. Hence every element to be declared, must strictly define its type. There are two kinds of data type. They are, 1. Primitive data type, 2. Reference type….more…

Java – Variables:

Variable is a placeholder (reserved memory block) to store a value of any type. A variable is defined by its name (identifier), type and initialization is optional. Two or more variables of same type can also be declared in a single line separated by commas….more…

Java – Operator:

An operator is used to perform an operation over one or more operands. Operators are classified as Assignment Operator, Arithmetic Operator, Unary Operator, Relational Operator, Logical / Conditional Operator, Bitwise Operator…more…

Java – Arrays:

Array is an object, which stores a group of elements of the same data type. Array is index based and the first element of an array starts with the index 0. The size of array is fixed. Array is Index based and hence accessing a random element and performing any operations over the elements such as sorting, filling etc, can be easily performed….more…

Java – Static keyword:

Generally, a member declared in a class can only be accessed through the object of that class. But, declaring a member as static means that it can be accessed without creating object and it belongs to the class and not to the instance. The keyword ‘static’ can be applied to variable, method, block and nested class….more…

Java – Collections Framework:

Collection is an object representing a group of objects. Collection framework contains a set of classes and interfaces which are used for representing and manipulating collections. Collection interface is the root interface from which the interfaces List, Set,Queue are extended….more…

Java – Arraylist:

ArrayList is a class that implements the List interface. The advantage of ArrayList over the general Array is that ArrayList is dynamic and the size of ArrayList can grow or shrink. ArrayList stores the elements in the insertion order. ArrayList can have duplicate elements. ArrayList is non synchronized….more…

Java – LinkedList:

LinkedList is a class which implements the List interface. It is similar to that of LinkedList except that the ArrayList uses Array data structure implicitly whereas LinkedList uses doubly linked list internally to store the elements. Like ArrayList, LinkedList is also non synchronized….more…

Java – Hashtable:

Hashtable implements the Map interface and extends the Dictionary class. Like HashMap, Hashtable also stores objects as key-value pairs. Hashtable and HashMap are similar except that Hashtable is synchronized and does not allow null values….more…

Java – HashMap:

HashMap is a class implementing the Map interface, which allows us to store collection of object as key value pairs. It does not maintain the insertion order. It is not synchronized. It allows only one null key with null values….more…

Java – Literals:

Literal in Java represents constant value to be stored in variables. Literals are syntactic representations of boolean, character, numeric, or string data….more…

Java – Vector Class:

Vector class implements the List interface. It uses array data structure internally to represent the elements in it. It is similar to that of ArrayList except that the vector class is synchronized. It is thread safe….more…

Java input/output operations:

Each and every program needs data which are to be processed. Such data are represented as inputs and the final resulting data which we get after processing is represented as the output. Usually the user enters the data through the keyboard and view the result on the monitor. The data from the keyboard flows to the memory and from memory to the monitor after processing. This flow of data from one place to another is referred as data stream which is of two types input and output stream….more…

Java String:

The string represents a group of character. In Java, a string is an object of String class in java.lang package. But, in C language, it is an array of characters in which the last character is ‘\0′. Java has character array too, but String is a class. The string is also a data type as a class is also called user defined data type….more…

JAVA TUTORIAL REFERENCE E-BOOKS & RESEARCH PAPERS:

  • JAVA – James Gosling and colleagues reference at Sun Microsystems, 1990.

Prev     Next





Share this C, SQL, Java programming, JSP & XML tutorial website
Facebook Twitter Linkedin

Contact Us | Terms of use | Privacy policy