Wednesday, 15 June 2011

Byte code and Source code in Java? -


I'm really confused which of the following has some help in answering the source code and byte code in Java code do?

  • Student.class
  • Students
  • Students.Java
  • Student.exe

    Student. Java is a Java source code file, a text file

    Student .class is a compiled bytecode, a binary file

    Student.exe is a Windows executable (also has binary, but)

    Student is not a file at all, just an abstract concept (a Java class, whose full name will be something like com.vicheanak.myapp.Student ).

    You can also face Student.jar which is a collection of all class files and other resources that make applications or libraries.

  • No comments:

    Post a Comment