Download presentation
Presentation is loading. Please wait.
Published byMargaretMargaret Owens Modified over 9 years ago
3
Parts of a Computer
4
Why Use Binary Numbers?
5
Source Code - Assembly - Machine Code
6
Why Java? Safety The safety features of the Java language make it possible to run Java programs in a browser without fear that they might attack your computer. As an added benefit, these features also help you to learn the language faster. When you make an error that results in unsafe behavior, you receive an accurate error report. Portability The other benefit of Java is portability. The same Java program will run, without change, on Windows, UNIX, Linux, or Macintosh. In order to achieve portability, the Java compiler does not translate Java programs directly into CPU instructions. Instead, compiled Java programs contain instructions for the Java virtual machine, a program that simulates a real CPU. Portability is another benefit for the beginning student. You do not have to learn how to write programs for different platforms.
7
Java Versions
8
every Java program has a class the program must have a main method A Java Program
9
programming languages use reserve words that have special meaning and cannot be used for other purposes the programmer names the program and decides what it should do this line tells the computer where to display the message later, we will learn some other options for displaying messages
10
Another Java Program line numbers are used in book to help with descriptions of programs book uses a different style to define program blocks
11
Another Java Program
12
Computers can "Do the Math"
13
Steps in the Development of a Java Program
14
JVM 1 JVM 2 JVM 3 JVM n : One Bytecode, Many JVM's Java Source Code Text Editor File Access Program I/O - Compiler Messages jGrasp Integrated Development Environment (IDE) There is a different configuration of the Java Virtual Machine (JVM) for every platform (type of computer) and Operating System (OS) this computer that computer mobile device the other computer
15
Installing NetBeans The NetBeans Integrated Development Environment (IDE) is available at the NetBeans Web site: https://netbeans.org/downloads/7.1/ If the Java Development Kit (JDK) is not already installed on your computer, you will need to download and install it as well. The JDK is available on the Oracle Web site: The Standard Edition (SE) is preferred for both NetBeans and the JDK. http://www.oracle.com/technetwork/java/javase/downloads/
16
https://netbeans.org/downloads/7.1/
17
http://www.oracle.com/technetwork/java/javase/downloads/
18
don't forget to accept the license agreement For Windows OS... 32-bit computers use x86 version 64-bit computers use x64 version
19
NetBeans IDE 7.4
20
New Project
21
Project Name
22
Writing the Source Code
23
Installing jGrasp http://www.jgrasp.org/ http://www.oracle.com/technetwork/java/javase/downloads/index.html
24
Starting jGrasp
25
Quick Start Open - Compile - Run
26
A New Editor Window in jGrasp
27
Creating and Saving a Java Program
28
The Encode / Debug Cycle
29
Summary A Textbook for Two Courses Parts of a Computer Why Computers use binary numbers. Source Code, Assembly, and Machine Code Structure of a Java Program Java Program Development Bytecode and the JVM Installing and Using jGrasp Encoding and Debugging
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.