Loading...
The correct statement to create an object named mango of class fruit:
Consider the given program and answer the questions given below: class temp { int a; temp() { a=10; } temp(int z) { a=z; } void print() { System.out.println(a); } void main() { temp t = new temp(); temp x = new temp(30); t.print(); x.print(); } }
© 2026 PadhAiPro. This question is provided for educational purposes.