interface Polygon { void getArea(int length, int breadth);}
// implement the Polygon interfaceclass Rectangle implements Polygon {
// implementation of abstract method public void getArea(int length, int breadth) { System.out.println("The area of the rectangle is " + (length * breadth)); }}
class Main { public static void main(String[] args) { Rectangle r1 = new Rectangle(); r1.getArea(5, 6); }}Predict the outputdecimal= 3.990binaryr=""#reverse binary number lsb to msbx=decimal #copywhile x0:binaryr += str(x%2)x//=2binary="("+binaryr[::-1]+")₂"#msb to lsbdecimal=f"({decimal})₁₀"print(f"decimal {decimal} = binary {binary}")