About Me

My photo

I'm an undergraduate of Rajarata University of Sri Lanka reading Applied sciences degree. I'm really interested in Java Programming language and developing some software using Java

Tuesday, June 12, 2012

Simple Java 1


Hi Guys,
I’m going to talk about Java Programming Language briefly from the basic.

If you guys interested on Java you may refer this articles and you may ask questions regarding this article to improve my knowledge on Java.

Java is a high-level Object Oriented programming language originally developed by Sun Microsystems and released in 1995.

Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. 

Because Java is platform independent programming language.

What is platform independence?

Java solves the problem of platform-independence by using byte code. 

The Java compiler does not produce native executable code for a particular machine like a C compiler would. 

Instead it produces a special format called byte code. Java byte code written in hexadecimal, byte by byte, looks like the below:

CA FE BA BE 00 03 00 2D 00 3E 08 00 3B 08 00 01 08 00 20 08

This looks a lot like machine language, but unlike machine language Java byte code is exactly the same on every platform. 

So the same byte code from all OS makes Java as platform independence

You can Compile and Execute all the Java Examples provide on this article by Installing Java on your PC form this link http://java.com/en/download/index.jsp or you can compile and execute online by using this link http://www.compileonline.com/compile_java_online.php




1 comment: