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

Answer Posted / hemalatha

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 ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

515


What is meant by code profiling?

504


What is aop in java?

496


What is java persistence api used for?

454


Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?

473






differences between iterator and spliterator in java se 8?

557


What is entitymanager in java?

488


What is native api in java?

492


Explain working of java virtual machine (jvm)?

513


How common are security breaches? : java security

460


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. Define how can I implement this logic?

589


Is java installed on windows 10?

481


Write a program for the problem: the array of inetegers indicating the marks of the students is given, U have to calculate the percentile of the students aaccording to this rule: the percentile of a student is the %of no of student having marks less then him. For eg: suppose Student Marks A 12 B 60 C 80 D 71 E 30 F 45 percentile of C = 5/5 *100 = 100 (out of 5 students 5 are having marks less then him) percentile of B = 3/5*100 = 60% (out of 5, 3 have markses less then him) percentile of A = 0/5*100 = 0%.

1697


What is a pojo class in java?

497


How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))

1357