You are on page 1of 3

Java Tutorial 1 What is Java Platform?

Java is a programming language as well as a Platform. Machine code is the sequences of binary 1 & 0s that the processor understands.

Java Tutorial 2 Java Virtual Machine


In order to write and execute a software program you need the following

1) Editor To type your program into , a notepad could be used for this 2) Compiler To convert your high language program into native machine code 3) Linker To combine different program files reference in your main program together. 4) Loader To load the files from your secondary storage device like Hard Disk , Flash Drive , CD into RAM for execution. The loading is automatically done when your execute your code. 5) Execution Actual execution of the code which is handled by your OS & processor. With this background, refer the following video & learn the working and architecture of the Java Virtual Machine.

why is Java both interpreted and complied language ?


Programming languages are classifies as Higher Level Language Ex. C++ , Java Middle Level Languages Ex. C Low Level Language Ex Assembly finally the lowest level as the Machine Language.

A compiler is a program which converts a program from one level of language to another. Example conversion of C++ program into machine code. The java compiler is a converts high level java code into bytecode (which is also a type of machine code). A interpreter is a program which converts a program at one level to another programming language at the same level. Example conversion of Java program into C++

In Java , the Just In Time Code generator converts the bytecode into the native machine code which are at the same programming levels. Hence java is both compiled as well as interpreted language.

why is Java slow ?


The two main reasons behind the slowness of Java are Dynamic Linking = Unlike C, linking is done at run-time , every time the program is run in Java. Run-time Interpreter = The conversion of byte code into native machine code is done at run-time in Java which furthers slows down the speed However, the latest version of Java have addressed the performance bottlenecks to a great extent.

Java Tutorial 5 OOPs Concept


This tutorial looks into the Evolution of Programming Languages over the years and describes how OOPs came into being.

Points to Remember:

Unstructured Programming Languages: The most primitive of all programming langauges having sequentially flow of control. Code is repeated through out the program Structured Programming Languages: Has non-sequentially flow of control. Use of functions allows for re-use of code. Object Oriented Programming: Combines Data & Action Together.

Java Tutorial 6 Abstraction


This tutorial looks into the principle of Data ABSTRACTION in Object Oriented Programming

Points to Remember about Java Abstraction:


Abstraction in the process of selecting important data sets for an Object in your software , and leaving out the insignificant ones. Once you have modeled your object using Abstraction , the same set of data could be used in different applications.

Java Tutorial 7 Encapsulation


This tutorial looks into the principle of Encapsulation in Object Oriented Programming.

Points to Remember about Java Encapsulation:


With Encapsulation you can hide (restrict access) to critical data members in your code , which improves security Encapsualtion combines data and actions together (just like a capsule).

Java Tutorial 8 Inheritance & Ploymorphism


This tutorial does a comparative analysis between structured (procedural) programming and Object Oriented Programming. It also explains the basic principles of Inheritance and Polymorphism in Java (OOPs).

Inheritance & Ploymorphism points to note:


Inheritance: In simple words , Inheritance is way to define new a class , using classes which have already been defined. Ploymorphism: Is the ability of methods to behave differently , based on the object calling it.

You might also like