SlideShare a Scribd company logo
1 of 15
IMRAN DAUD
FOUNDATION UNIVERSITY
RAWALPINDI CAMPUS
Imran Daud
FURC
Web Engineering
Introduction
Content to be covered
 HTTP Architecture
 HTML Basics
 Applets
 JSP
 Java Servlets
 Java Scripts
Marks Distribution
 Project/Assignment/ Quizes 15%
 Mid Term 30%
 Attendance 5%
 Final 50%
Java ABC
Imran Daud
FURC
 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
High level language
Imran Daud
FUIMCS
 Closer to human languages
 They are easier to read, write, and maintain
 Platform independent.
Packages?
Imran Daud
FUIMCS
 organizing Java classes into namespaces similar to
the modules.
 Packages stored into JAR files to allow classes to
download faster in group rather then one at a time
 Package contains:
 Classes
 Interfaces
How to use Java Packages?
Imran Daud
FUIMCS
 import java.awt.event.*;
 Keyword: import
 Hierarchy of classes.
 Each packages contain different set of classes
 Each class can use protected data member and data
functions directly of other classes within same
package.
How to Write java program
Imran Daud
FUIMCS
 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:
Compiling java code in Dos mode
Imran Daud
FUIMCS
 ‘Bin’ folder Path to be defined.
 Use ‘javac’ command to complie.
 javac File_name.java
 After compiling ‘File_name.class’ is generated.
What is .class file
Imran Daud
FUIMCS
 Bytecode
 If a file contains more then one classes then a
separate .class file will be generated for each class.
 ‘.class’ file can be run with JVM.
How to run java program (Dos shell)
Imran Daud
FUIMCS
 Use ‘java’ command to run .class file.
 Example:
 Java File_name
Java as OOP
Imran Daud
FUIMCS
 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 data
functions.
Class VS Interface
 ‘extend’ Class whereas ‘implement’ interface
 Class can have instance but interface don’t
 Re-declare ALL functions in interface.
Java Documentation
Imran Daud
FUIMCS
 How to use API (Demo)
References
Imran Daud
FUIMCS
 en.Wikipedia.org

More Related Content

Viewers also liked (11)

6. hibernate
6. hibernate6. hibernate
6. hibernate
 
3. applets
3. applets3. applets
3. applets
 
2. http, html
2. http, html2. http, html
2. http, html
 
4. jsp
4. jsp4. jsp
4. jsp
 
La autoestima iefap 2013
La autoestima iefap 2013La autoestima iefap 2013
La autoestima iefap 2013
 
Introducing the WSO2 Governance Registry 4 1.5
Introducing the WSO2 Governance Registry 4 1.5 Introducing the WSO2 Governance Registry 4 1.5
Introducing the WSO2 Governance Registry 4 1.5
 
Sistema opertaivo
Sistema opertaivoSistema opertaivo
Sistema opertaivo
 
Separating klout from clout
Separating klout from cloutSeparating klout from clout
Separating klout from clout
 
5. servlets
5. servlets5. servlets
5. servlets
 
Unidad 13 union europea
Unidad 13 union europeaUnidad 13 union europea
Unidad 13 union europea
 
Eulen Seguridad-Ciberseguridad Industrial - Centro de Control de Seguridad In...
Eulen Seguridad-Ciberseguridad Industrial - Centro de Control de Seguridad In...Eulen Seguridad-Ciberseguridad Industrial - Centro de Control de Seguridad In...
Eulen Seguridad-Ciberseguridad Industrial - Centro de Control de Seguridad In...
 

Similar to 1. intro

Chapter1pp
Chapter1ppChapter1pp
Chapter1pp
J. C.
 

Similar to 1. intro (20)

Java basics
Java basicsJava basics
Java basics
 
Java basic-syntax
Java basic-syntaxJava basic-syntax
Java basic-syntax
 
Introduction To Java.
Introduction To Java.Introduction To Java.
Introduction To Java.
 
Java Basic Syntax
Java Basic SyntaxJava Basic Syntax
Java Basic Syntax
 
Classes and Objects
Classes and ObjectsClasses and Objects
Classes and Objects
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
 
Chapter1pp
Chapter1ppChapter1pp
Chapter1pp
 
Java training in delhi
Java training in delhiJava training in delhi
Java training in delhi
 
Java basic syntax
Java basic syntaxJava basic syntax
Java basic syntax
 
Java basic-syntax
Java basic-syntaxJava basic-syntax
Java basic-syntax
 
01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 
OOPM Introduction.ppt
OOPM Introduction.pptOOPM Introduction.ppt
OOPM Introduction.ppt
 
Core java
Core javaCore java
Core java
 
PROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptxPROGRAMMING IN JAVA unit 1.pptx
PROGRAMMING IN JAVA unit 1.pptx
 
Java packages
Java packagesJava packages
Java packages
 
Java Intro
Java IntroJava Intro
Java Intro
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
PACKAGES, MULTITHREADED PROGRAMMING & MANAGING ERRORS AND EXCEPTIONS in java
PACKAGES, MULTITHREADED PROGRAMMING & MANAGING ERRORS AND EXCEPTIONS in javaPACKAGES, MULTITHREADED PROGRAMMING & MANAGING ERRORS AND EXCEPTIONS in java
PACKAGES, MULTITHREADED PROGRAMMING & MANAGING ERRORS AND EXCEPTIONS in java
 
Java1
Java1Java1
Java1
 

More from AnusAhmad

More from AnusAhmad (16)

[Www.pkbulk.blogspot.com]file and indexing
[Www.pkbulk.blogspot.com]file and indexing[Www.pkbulk.blogspot.com]file and indexing
[Www.pkbulk.blogspot.com]file and indexing
 
[Www.pkbulk.blogspot.com]dbms12
[Www.pkbulk.blogspot.com]dbms12[Www.pkbulk.blogspot.com]dbms12
[Www.pkbulk.blogspot.com]dbms12
 
[Www.pkbulk.blogspot.com]dbms11
[Www.pkbulk.blogspot.com]dbms11[Www.pkbulk.blogspot.com]dbms11
[Www.pkbulk.blogspot.com]dbms11
 
[Www.pkbulk.blogspot.com]dbms10
[Www.pkbulk.blogspot.com]dbms10[Www.pkbulk.blogspot.com]dbms10
[Www.pkbulk.blogspot.com]dbms10
 
[Www.pkbulk.blogspot.com]dbms09
[Www.pkbulk.blogspot.com]dbms09[Www.pkbulk.blogspot.com]dbms09
[Www.pkbulk.blogspot.com]dbms09
 
[Www.pkbulk.blogspot.com]dbms07
[Www.pkbulk.blogspot.com]dbms07[Www.pkbulk.blogspot.com]dbms07
[Www.pkbulk.blogspot.com]dbms07
 
[Www.pkbulk.blogspot.com]dbms06
[Www.pkbulk.blogspot.com]dbms06[Www.pkbulk.blogspot.com]dbms06
[Www.pkbulk.blogspot.com]dbms06
 
[Www.pkbulk.blogspot.com]dbms05
[Www.pkbulk.blogspot.com]dbms05[Www.pkbulk.blogspot.com]dbms05
[Www.pkbulk.blogspot.com]dbms05
 
[Www.pkbulk.blogspot.com]dbms04
[Www.pkbulk.blogspot.com]dbms04[Www.pkbulk.blogspot.com]dbms04
[Www.pkbulk.blogspot.com]dbms04
 
[Www.pkbulk.blogspot.com]dbms03
[Www.pkbulk.blogspot.com]dbms03[Www.pkbulk.blogspot.com]dbms03
[Www.pkbulk.blogspot.com]dbms03
 
[Www.pkbulk.blogspot.com]dbms02
[Www.pkbulk.blogspot.com]dbms02[Www.pkbulk.blogspot.com]dbms02
[Www.pkbulk.blogspot.com]dbms02
 
[Www.pkbulk.blogspot.com]dbms01
[Www.pkbulk.blogspot.com]dbms01[Www.pkbulk.blogspot.com]dbms01
[Www.pkbulk.blogspot.com]dbms01
 
[Www.pkbulk.blogspot.com]dbms13
[Www.pkbulk.blogspot.com]dbms13[Www.pkbulk.blogspot.com]dbms13
[Www.pkbulk.blogspot.com]dbms13
 
9. java server faces
9. java server faces9. java server faces
9. java server faces
 
8. java script
8. java script8. java script
8. java script
 
7. struts
7. struts7. struts
7. struts
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

1. intro

  • 1. IMRAN DAUD FOUNDATION UNIVERSITY RAWALPINDI CAMPUS Imran Daud FURC Web Engineering Introduction
  • 2. Content to be covered  HTTP Architecture  HTML Basics  Applets  JSP  Java Servlets  Java Scripts
  • 3. Marks Distribution  Project/Assignment/ Quizes 15%  Mid Term 30%  Attendance 5%  Final 50%
  • 4. Java ABC Imran Daud FURC  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. High level language Imran Daud FUIMCS  Closer to human languages  They are easier to read, write, and maintain  Platform independent.
  • 6. Packages? Imran Daud FUIMCS  organizing Java classes into namespaces similar to the modules.  Packages stored into JAR files to allow classes to download faster in group rather then one at a time  Package contains:  Classes  Interfaces
  • 7. How to use Java Packages? Imran Daud FUIMCS  import java.awt.event.*;  Keyword: import  Hierarchy of classes.  Each packages contain different set of classes  Each class can use protected data member and data functions directly of other classes within same package.
  • 8. How to Write java program Imran Daud FUIMCS  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. Compiling java code in Dos mode Imran Daud FUIMCS  ‘Bin’ folder Path to be defined.  Use ‘javac’ command to complie.  javac File_name.java  After compiling ‘File_name.class’ is generated.
  • 10. What is .class file Imran Daud FUIMCS  Bytecode  If a file contains more then one classes then a separate .class file will be generated for each class.  ‘.class’ file can be run with JVM.
  • 11. How to run java program (Dos shell) Imran Daud FUIMCS  Use ‘java’ command to run .class file.  Example:  Java File_name
  • 12. Java as OOP Imran Daud FUIMCS  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 data functions.
  • 13. Class VS Interface  ‘extend’ Class whereas ‘implement’ interface  Class can have instance but interface don’t  Re-declare ALL functions in interface.