lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 second year prepared by: rasha m....
TRANSCRIPT
Programming with Javalecture#1
Second Year
Prepared by: Rasha M. Aleidan
Outline
- Why Programming? - Why Study Programming? - Programming languages.- Our selection .- Why java?- Software.- First Program.- setting path Variable.
Why Programming?
Need to tell computer.. what to do? By which? ==> Program: a set of instructions that directs the computer's behavior.
Why Study Programming?
Years ago it was widely believed that entrance into the computer age would require practically everyone to learn how to program.Career as a computer scientist, ranges from engineering subjects, such as processor design, to mathematical subjects, such as performance analysis.it is a creative and enjoyable problem solving activity.
Programming Languages
1. Machine languages لغة اآللة
understood by its CPU or microprocessorbased on the binary code 0's and 1's.x = a+b = 1101101010011010 Dis.:
boring.a lot of errors.
Programming Languages
2. Assembly languages: لغة التجمیع
x = a+b = add x, a, b
Dis.: Slower.Example: Assembly
Programming Languages
3. High level languages: لغات عالیة المستوى - لغات الجیل الثالث
x = a+b
Dis: Machine dependent .Example: C++, C, VISUAL BASIC,
Which programming language will be used?
http://box424.com/wp-content/uploads/2010/09/Web_Programming_Language.jpg
Our selection
Why Java Language?
Platform independent:
java byte code
Robust: many errors detected before a program is run. Object oriented.
Java Virtual machine
Software1. Java virtual Machine:
Download: http://www.oracle.com/technetwork/java/javase/downloads/jdk6-jsp-136632.html
2.GRASPDownload:
http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html
First Program
public class welcome { public static void main (string[] args) { System.out.printIn("welcome to java"); }}
Process Of Java Programming
Process Of Java Programming
1- write or create the code using notepad as an example.