Core Java Interview Questions
Core Java Interview Questions #1 what is JVM/java byte codes? Ans :- JVM stands for Java virtual machine. It’s an virtual computer which run the compiled java program. All java programs are compiled into bytecodes. Java can only understand and execute java bytes codes Java compiler takes .java files and compiles it to bytecode file with .class file extension. Source code (.java file) -> java compiler -> compiled java programs (.class file) -> JVM-> hardware platform and OS. #2 What is just in time compilation? Ans :- machine understand only binary language. There two ways to generate the binary files. #1 compiler - Compiler generated the binary files directly. #2 interpreters –interpreter generates class file which is then run by VJM.it means binary files are generated run time. JVM does not compile full class fine in one shot. Compilation is done on function basic/file basic. Advantage is