tag:blogger.com,1999:blog-8712770457197348465.post4786704884739733296..comments2024-03-17T23:01:26.872-07:00Comments on Javarevisited: Is Java Compiled or Interpreted Programming language? Answerjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-8712770457197348465.post-77010860650126742542017-03-11T08:39:28.030-08:002017-03-11T08:39:28.030-08:00Java AOT http://openjdk.java.net/jeps/295Java AOT http://openjdk.java.net/jeps/295Anonymoushttps://www.blogger.com/profile/00384667879773371485noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-77041284929719238242014-08-21T18:42:54.637-07:002014-08-21T18:42:54.637-07:00@Sachin Tiwari, The above article is correct.
When...@Sachin Tiwari, The above article is correct.<br />When the JVM executes a byte code, then it uses a program called "Profiler". The role of this profiler is to identify the block of codes that are being executed frequently. To identify such block of codes, the Profiler uses a counter variable. When the value of this counter has reached a threshold value for a piece of code that is beingAmitesh Rainoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-20291175739885569662014-07-08T05:21:31.034-07:002014-07-08T05:21:31.034-07:00I completely agree with Paul Topping and I have on...I completely agree with Paul Topping and I have one query based on following statements:<br /><br />>>> JVM interprets byte codes during execution of Java program.<br />>>> JIT (Just in time compiler) which does another round of compilation to produce native code.<br /><br />Are you suggesting that during execution there is part of byte-code that gets interpreted by JVM while Anonymoushttps://www.blogger.com/profile/06536449989922417074noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-84200203033153316632014-06-27T07:40:32.989-07:002014-06-27T07:40:32.989-07:00IMO there are two ways in which JVM optimizes the ...IMO there are two ways in which JVM optimizes the bytecode ,one is using JIT compiler in which it compiles every method it counters for the first time and then uses that compiled code for execution but this takes up a lot of memory , another technique it uses is called 'adaptive optimization' in which it identifies the code which is executed frequently and it optimizes that bytecode. ThisAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-49597013161750711462014-06-13T11:17:06.448-07:002014-06-13T11:17:06.448-07:00This article is really examining the wrong questio...This article is really examining the wrong question. The only reasonable question is "Is Java an interpreted language?" This is asking whether Java programs are compiled to machine code or to an intermediate form that must be interpreted by a program (called an interpreter) running on the machine.<br /><br />Virtually all programming languages are compiled. Directly interpreting Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-38954024402072014712014-06-11T11:23:04.920-07:002014-06-11T11:23:04.920-07:00Thank you so much for this information and great e...Thank you so much for this information and great explanation<br /><br />I never thought about that question whether Java is interpreted or a compiled language.<br />YourFriendhttp://geekfellows.comnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-84339045197380810862014-06-11T08:13:38.882-07:002014-06-11T08:13:38.882-07:00Also i suppose this JIT compiler is part of JRE. H...Also i suppose this JIT compiler is part of JRE. How can this JIT compile the source file to macine level instructions directly? It is only provided with .class files.Anonymoushttps://www.blogger.com/profile/11978760524350353490noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-39300339067111734062014-06-11T08:10:57.366-07:002014-06-11T08:10:57.366-07:00Hi Javin,
I needed a clarification regarding the J...Hi Javin,<br />I needed a clarification regarding the JIT compiler. The JIT compiler converts the frequently used part of the code's bytecode into native code which does not need to be interpreted by JVM? Is this part cached or somwthing for future executions?What about the remaining part of the code? That is simply converted by the JVM from byte-code to machine level instructions ?<br />I amAnonymoushttps://www.blogger.com/profile/11978760524350353490noreply@blogger.com