In this video we are discussing about java 8 interface static method.
In java 8, there is an static method introduced, so from java 8 in interface we can define static method.
Main benefit of defining static method in interface is as it provides high degree of cohesion.
high degree of cohesion means to call static method of interface we don't need any object or any class reference. we can just call static method by using interface name in which it is defined.
static method in interface can called from another static method or default method in interface.
It is very useful java 8 feature.
To read other Java 8 features , refer below video links:
Default Method in interface:
• Java 8 feature default method
DateTime API:
• Java 8 Feature Date Time Api
Method Reference:
• Java 8 Feature Method Reference
Base 64:
• Java8 Feature Base64
In questa pagina del sito puoi guardare il video online Java 8 Static Method della durata di ore minuti seconda in buona qualità , che l'utente ha caricato TechFest Java 04 agosto 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5 volte e gli è piaciuto 0 spettatori. Buona visione!