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
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?
What is meant by code profiling?
What is aop in java?
What is java persistence api used for?
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?
differences between iterator and spliterator in java se 8?
What is entitymanager in java?
What is native api in java?
Explain working of java virtual machine (jvm)?
How common are security breaches? : java security
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?
Is java installed on windows 10?
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%.
What is a pojo class in java?
How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))