SlideShare una empresa de Scribd logo
1 de 28
 OOP: A rrrrapid review
 C / C++ and now … err … Java?
 Java: The new kid on the block!
 Regular Feature: Some Gyaaan !
 What NEXT?
   OOP is a relatively „new‟ programming paradigm
   Competes with Structured Programming
   Avoids REDUNDANCY, provides FLEXIBILITY
   Involves lot of jargons

     Modularity

     Abstraction / Data Encapsulation / Info Hiding

     Inheritance

     Polymorphism
   Procedural Programming: C

   C + Classes + … = C++

   Main problem: Lack of portability

   That‟s primarily what Java builds upon …
   Started by Sun Inc. under codename OAK

   The Retransformation
     HotJava


   Built on the WORA paradigm
   Stands for Write Once Read Anywhere

   Brainchild of James Gosling

   Stresses primarily on portability and strict
    adherence to specifications

   Enters JVM!
   It‟s Java‟s own Interpreter

   Custom built for different platforms

   Just worry about your class file, Java
    takes care of the rest!
Java Class File
Java Virtual Machine
Computing Architecture
   Header Files (Use import)

   Class Definition(s)

   main() within the class
Class <class name>
{
//datamembers
    <access modifiers> <data type> <variable
    name>
//function definitions
  <access modifiers> <return type> <function
  name> (comma-separated parameter list)
  {
    body – of – the - function
  }
}
   Variables/Constants/Arrays
   Arithmetic Expressions/Operators
   Control Flow Techniques
   Pointers/References (???)
   Methods
   Classes/Objects
   …
   …
   <This is only a glimpse … > !!!
 An element that varies
 Vary = change
 Contrast with CONSTANTS (Rock
  steady - do NOT change during
  program run)
 8 types:
     byte, short, int, long,
     float, double,
     boolean,
     char
 Rules involving variables, constants,
  operators etc.
 Always evaluate to a VALUE
 Can be used in a helluva innovative ways
 Master them and half the battle is one
   Sequence
     Embedded in the structure

   Selection
     If ... Else
     Switch

   Iteration
     For
     Do... While
     While
   A small program in itself

   Self contained

   Input-process-output

   Function prototype

   Function definition

   Arguments/Parameters
   Objects as references

   Call by Reference/Value

   Primitive datatypes – passed by value

   Objects – passed by reference

   Wrapper classes
   Case-sensitive

   Class Definitions do NOT end with a “;”

   No global variable concept

   No standalone main()

   No non-boolean value in conditional
    statements
   No structs, enumerations, unions

   No scope unary scope resolution operator

   “.” operator

   super keyword

   Data-types sizes are FIXED, independent
    of machine architecture
   Multiple inheritance NOT supported

   Exception handling typicality

   Treatment of ob1 = ob2 statements

   No destructors

   extends keyword
   Be Disciplined

   Be Regular

   Try and compete in online coding competitions

   Practice (Remember it makes a man perfect ...
    and works for women as well!)

   Reference:
    http://java.sun.com/docs/books/tutorial/getS
    tarted/index.html
Jumping Into Java Then!
Jumping Into Java Then!

Más contenido relacionado

La actualidad más candente

Ajax World2008 Eric Farrar
Ajax World2008 Eric FarrarAjax World2008 Eric Farrar
Ajax World2008 Eric Farrar
rajivmordani
 

La actualidad más candente (12)

Java script
Java scriptJava script
Java script
 
Ajax World2008 Eric Farrar
Ajax World2008 Eric FarrarAjax World2008 Eric Farrar
Ajax World2008 Eric Farrar
 
Stored procedures
Stored proceduresStored procedures
Stored procedures
 
Paris Web - Javascript as a programming language
Paris Web - Javascript as a programming languageParis Web - Javascript as a programming language
Paris Web - Javascript as a programming language
 
Peno 3 Google App Engine introduction
Peno 3 Google App Engine introductionPeno 3 Google App Engine introduction
Peno 3 Google App Engine introduction
 
3 sql overview
3 sql overview3 sql overview
3 sql overview
 
Java script
Java scriptJava script
Java script
 
Web development basics (Part-7)
Web development basics (Part-7)Web development basics (Part-7)
Web development basics (Part-7)
 
Java script
Java scriptJava script
Java script
 
Gourmet Service Object
Gourmet Service ObjectGourmet Service Object
Gourmet Service Object
 
JavaScript Basics
JavaScript BasicsJavaScript Basics
JavaScript Basics
 
JSP Part 1
JSP Part 1JSP Part 1
JSP Part 1
 

Destacado

7 searching injava-binary
7 searching injava-binary7 searching injava-binary
7 searching injava-binary
irdginfo
 
[ACM-ICPC] Greedy Algorithm
[ACM-ICPC] Greedy Algorithm[ACM-ICPC] Greedy Algorithm
[ACM-ICPC] Greedy Algorithm
陳 鵬宇
 
Activity selection problem class 12
Activity selection problem class 12Activity selection problem class 12
Activity selection problem class 12
Kumar
 
Application of greedy method
Application  of  greedy methodApplication  of  greedy method
Application of greedy method
Tech_MX
 

Destacado (20)

Chap04alg
Chap04algChap04alg
Chap04alg
 
7 searching injava-binary
7 searching injava-binary7 searching injava-binary
7 searching injava-binary
 
[ACM-ICPC] Greedy Algorithm
[ACM-ICPC] Greedy Algorithm[ACM-ICPC] Greedy Algorithm
[ACM-ICPC] Greedy Algorithm
 
Greedy Algoritham
Greedy AlgorithamGreedy Algoritham
Greedy Algoritham
 
Greedyalgorithm
Greedyalgorithm Greedyalgorithm
Greedyalgorithm
 
Sorting and searching arrays binary search algorithm
Sorting and searching arrays binary search algorithmSorting and searching arrays binary search algorithm
Sorting and searching arrays binary search algorithm
 
Activity selection problem
Activity selection problemActivity selection problem
Activity selection problem
 
Activity selection problem class 12
Activity selection problem class 12Activity selection problem class 12
Activity selection problem class 12
 
Application of greedy method
Application  of  greedy methodApplication  of  greedy method
Application of greedy method
 
Greedy
GreedyGreedy
Greedy
 
DP
DPDP
DP
 
Greedymethod
GreedymethodGreedymethod
Greedymethod
 
Heap sort
Heap sort Heap sort
Heap sort
 
Heapify
HeapifyHeapify
Heapify
 
chapter - 6.ppt
chapter - 6.pptchapter - 6.ppt
chapter - 6.ppt
 
Binary Search - Design & Analysis of Algorithms
Binary Search - Design & Analysis of AlgorithmsBinary Search - Design & Analysis of Algorithms
Binary Search - Design & Analysis of Algorithms
 
Linear search algorithm
Linear search algorithmLinear search algorithm
Linear search algorithm
 
Greedy Algorithms
Greedy AlgorithmsGreedy Algorithms
Greedy Algorithms
 
Greedy algorithm
Greedy algorithmGreedy algorithm
Greedy algorithm
 
Linear Search & Binary Search
Linear Search & Binary SearchLinear Search & Binary Search
Linear Search & Binary Search
 

Similar a Jumping Into Java Then!

Presentations Unusual Java Bugs And Detecting Them Using Foss Tools
Presentations Unusual Java Bugs And Detecting Them Using Foss ToolsPresentations Unusual Java Bugs And Detecting Them Using Foss Tools
Presentations Unusual Java Bugs And Detecting Them Using Foss Tools
Ganesh Samarthyam
 
Ten Man-Years of JavaFX: Real World Project Experiences
Ten Man-Years of JavaFX: Real World Project ExperiencesTen Man-Years of JavaFX: Real World Project Experiences
Ten Man-Years of JavaFX: Real World Project Experiences
Henrik Olsson
 
Ajax Tutorial
Ajax TutorialAjax Tutorial
Ajax Tutorial
oscon2007
 

Similar a Jumping Into Java Then! (20)

Workin On The Rails Road
Workin On The Rails RoadWorkin On The Rails Road
Workin On The Rails Road
 
Smart Client Development
Smart Client DevelopmentSmart Client Development
Smart Client Development
 
Qure Tech Presentation
Qure Tech PresentationQure Tech Presentation
Qure Tech Presentation
 
Presentations Unusual Java Bugs And Detecting Them Using Foss Tools
Presentations Unusual Java Bugs And Detecting Them Using Foss ToolsPresentations Unusual Java Bugs And Detecting Them Using Foss Tools
Presentations Unusual Java Bugs And Detecting Them Using Foss Tools
 
Maintainable JavaScript
Maintainable JavaScriptMaintainable JavaScript
Maintainable JavaScript
 
Ten Man-Years of JavaFX: Real World Project Experiences
Ten Man-Years of JavaFX: Real World Project ExperiencesTen Man-Years of JavaFX: Real World Project Experiences
Ten Man-Years of JavaFX: Real World Project Experiences
 
object oriented programming(PYTHON)
object oriented programming(PYTHON)object oriented programming(PYTHON)
object oriented programming(PYTHON)
 
PHP & MVC
PHP & MVCPHP & MVC
PHP & MVC
 
JPA and Hibernate
JPA and HibernateJPA and Hibernate
JPA and Hibernate
 
Jumping Into Java Then!
Jumping Into Java Then!Jumping Into Java Then!
Jumping Into Java Then!
 
Turbogears Presentation
Turbogears PresentationTurbogears Presentation
Turbogears Presentation
 
QA / Testing Tools, Automation Testing, Online & Classroom Training
QA / Testing Tools, Automation Testing, Online & Classroom Training QA / Testing Tools, Automation Testing, Online & Classroom Training
QA / Testing Tools, Automation Testing, Online & Classroom Training
 
Ajax Tutorial
Ajax TutorialAjax Tutorial
Ajax Tutorial
 
Solid and Sustainable Development in Scala
Solid and Sustainable Development in ScalaSolid and Sustainable Development in Scala
Solid and Sustainable Development in Scala
 
Solid And Sustainable Development in Scala
Solid And Sustainable Development in ScalaSolid And Sustainable Development in Scala
Solid And Sustainable Development in Scala
 
Introduction to JavaScript for APEX Developers - Module 1: JavaScript Basics
Introduction to JavaScript for APEX Developers - Module 1: JavaScript BasicsIntroduction to JavaScript for APEX Developers - Module 1: JavaScript Basics
Introduction to JavaScript for APEX Developers - Module 1: JavaScript Basics
 
Modern Webdevelopment With Ruby On Rails
Modern Webdevelopment With Ruby On RailsModern Webdevelopment With Ruby On Rails
Modern Webdevelopment With Ruby On Rails
 
An Intro to Scala for PHP Developers
An Intro to Scala for PHP DevelopersAn Intro to Scala for PHP Developers
An Intro to Scala for PHP Developers
 
Modernizing Legacy Applications in PHP, por Paul Jones
Modernizing Legacy Applications in PHP, por Paul JonesModernizing Legacy Applications in PHP, por Paul Jones
Modernizing Legacy Applications in PHP, por Paul Jones
 
Ravi software faculty
Ravi software facultyRavi software faculty
Ravi software faculty
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 

Jumping Into Java Then!

  • 1.
  • 2.  OOP: A rrrrapid review  C / C++ and now … err … Java?  Java: The new kid on the block!  Regular Feature: Some Gyaaan !  What NEXT?
  • 3.
  • 4. OOP is a relatively „new‟ programming paradigm  Competes with Structured Programming  Avoids REDUNDANCY, provides FLEXIBILITY  Involves lot of jargons  Modularity  Abstraction / Data Encapsulation / Info Hiding  Inheritance  Polymorphism
  • 5.
  • 6. Procedural Programming: C  C + Classes + … = C++  Main problem: Lack of portability  That‟s primarily what Java builds upon …
  • 7.
  • 8. Started by Sun Inc. under codename OAK  The Retransformation  HotJava  Built on the WORA paradigm
  • 9. Stands for Write Once Read Anywhere  Brainchild of James Gosling  Stresses primarily on portability and strict adherence to specifications  Enters JVM!
  • 10. It‟s Java‟s own Interpreter  Custom built for different platforms  Just worry about your class file, Java takes care of the rest!
  • 11. Java Class File Java Virtual Machine Computing Architecture
  • 12.
  • 13. Header Files (Use import)  Class Definition(s)  main() within the class
  • 14. Class <class name> { //datamembers <access modifiers> <data type> <variable name> //function definitions <access modifiers> <return type> <function name> (comma-separated parameter list) { body – of – the - function } }
  • 15.
  • 16. Variables/Constants/Arrays  Arithmetic Expressions/Operators  Control Flow Techniques  Pointers/References (???)  Methods  Classes/Objects  …  …  <This is only a glimpse … > !!!
  • 17.  An element that varies  Vary = change  Contrast with CONSTANTS (Rock steady - do NOT change during program run)  8 types:  byte, short, int, long,  float, double,  boolean,  char
  • 18.  Rules involving variables, constants, operators etc.  Always evaluate to a VALUE  Can be used in a helluva innovative ways  Master them and half the battle is one
  • 19. Sequence  Embedded in the structure  Selection  If ... Else  Switch  Iteration  For  Do... While  While
  • 20. A small program in itself  Self contained  Input-process-output  Function prototype  Function definition  Arguments/Parameters
  • 21. Objects as references  Call by Reference/Value  Primitive datatypes – passed by value  Objects – passed by reference  Wrapper classes
  • 22. Case-sensitive  Class Definitions do NOT end with a “;”  No global variable concept  No standalone main()  No non-boolean value in conditional statements
  • 23. No structs, enumerations, unions  No scope unary scope resolution operator  “.” operator  super keyword  Data-types sizes are FIXED, independent of machine architecture
  • 24. Multiple inheritance NOT supported  Exception handling typicality  Treatment of ob1 = ob2 statements  No destructors  extends keyword
  • 25.
  • 26. Be Disciplined  Be Regular  Try and compete in online coding competitions  Practice (Remember it makes a man perfect ... and works for women as well!)  Reference: http://java.sun.com/docs/books/tutorial/getS tarted/index.html