Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.

Similar presentations


Presentation on theme: "Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme."— Presentation transcript:

1 Copyright © Mohamed Nuzrath Java Programming :: 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 TM

2 Copyright © Mohamed Nuzrath Syllabus 1.Introduction to Java 2.Language Fundamentals 3.Object Oriented Programming Concepts 4.Arrays 5.String and String Buffer Classes 6.Exception Handling 7.Applets And Graphics 8.Threads

3 Copyright © Mohamed Nuzrath Syllabus… 9.Animation and Sounds 10.Graphical User Interface Designing [swing] 11.Files and Input/Output streams 12.System Attributes 13.Java Database Programming 14.Printing

4 Copyright © Mohamed Nuzrath CH1 – Introduction to Java The Java Technology consist of 3 entities; 1.The Java Language 2.A Runtime Environment 3.A Set of tools

5 Copyright © Mohamed Nuzrath Features of Java Language Simple Object Oriented Distributed Interpreted Robust Secure Architecture Neutral Portable High Performance Multithreaded Dynamic

6 Copyright © Mohamed Nuzrath Features of Java Language The Java Technology consist of 3 entities; The Java Language A Runtime Environment A Set of tools

7 Copyright © Mohamed Nuzrath The Runtime Environment Java Virtual Machine Source CodeJava Compiler Byte Code Instructions Java Interpreter Machine Code Java Programming Environment Execution of Java Program

8 Copyright © Mohamed Nuzrath Platform Dependant System 11111 00000 11111 10101 00000 00011 Source Code Compiler Intel Compiler Sun Windows + Intel AMD + LINUX Machine Code / Binary Code / Native Code In a normal compiled program

9 Copyright © Mohamed Nuzrath Platform Independent System Source Code Compiler Intel Windows + Intel Machine Code / Binary Code / Native Code In a Java Program 11111 00000 LINUX + AMD 01010 10101 01010 Future OS with Future Processor 11111.class / Java byte code/ Intermediate code Appropriate JVM

10 Copyright © Mohamed Nuzrath Java is Multithreaded Thread A Thread B Thread C A Java Program Memory

11 Copyright © Mohamed Nuzrath Features of Java Language The Java Technology consist of 3 entities; The Java Language A Runtime Environment A Set of tools

12 Copyright © Mohamed Nuzrath 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.

13 Copyright © Mohamed Nuzrath Creating and Running Java Programs Operating Instructions::.

14 Copyright © Mohamed Nuzrath Creating the Source File Use Windows Notepad or any other pure text editor

15 Copyright © Mohamed Nuzrath Loading Notepad Start>>Programs>>Accessories>>Notepad Or Start>> Run>> Type Notepad Press Enter

16 Copyright © Mohamed Nuzrath Enter the Source Code Instructions 4x:

17 Copyright © Mohamed Nuzrath 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

18 Copyright © Mohamed Nuzrath Like this.

19 Copyright © Mohamed Nuzrath 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.

20 Copyright © Mohamed Nuzrath Start the Command Prompt Start>>Programs>>Accessories>>Command Prompt

21 Copyright © Mohamed Nuzrath Or Start it from the Run Start >> Run >> Type CMD >> Press enter

22 Copyright © Mohamed Nuzrath 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)

23 Copyright © Mohamed Nuzrath Compile the Program Fix errors if any

24 Copyright © Mohamed Nuzrath END OF CHAPTER 01 IF YOU FAIL TO PLAN YOU PLAN TO FAIL

25 Copyright © Mohamed Nuzrath Run the Java Program


Download ppt "Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme."

Similar presentations


Ads by Google