1. intro

312 views

Published on

Introduction of JSP (Java Server Pages) Lecture # 1
What is java, how its Work !

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
312
On SlideShare
0
From Embeds
0
Number of Embeds
156
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

1. intro

  1. 1. IMRAN DAUDFOUNDATION UNIVERSITYRAWALPINDI CAMPUSImran DaudFURCWeb EngineeringIntroduction
  2. 2. Content to be covered HTTP Architecture HTML Basics Applets JSP Java Servlets Java Scripts
  3. 3. Marks Distribution Project/Assignment/ Quizes 15% Mid Term 30% Attendance 5% Final 50%
  4. 4. Java ABCImran DaudFURC High Level language What are Java Packages? How we use Packages? How do we write Java Program? How to compile Java program? what is .class file? How to run Java program? Java as OOP Java Documentation
  5. 5. High level languageImran DaudFUIMCS Closer to human languages They are easier to read, write, and maintain Platform independent.
  6. 6. Packages?Imran DaudFUIMCS organizing Java classes into namespaces similar tothe modules. Packages stored into JAR files to allow classes todownload faster in group rather then one at a time Package contains: Classes Interfaces
  7. 7. How to use Java Packages?Imran DaudFUIMCS import java.awt.event.*; Keyword: import Hierarchy of classes. Each packages contain different set of classes Each class can use protected data member and datafunctions directly of other classes within samepackage.
  8. 8. How to Write java programImran DaudFUIMCS Case Sensitive. Class based coding. Has ‘main’ function. class name and file name should be same. Objects instantiated in main using new keyword. Save file with extension ‘.java’ Example:
  9. 9. Compiling java code in Dos modeImran DaudFUIMCS ‘Bin’ folder Path to be defined. Use ‘javac’ command to complie. javac File_name.java After compiling ‘File_name.class’ is generated.
  10. 10. What is .class fileImran DaudFUIMCS Bytecode If a file contains more then one classes then aseparate .class file will be generated for each class. ‘.class’ file can be run with JVM.
  11. 11. How to run java program (Dos shell)Imran DaudFUIMCS Use ‘java’ command to run .class file. Example: Java File_name
  12. 12. Java as OOPImran DaudFUIMCS Java is based on OOP concepts. Main feature of OOP is inheritance. We inherit classes using ‘extend’ keyword.Public Class My_prog extends InheritedFile{} we make objects to access data members or datafunctions.
  13. 13. Class VS Interface ‘extend’ Class whereas ‘implement’ interface Class can have instance but interface don’t Re-declare ALL functions in interface.
  14. 14. Java DocumentationImran DaudFUIMCS How to use API (Demo)
  15. 15. ReferencesImran DaudFUIMCS en.Wikipedia.org

×