More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. Abstract classes can have both abstract methods ( method declarations ) as well as concrete methods ( inherited to the derived classes ) whereas Interfaces can only have abstract methods ( method declarations ).
A class can extend single abstract class whereas it can implement multiple interfaces.
Help us improve. Please let us know the company, where you were asked this question :
Ans. step1: first read the file
text=file.read();
step2: then split the text into words
words=text.split();
step3: count the frequency of each words
wordcount=Counter(words);
step4: find the 10 most common words
mostCommonWords=wordcount.mostCommon(10);
return mostCommonWords;
Help us improve. Please let us know the company, where you were asked this question :