When you compile a java program, a new file which contains your bytecode is createe with a/an file extension. The original source code has a/an file extension.
Added by Sofia B.
Step 1
This file is saved with a specific file extension. Show more…
Show all steps
Your feedback will help us improve your experience
John Bell and 78 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Suppose you define a java class as follows: public class test { } in order to compile this program, the source code should be stored in a file named ________.
John B.
Java is associated with the programming language.
Madhur L.
Compiling and Executing a Java Program public class Programming { public static void main(String[] args) { System.out.println("I am learning how to program."); } } Summary In this lab, you compile and execute a prewritten Java program. Instructions 1. Execute the program. There should be no syntax errors. 2. Modify the program so it displays "I'm learning how to program in Java.". Execute the program. 3. Modify the Programming class so it prints two lines of output. Change the class name to Awesome. In Java, the file name must match the class name, so change the file name to Awesome.java. Add a second output statement that displays "That's awesome!". Execute the program.
Supreeta N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD