Introduction to Java
Lecture-3
Instructor
Huma Nisar
, Lecture Outline
• Programming Language
• A Simple Java Program
• Creating, Compiling, and Running Programs
• Anatomy of a Java Program
• Programming Style and Documentation
• Programming Errors
, Programming Language
• Computer Program
– Sequence of statements intended to accomplish a task
• Programming
– A process of planning and creating a program
• Programming language
– A set of rules, symbols, and special words used to construct programs
• Syntax rules
– Which statements (instructions) are legal, or accepted by the
programming language, and which are not
• Semantic rules
– Determine the meaning of the instructions