JP Morgan Interview Question
Software Engineer / DevelopersIn terms of Java
A compiler reads class and interface definitions, written in the Java programming language, and compiles them into bytecode class files. It can also process annotations in Java source files and classes.
For more details
docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html
I think typically a compiler will translate whatever language (C/C++) into assembly and call an assembler, which will then work with a linker to create the final object file.
- mplode March 02, 2011