The input of a Java compiler is a Java source code file and the output is a Java class file.
The input of a Java compiler is Java source code files, typically with the extension ".java". These files contain code written in the Java programming language.
The output of a Java compiler is called bytecode. This is a compiled form of the code written in the Java source code file. The bytecode is stored in a file with the extension ".class". This bytecode can be executed on any platform with a Java Virtual Machine (JVM) installed.
First read the answer fully, then try to explain it in your own words. After that, open a few related questions and compare the concepts. This method helps you remember the topic for a longer time and improves exam preparation.