CS 1100 Lecture Notes - Lecture 2: Type Code, Textpad, Java Bytecode

21 views1 pages
24 Aug 2016
School
Course
Professor

Document Summary

Java code is saved in a file that has the . java file extension. Basically a text file, but . java indicates that the text is actually java code. File name must be the exact same as the class name in the file. For example, a class named welcome must be in a file named welcome. java. Once we have a program in a . java file, we can compile it with the java compiler, javac. Java code gets compiled into a low-level language called bytecode. The java bytecode automatically stored in a . class file. You"ll notice . class files appearing when you compile your . java files. Same name as the . java file (welcome. class for welcome. java) Once the . class file has been created, the java program can then be run. The java virtual machine (jvm) can then run the program by translating the bytecode to machine language. Jvm is essentially an interpreter from bytecode to machine language.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers