• Override methods in java program

    Override methods V/S Overloading methods Override methods is dynamic polymorphism. Overloading methods is static polymorphism. Name of methods and parameter of methods are same in override. Name of methods are same but parameter of methods are not same in overloading method.     “Override method possible only in inheritance class, because we can’t create same […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS
  • 3 types: Hierarchical Inheritance

    Hierarchical Inheritance is part of 3 types inheritance. This inheritance works on chain structure code like ( Manager-> Department1 Manager, Manager-> Department2 Manager).   Basic structure of hierarchical inheritance is. A             Super class | ——————————————– |                                                              | B             Sub class                              C             Sub Class   In this figure, we can see B class is sub […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS
  • 3 types : Multilevel inheritance

    Multilevel inheritance is part of 3 types inheritance. This inheritance works on chain structure code like Manager-> Department Manager -> Worker etc.   Basic structure of multilevel inheritance is. A             Super class | B             Sub class | Super Class | C             Sub Class In this figure, we can see B class is sub class of […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS
  • 3 types inheritance: Simple Inheritance

    3 types inheritance available in java programs. In c++ we can manage 5 types of inheritance. 3 Types Inheritance Simple Inheritance Multilevel Inheritance Hierarchical Inheritance   In this blog, we will work on Simple Inheritance. This is simple structure of Simple Inheritance. A is Super class and B is sub class. Sub class B can […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS
  • Finally : 1 step to handle all errors

    In all advance level exception handling, all programmer use finally keyword to prevent run time error. Let’s take one example: User-1 transfers amount to another User-2 account. Amount withdraws from User-1 and suddenly some hardware or networking error generated. That time finally block removes all transfer amounts.   Example on Finally in exception handling class […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS