Professional Documents
Culture Documents
Both. Yes, Java is both compiled as well as interpreted language. This is what
makes it platform-independent. Java Code >> Compile (javac) >> Bytecode (portable
code) >> Interpret (platform specific) >> Machine Code >> Execute.
Normal:
In General,
• Compile: Source code >> Optimized Object Code (can be machine code or other
optimized code)
• Interpret: Source Code >> Machine Code (to be executed)