 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can extend an interface into another in Java. Before starting, you can note my information. You can subscribe my YouTube channel by clicking on the link which is available at the bottom right corner of this video. You can download my app Techimage that is available on Google Play. You can connect with me by following other details which are available in front of you. Now coming onto the topic, here I will be writing some instructions which will demonstrate you how you can extend an interface into another. So first I am implementing an interface whose name is A. Here I am declaring a method F1. Now another interface is B which extends interface A and inside this I am declaring second method that is F2. So you can see that interface A has extended into interface B. So interface B right now contains two method declarations that are F1 and F2. F1 belongs to interface A and F2 belongs to interface B. Now if you want to use both the methods into a single class, then you can just implement interface B into class C. So now class C has to define definitions of both F1 and F2 because it has implemented interface B. So first of all I am defining definition for F1 method. This is definition of F1 method. Now I am defining F2 method. So you can see that class C is defining definitions for F1 and F2 both because it has implemented interface B. This way you can implement more than one interfaces in a class. So first inherit more than one interfaces and then implement last one interface into a class so that you can contain declarations of all the methods into a single class. Now I am implementing test class inside this main method. Now inside main method I am creating object of C class which is first calling F1 method and then it is calling F2 method. Now I am executing this code. You can see the output. Method F1 and method F2 both has been displayed on console. So friends this way you can inherit one interface into another and then you can implement a single interface into a class and then you can create object of that class so that you can call all the methods which are defined by you. So this is simple demonstration how you can extend one interface into another. You can implement this at your own so that you can understand the concept well. If you want to connect with me you can note these details which are available. Do subscribe my YouTube channel so that you can watch other programming related videos. Thank you for watching this video.