employer cover photo
employer logo
employer logo

InnoEye Technologies

Acquired by Rakuten Symphony

Is this your company?

InnoEye Technologies Interview Question

Design a application using interface..

Interview Answers

Anonymous

Jan 18, 2017

class Add { static final int a=10; static final int b=15; abstract Add2(); } interface InterfaceDemo extends Add { void Add2() int c=a+b; System.out.println("c"); } class Addition { public static void main(Sring args[]) { InterfaceDemo i=new InterfaceDemo(); i.Add2(); }

26

Anonymous

Jun 19, 2017

interface Add { public abstract int Add2(int a,int b); } class InterfaceDemo implements Add { public int Add2(int a,int b) { return a+b; } } class Addition { public static void main(String args[]) { InterfaceDemo i=new InterfaceDemo(); System.out.println(i.Add2(10,5)); } }

14