1 / 25

Java Programming ::

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

caplan
Download Presentation

Java Programming ::

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. Syllabus • Introduction to Java • Language Fundamentals • Object Oriented Programming Concepts • Arrays • String and String Buffer Classes • Exception Handling • Applets And Graphics • Threads

  3. Syllabus… • Animation and Sounds • Graphical User Interface Designing [swing] • Files and Input/Output streams • System Attributes • Java Database Programming • Printing

  4. CH1 – Introduction to Java The Java Technology consist of 3 entities; • The Java Language • A Runtime Environment • A Set of tools

  5. Simple Object Oriented Distributed Interpreted Robust Secure Architecture Neutral Portable High Performance Multithreaded Dynamic Features of Java Language

  6. Features of Java Language • The Java Technology consist of 3 entities; • The Java Language • A Runtime Environment • A Set of tools

  7. The Runtime Environment • Java Virtual Machine Source Code Java Compiler Byte Code Instructions Java Interpreter Machine Code Java Programming Environment Execution of Java Program

  8. 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

  9. 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

  10. Java is Multithreaded Memory A Java Program Thread A Thread B Thread C

  11. Features of Java Language • The Java Technology consist of 3 entities; • The Java Language • A Runtime Environment • A Set of tools

  12. 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. Creating and Running Java Programs Operating Instructions::.

  14. Creating the Source File • Use Windows Notepad or any other pure text editor

  15. Loading Notepad Start>>Programs>>Accessories>>Notepad Or Start>> Run>> Type Notepad Press Enter

  16. Enter theSource Code Instructions 4x:

  17. 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. Like this.

  19. 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. Start the Command Prompt Start>>Programs>>Accessories>>Command Prompt

  21. Or Start it from the Run Start >> Run >> Type CMD >> Press enter

  22. 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. Compile the Program Fix errors if any

  24. END OF CHAPTER 01 IF YOU FAIL TO PLAN YOU PLAN TO FAIL

  25. Run the Java Program

More Related