Creating Java Programs
Creating Java Programs
Creating Java Programs
Topics covered
• Programming Terminology
• Comparing Procedural and Object-Oriented
Programming Concept
• Features of Java Programming Language
• Programming Methodologies
Topics covered
Structured Programming:
• Dividing a problem into smaller subproblems
• Each subproblem is then analyzed, and a solution for
the subproblem is obtained.
• The solutions to all the subproblems are then
combined to solve the overall problem.
• The structured design approach is also known as top-
down design, bottom-up design, stepwise refinement,
and modular programming.
Object-Oriented Programming
• Object-oriented design (OOD) is a widely used
programming methodology.
• In OOD, the first step in the problem-solving process is to
identify the components called objects, which form the
basis of the solution, and to determine how these objects
interact with one another.
Compiling Java Class and
Correcting Syntax Error
Running Java Application and
Correcting Logic Errors
Adding Comments to a Java
Class
Single-line comments:
• begin with // and can be placed anywhere in the line.
Everythingencountered in that line after // is ignored by
the compiler.
Multiple-line comments:
• are enclosed between /* and */. The compiler ignores
anything that appears between /* and */.