0% found this document useful (0 votes)
7 views2 pages

Java-8 Notes

Uploaded by

amaleshmsc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Java-8 Notes

Uploaded by

amaleshmsc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Java -8

What is functional interface?

If an interface contains only one abstract method.then it is called functional interface. And it is called
(sam) single abstract method.

Fuctional interface la ore oru abstract method than irukanuma ?

Yse only one. Only one single abstract method. Object class la irukra methods ah functional interfacc
kula kuduka mudiyum.

Ex-int hashcode(), Boolean equals().

Can a fi have more than one abstract method.

Can a fi have more than one method;

Default methods ,object classs methods.

Parent functional interface ah child extend panna antha child interface um functional interface
than ,child la @functional interface use panna error varathu.

Child interface la puthusa oru abstract method ah create panna mudiyathu.parent method ah inga use
panniklam.

Default methods

Enables u to add new functionality to existing interface.

Default methods also known as defender methods r virtual extension methods.

Default methods parent interface la iruntha atha ella class layum override pannanum nu avasiyam
illa.namku thevayana class ku mattum override panniklam.error varathu.
Default methods with multiple inheritance

++++++++++++++++++++++++++++

Static methods.

++++++++++++++++

You might also like