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

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

You are the hero abhi. I watch your spring frame work tutorials. Very very good and best explanation for every concept in spring. Selenium express is the best of all YouTube education channels. Thanks a very lot. I hope that you will develop more videos on other courses in future. You and your channel is very helping to learners.

Sai-Kiran
Автор

i know static methopd in interface that introduced in java 8 youtube me aadhe log definition pad kr video bnate hai aur bacho ko khtarnak tarike se confused kr dete but your content is solving real time problem in ye to hum gfg se bhi pad sakte you

niteshpandey
Автор

You deserve more subscribers, looking forward to hitting 100k subscribers. I am recommending this channel to all my friends. You are an awesome teacher who describes each topic so deeply, love and respect from Kerala

dignajames
Автор

Want a detailed course of spring boot from like you did spring waiting for that.... Thanks Abhi❤❤

anindyamukherjee
Автор

Sir please tell me now, when will you complete the solid course ?
I'm really waiting this course from you.

adelhatary
Автор

This was just awesome, thanks a ton, I never thought of this question!!!

LeoLeo-nxgi
Автор

Hi Abhilash, small correction for :

by extending a class you will have access to static methods/ all public, protected methods. (private, final methods wont be available with inheritance)

Actually the final methods are available with inheritance but overriding of final methods are not possible
Am I correct????

MKarthik-iliu
Автор

Hi abhilash could you please make complete Java course

suseesenthil
Автор

you told that at 4:55 that all we cannot make default method final because, it is public can you please explain me?

krishnarai
Автор

What will happen if two interface have same static method and a class implements two interface will it work?

shreysoni
Автор

I am glad that you are using intellij now😅

senya-man
Автор

Hi abhilash could you please make complete Java course

prabhakarpn
visit shbcf.ru