filmov
tv
Java new features - Static method inside interface ? java 8 | java interview questions and answers

Показать описание
In this video, we will learn about one of the Java new features . A static method inside Interface.
Yes, like the default method, we will also be able to write a static method with a body inside an interface starting from java 8.
The main objective of adding this feature is to protect a method implementation to get overridden. Unlike default method , the static methods inside an interface can't be overridden and can be use as an alternative for this objective.
So let's explore how this core java concept works with real time , with examples and code walkthrough.
TIMESTAMP
——————
00:00 - Introduction
00:34 - Default Method Vs Static Method in Java 8
05:00 - Why Static method in Java 8 ?
10:29 - Java Tricky question
The interface concepts and new feature added to java interfaces are the hot favourite questions for java interview and we will cover this today as part of our "java interview questions and answers" series.
#java #oop #javainterviewquestions #interface
For More free/paid courses visit
LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers
Watch Spring boot Hot topics
Java Interview / Question and Answer series
Explain spring Bean Lifecycle
spring core
spring mvc
spring mvc intermediate
Spring JDBC
spring live project
SPRING SECURITY COURSE[NEW]
For more courses visit
Any time you are getting stuck with issues, Feel free to ask for support.
you can ping me on my Facebook page
Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"
you can ask for support in my website forum
Subscribe to my youtube channel
Follow me on Insta
Yes, like the default method, we will also be able to write a static method with a body inside an interface starting from java 8.
The main objective of adding this feature is to protect a method implementation to get overridden. Unlike default method , the static methods inside an interface can't be overridden and can be use as an alternative for this objective.
So let's explore how this core java concept works with real time , with examples and code walkthrough.
TIMESTAMP
——————
00:00 - Introduction
00:34 - Default Method Vs Static Method in Java 8
05:00 - Why Static method in Java 8 ?
10:29 - Java Tricky question
The interface concepts and new feature added to java interfaces are the hot favourite questions for java interview and we will cover this today as part of our "java interview questions and answers" series.
#java #oop #javainterviewquestions #interface
For More free/paid courses visit
LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers
Watch Spring boot Hot topics
Java Interview / Question and Answer series
Explain spring Bean Lifecycle
spring core
spring mvc
spring mvc intermediate
Spring JDBC
spring live project
SPRING SECURITY COURSE[NEW]
For more courses visit
Any time you are getting stuck with issues, Feel free to ask for support.
you can ping me on my Facebook page
Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"
you can ask for support in my website forum
Subscribe to my youtube channel
Follow me on Insta
Комментарии