What is JAVA? Why it is platform independent?

Answer Posted / patel_irfan

Java is a programming language originally developed by
James Gosling at Sun Microsystems and released in 1995 as a
core component of Sun Microsystems' Java platform. 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. This programming
language is a general purpose concurrent class based object
oriented programming language, specifically designed to
have as few implementation dependencies as possible. It is
intended to let application developers "write once, run
anywhere".
When Java Code is compiled a byte code is generated which
is independent of the system. This byte code is fed to the
JVM (Java Virtual Machine) which is resided in the system.
Since every system has its own JVM, it doesn't matter where
you compile the source code. The byte code generated by the
compiler can be interpreted by any JVM of any machine.
Hence it is called Platform independent Language.

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to re-reach and use an object once it has been garbage collected. How it's possible?

539


Explain different types of thread priorities ?

626


What are the advantages of user defined functions?

558


Can a constructor have different name than a class name in java?

592


Can we have two main methods in a java class?

538






Is finalize() similar to a destructor?

549


What is numeric data type?

527


what is object slice?

1577


How many bytes is a string java?

531


Can we serialize arraylist in java?

540


Can a class extend 2 classes in java?

556


what is the difference between preemptive scheduling and time slicing? : Java thread

534


What occurs when an object is constructed?

571


What is a instance variable in java?

551


What happens when main () method is declared as private?

648