Java errors in a program
Class Student { int roll; int getroll(int x) { roll=x; } void putroll() { System.out.println("ROLL NUMBER IS ENTERED BY THE USER IS"+roll); } } Class Test extends Student { int getmarks(int a,int b, int c,int d,int e) { int java,python,nodejs,android,ds; java=a; python=b; nodejs=c; android=d; ds=e; } int putmarks() { System.out.println("Test 1 marks is"+java); System.out.println("Test 2 marks is"+python); System.out.println("Test 3 marks is "+nodejs); System.out.println("Test 4 marks is "+android); System.out.println("Test 5 marks is"+ds); } } Class Result extends Test { int display { putroll(); putmarks(); int total=java+python+nodejs+android+ds; } } Class Main { public Static void main (String arg[]) { Result obj=new Result(); obj.getroll(1); obj.getmarks(100,200,300,400,500); obj.diplay(); } }