We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
You have given the interface as a return type. so what will be the return value of the methods isOdd, isPrime, isPalindrome and the interface method is not declared with the body. so where is the body and what is the body of the check method? Can you please clarify these doubts?
thanks in advance
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Lambda Expressions
You are viewing a single comment's thread. Return to all comments →
You have given the interface as a return type. so what will be the return value of the methods isOdd, isPrime, isPalindrome and the interface method is not declared with the body. so where is the body and what is the body of the check method? Can you please clarify these doubts?
thanks in advance