Download presentation
Presentation is loading. Please wait.
Published byFelicity Hudson Modified over 9 years ago
2
Advanced Java New York University School of Continuing and Professional Studies
3
2 Language of the Future By the year 2005 all software applications will be web based. Most, if not all of those will be written in Java. “Write once run everywhere”
4
3 Course Objectives Train students in writing java programs – including applets. Enhance understanding and knowledge of java APIs and frameworks. Prepare students for sun’s java certification programs. Provide resources and support to help students achieve their career objectives.
5
4 Prerequisites Basic knowledge of computers. Familiarity with any plain text editor (like notepad). Working in command line mode. Java language Fundamentals Ability to write, compile and run a basic Java program and applet
6
5 Useful but Not Required Knowledge of or experience with C++ Basic concepts of Object Oriented Design and Programming. Knowledge of HTML. Knowledge of Database concepts and familiarity with SQL
7
Feedback Students’ Expectations From This Course
8
7 Agenda Every Tuesday/Wednesday evening from 6:20 PM to 9:20 PM - Prefer 6 pm to 9 pm if all students agree, and if the time is not invonvenient for anyone. For every 3 hours of lecture, student is expected to do “hands on” for at least 3 hours.
9
8 Overview Focus on Object Oriented Design and Development using Java. Coverage of latest technologies in Web Applications development Thread s, Applets JDB C,R MI, EJBs Servlets, JSPs, Beans, XML Stream s Files I/IO AWT, Events Lists, Vectors, Sockets Object s and Classe s Java Libraries, OOD, OOP Language Fundamentals
10
9 Session 1 Java certification overview Introduction to programming and java First java program First java applet Language Fundamentals
11
10 Session 2 Streams and File I/O Multithreading
12
11 Session 3 Collections Interfaces and inheritance
13
12 Session 4 Concepts in Socket Programming Java Network Programming Implementing Socket based clients and servers in Java Java Beans
14
13 Session 5 Basic Database concepts Java Database Connectivity
15
14 Session 6 Java Servlets Java Server Pages
16
15 Day 7 RMI Enterprise Java Beans SWING
17
16 Session 8 AWT Event driven programming
18
17 Session 9 Java and XML XML and XSLT
19
18 Session 10 Java Native Interfaces Final Exam
20
Feedback Questions or Comments
21
20 Java Certification Programmer Developer Architect
22
21 Sun Certified Programmer for Java 2 Platform Exam number: 310-025 Exam type: multiple choice/short answer No of questions: approximately 59 Pass score: 61% Test time: 2 hours
23
22 Sun Certified Developer for Java 2 Platform Exam Number: 310-027 Exam Type: Code Example and Instructions Pass Score: 80% Test Time: Limited to life of the program.
24
23 Sun Certified Architect for Java 2 Platform Exam Number: 310-050 Exam Type: multiple choice/short answer No. of Questions: approximately 60 Pass Score: 75% Test Time: 2 hours
25
24 Exam Registration Exam if offered by sylvan Prometric Http://www.sylvanprometric.Com
26
25 Introduction to Java Language Programming Tool Virtual Machine Environment Framework of Classes/Interfaces
27
26 Advantages of Java Simple Portable Object oriented Interpreted Distributed Architecture neutral High performance Robust Multithreaded Secure Dynamic Quick development
28
27 First Java Program Source Code Example – Welcome.java Compiling and Running the first Java program –Create the program source file –Compile it using javac C:>javac Welcome.java –Run it using java C:>java Welcome
29
28 Parts of a Java program Class name The “main” method Variable declarations Assignment statements Program instructions Calls to other methods of other classes
30
29 Java Applets Java code HTML code Flavours of applets Applet example Running applets
31
30 Java Language Fundamentals Comments Data types Variables Reserved words (Java keywords)
32
31 Java Language Fundamentals Assignments Initializers Conversions between numeric types
33
32 Java Language Fundamentals Constants Operators Operator precedence Expression evaluation
34
33 Java Language Fundamentals Strings Concatenation Testing for equality
35
Feedback Questions or Comments
36
35 Control Flow Statement Expression Block Control structure
37
36 Conditional Statements if (condition) statement; else statement;
38
37 Loops while ( condition ) statement; for ( int i = 0; i < 5; i++ ) statement;
39
38 Multiple Selections switch ( variable ) { case :statement; break; case :statement; break; default:statement; }
40
39 Class Methods Program components – or functions Must be inside a class definition
41
40 Arrays Arrays are Objects in Java Creating an array Initializing an array Copying an array
42
41 Arrays Arrays may be passed to methods Arrays may be returned from methods
43
42 Multidimensional Arrays Matrix Array of Arrays
44
43 Objects and Classes A class is a “template” or a “blueprint” Objects are the “cookies” or “buildings”
45
44 Objects and Classes Creating new objects Data encapsulation
46
45 Objects Black-box approach Object’s behavior Object’s state Object’s identity Instances of a class
47
46 An Order Processing System Item Order Shipping address Payment Account
48
47 Methods Order.addItem Order.ship Order.cancel Payment.authorize
49
48 Relationship between Classes Uses Has-A Is-A
50
49 Traditional Programming Global Data function
51
50 Object Oriented Programming Object 1 Object 3 Object 2 method
52
51 Examples Card.java CardDeck.java EmployeeTest.java
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.