Chapter2_1-ProgramStructure

The extension of this file is java salam program

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: name should be used to save the program. The extension of this file is ”.java”. – Salam program should be saved in a file called “MySalamProgram.java”. • Compiling a Java program. – Call the Java compiler javac: – javac MySalamProgram.java – The Java compiler generates a file called ” MySalamProgram.class” (the bytecode). • Running a Java program – Call the Java Virtual Machine java: – java MySalamProgram.class Page 5 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Comments in a Java Program...
View Full Document

This document was uploaded on 03/03/2014.

Ask a homework question - tutors are online