rajamit872

Address of object created in Java by using Constructor

Sep 28th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1. class AddressofObject{
  2. AddressofObject(){
  3. System.out.println(this);
  4. }
  5. public static void main(String args[]){
  6. AddressofObject obj = new AddressofObject();
  7. AddressofObject obj1 = new AddressofObject();
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment