| 1 | // Program to demonstrate 'this' pointer (explicit method) - |
| 2 | package thisPointerExplicit; |
| 3 | class Box { |
| 4 | int len = 50; |
| 5 | void display() { |
| 6 | int len = 100; |
| 7 | System.out.println("Local value = " + len); |
| 8 | System.out.println("Instance value = " + this.len); |
| 9 | } |
| 10 | } |
| 11 | public class ThisPointerExplicit { |
| 12 | public static void main(String[] args) { |
| 13 | // TODO Auto-generated method stub |
nothing calls this directly
no outgoing calls
no test coverage detected