how to solve the diamond problem in java
// A simple Java program to demonstrate multiple
// inheritance through default methods.
interface A
{
// Default method
public default void show()
{
System.out.println("A");
}
}
interface B
{
public default void show()
{
System.out.println("B");
}
}
public class x implements A,B
{
public static void main(String args[])
{
new x().display();
}
public void display()
{
//B.super.show();
}
}