cs243

494 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
494
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

cs243

  1. 1. Group 1 Presents<br />Object Oriented Programming<br />In Java<br />
  2. 2. In This Presentation, Watchers will Learn:<br /><ul><li>Difference between Java and C++
  3. 3. Java objects Allocation, Subtypes and Subclasses
  4. 4. Inheritance, Dynamic Bonding and Encapsulation in Java</li></li></ul><li>Support for Object Oriented Programming In Java<br />Lets Start!!!<br />
  5. 5. Type System Difference Between Java and C++<br />As of Java, the primative scalar types are not objects <br />
  6. 6. Type System Difference Between Java and C++<br />As of Java, values of the primative scalar types are not objects <br />
  7. 7. Primitive Scalar Types<br /><ul><li>Boolean
  8. 8. Characters
  9. 9. Numerics</li></li></ul><li>Java Objects Allocation<br />Java allocates in memory<br />
  10. 10. Java Objects Allocation<br />To be Specific, The place in the memory is called Heap<br />
  11. 11. Java Objects Deallocation<br />ToDeallocate Java objects, we use what they call “Garbage Collector”<br />
  12. 12. Java Objects Deallocation<br />Garbage Collectors from the word garbage means that it is no longer needed and can be thrown away.<br />
  13. 13. Garbage Collector<br />It collects unnecessary data from the heap. It determines which objects are no longer needed<br />
  14. 14. Java Subclasses and Subtypes<br />All Subclasses are Subtypes<br />
  15. 15. Java Subclasses and Subtypes<br />It is because, For us, subtypes are classes that has all the state and behavior of another class<br />
  16. 16. Circumstances of Java Method Call<br />Java uses Dynamic Binding as normal approach to bind method calls to method definitions<br />
  17. 17. Dynamic Binding<br />*Are loaded and executed only at the run time<br />
  18. 18. Evaluation<br />Dynamic Binding is executed at runtime<br />
  19. 19. Evaluation<br />Heap is the place in the memory where java objects is stored<br />
  20. 20. Evaluation<br /><ul><li> Garbage collector is used to deallocate objects in the heap</li></li></ul><li>End of Presentation<br />Thank you!!<br />

×