|
Chapter 1: Computer Systems
|
bet | 7/10 | Sana | 22.07.2024 | Hajmi | 225,5 Kb. | | #268238 |
Bog'liq slides01Problem Solving - Many software projects fail because the developer didn't really understand the problem to be solved
- We must avoid assumptions and clarify ambiguities
- As problems and their solutions become larger, we must organize our development into manageable pieces
- This technique is fundamental to software development
- We will dissect our solutions into pieces called classes and objects, taking an object-oriented approach
The Java Programming Language - A programming language specifies the words and symbols that we can use to write a program
- A programming language employs a set of rules that dictate how the words and symbols can be put together to form valid program statements
- Java was created by Sun Microsystems, Inc.
- It was introduced in 1995 and has become quite popular
- It is an object-oriented language
Java Program Structure - In the Java programming language:
- These terms will be explored in detail throughout the course
- A Java application always contains a method called main
- See Lincoln.java (page 26)
Java Program Structure - Comments can be added almost anywhere
Java Program Structure - public static void main (String[] args)
- // comments about the class
- // comments about the method
|
| |