If you have a code like this public interface Comparable def
If you have a code like this: public interface Comparable {default int compareTo(String other) {return 0;}} What would happen if you implement this Interface in your class? If I don\'t implement the method compare To, Java will raise an exception If I don\'t implement the method compare To, it will return 0 when called If I implement the method compare To, Java will raise an exception If I implement the method compare To with a different returning value, it will still return 0 when called
Solution
Answer : if i don\'t implement the method compared to ,java will raise an exception
