250 likes | 266 Views
Java Programming ::. TM. Syllabus & Chapters ::. Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme coordinator IT Lecturer | Web Developer | Software Engineer IDM Affiliated University College Kandy Campus
E N D
Java Programming :: TM Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme coordinator IT Lecturer | Web Developer | Software Engineer IDM Affiliated University College Kandy Campus #725, Peradeniya Rd, Kandy TP +94 812224621 nuzree@gmail.com
Syllabus • Introduction to Java • Language Fundamentals • Object Oriented Programming Concepts • Arrays • String and String Buffer Classes • Exception Handling • Applets And Graphics • Threads
Syllabus… • Animation and Sounds • Graphical User Interface Designing [swing] • Files and Input/Output streams • System Attributes • Java Database Programming • Printing
CH1 – Introduction to Java The Java Technology consist of 3 entities; • The Java Language • A Runtime Environment • A Set of tools
Simple Object Oriented Distributed Interpreted Robust Secure Architecture Neutral Portable High Performance Multithreaded Dynamic Features of Java Language
Features of Java Language • The Java Technology consist of 3 entities; • The Java Language • A Runtime Environment • A Set of tools
The Runtime Environment • Java Virtual Machine Source Code Java Compiler Byte Code Instructions Java Interpreter Machine Code Java Programming Environment Execution of Java Program
Platform Dependant System In a normal compiled program Windows + Intel 11111 00000 11111 Machine Code / Binary Code / Native Code Compiler Intel AMD + LINUX Source Code 10101 00000 00011 Compiler Sun
Platform Independent System In a Java Program Windows + Intel 11111 00000 00000 Appropriate JVM LINUX + AMD 01010 10101 01010 Appropriate JVM Machine Code / Binary Code / Native Code Source Code Compiler Intel .class / Java byte code/ Intermediate code Future OS with Future Processor 11111 11111 11111 Appropriate JVM
Java is Multithreaded Memory A Java Program Thread A Thread B Thread C
Features of Java Language • The Java Technology consist of 3 entities; • The Java Language • A Runtime Environment • A Set of tools
Set of Tools Tools that are provided allow developers to create java programs. Mainly they include the java compiler interpreter and other tools needed to develop, test and debug java programs.
Creating and Running Java Programs Operating Instructions::.
Creating the Source File • Use Windows Notepad or any other pure text editor
Loading Notepad Start>>Programs>>Accessories>>Notepad Or Start>> Run>> Type Notepad Press Enter
Saving the Source Code • Go to the required path to save • Enter the file name same as the main class name with the extension .java • Surround both the file name and extension within double quotes. 4x: “HelloWorld.java” Hit the [SAVE] button
Compiling the Source Code • Java Provides a set of command line tool which can be used in building applications • In order to compile a java source file, the path should be set, • Once the path is correctly set the system can locate the necessary files or command line tools from the specified path.
Start the Command Prompt Start>>Programs>>Accessories>>Command Prompt
Or Start it from the Run Start >> Run >> Type CMD >> Press enter
Navigate to the Folder • By using MS-DOS command you can go to the folder where you have saved the Java Source Files • MS-DOS ( Discussion)
Compile the Program Fix errors if any
END OF CHAPTER 01 IF YOU FAIL TO PLAN YOU PLAN TO FAIL