Why Java is a platform independent language?Explain byte code
and JVM

Answer Posted / sandeep negi

byte code is an intermediate code for java in the form of hexadecimal ,which is compiled code of java compiler and same
for all o\s.after compilation all machine or o\s have own java virtual machine translate the byte code into machine code. so we can say that java is a platform independent language.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ehcache in java?

677


What is a flatmap?

651


What is java ioc?

650


What are java’s rules regarding tabs, spaces and newline characters?

1197


What is lambda expressions action func and predicate?

600






Can optional be null?

695


What is jpa implementation?

634


What is messaging queue in java?

668


What is the content reside in Use case Document?

1781


Can I use openjdk for commercial?

672


What is a pojo class in java?

673


What is cmp in java?

651


Explain the common use of ejb?

823


there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

2788


What is a yaml file in java?

642