1 / 5

Java Chapter 1

Java Chapter 1. Problem solving: 1. Understanding the problem. 2. Breaking the problem into manageable pieces. 3. Designing a solution. 4. Considering alternatives to the solution and refining the solution. 5. Implementing the solution 6. Testing the solution and fixing any problems.

Download Presentation

Java Chapter 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java Chapter 1 Problem solving: 1. Understanding the problem. 2. Breaking the problem into manageable pieces. 3. Designing a solution. 4. Considering alternatives to the solution and refining the solution. 5. Implementing the solution 6. Testing the solution and fixing any problems.

  2. Memory:Each memory location is eight bits or a byte of information. 1 kilobyte = 1024 bytes. 2^10 1 megabyte = 2^20 bytes. 1 gigabyte = 2^30 bytes.Binary (base 2): 1 or 0 in a bit. Conversion to base 10 1101 = 1x2^3 + 1x2^2 + 0x2^1 + 1x2^0 = 13

  3. Comments: Statements ignored by the computer.// This begins a single line comment. /* This begins a multiline comment.*/ This will end the comment. White space in java is ignored.

  4. Java compiler and interpreter are part of the Java JDK (Java Development Kit) – download from OracleSyntax: rules of a language. These rules must be followed.Semantics: What will happen when the statement is executed.

  5. Errors:compile-time error: syntax errors, incompatible types… runtime error: causes the program to terminate abnormally (crash!). logical error: bad results when executed.

More Related