1.

What is the output of this program? 1. class area 2. { 3. int width; 4. int length; 5. int area; 6. void area(int width, int length) 7. { 8. this.width = width; 9 this.length = length; 10. } 11. } 12. class Output 13. { 14. public static void main(String args[]) 15. { 16. area obj = new area(); 17. obj.area(5 , 6); 18. System.out.println(obj.length + " " + obj.width); 19. } 20. }

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


Discussion

No Comment Found