
Is Java supports Multiple Inheritance? Then How ?

There is typo the question is , What is Marker Interface and where it can be used?

Hi Friend,
An interface with no method is known as Marker Interface.
Here is an example:
interface markerImp {
}
class MarkerTest implements markerImp{
}
public class TestInstanceOf {
public static void main(String []args){
MarkerTest mt = new MarkerTest();
if(mt instanceof markerImp){
System.out.println("True");
}
else{
System.out.println("False");
}
}
}
For more information, visit the following link:
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.