how java is os independent language ?

Answer Posted / vivek ghavle

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 this:

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.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a sessionfactory? Is it a thread-safe object?

694


What value does read() return when it has reached the end of a file?

560


what are memory considerations of jsp compares to other web components?

6026


How task's priority is used in scheduling?

1794


Should synchronization primitives be used on bean methods?

560






Which component handles cluster communication in jboss?

638


Why is string immutable in java?

590


Is the ternary operator written x : y ? Z or x ? Y : z ?

645


What is the difference between the string and stringbuffer classes?

556


what are the activation groupworks?

1687


Why use POJO when I can use hashmap

2058


What modifiers may be used with an inner class that is a member of an outer class?

583


Define the remote object implementation?

2009


Is there a guarantee of uniqueness for entity beans?

577


How is a java object message delivered to a non-java client?

583