1.

What is the output of this program? class area { int width; int length; int area; void area(int width, int length) { this.width = width; this.length = length; } } class Output { public static void main(String args[]) { area obj = new area(); obj.area(5 , 6); System.out.println(obj.length + " " + obj.width); } }

A. 0 0
B. 5 6
C. 6 5
D. 5 5
Answer» D. 5 5


Discussion

No Comment Found