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

What are the important features of Java 11 release?

584


What is the replace tool?

553


How do you remove duplicates from an array in java?

534


what is method reference in java 8?

559


What is the difference between numeric and integer?

515






I want to print “hello” even before main is executed. How will you acheive that?

664


How to create an immutable class?

575


What are unchecked exceptions in java?

617


What is a null point?

559


Write a program to print all permutations of string?

682


What is main string [] args?

524


What are the rules for naming an array?

527


What interface is extended by awt event listeners?

598


What is a functional interface?

549


What is skeleton and stub?

594