Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Why default methods got introduced in Java 8

Anjali Sharma answered on January 4, 2023 Popularity 4/10 Helpfulness 2/10

Contents


More Related Answers

  • default structure of java
  • set look and feel system default java
  • default method in java
  • What is a default method and when do we use it?
  • default method in interface java
  • Java default Keyword
  • Java Default Constructor
  • What is a default method and when do we use it?
  • In Java what is the default value of an object reference defined as an instance variable in an Object?

  • Why default methods got introduced in Java 8

    0

    To Provide Backward Compatibility. So that existing interfaces can use the Lambda expression without implementing the methods in the implementation class.

    Popularity 4/10 Helpfulness 2/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Jan 04 2023
    Anjali Sharma
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.