Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By DarrylBurke

Thread: about Object...~

  1. #1
    SuperPig is offline Member
    Join Date
    Jul 2011
    Posts
    9
    Rep Power
    0

    Default about Object...~

    i would like to know what kind of techniques is this..~]

    void printClassName(Object obj) {
    System.out.println("The class of " + obj +
    " is " + obj.getClass().getName());
    }

    how to explain "obj.getClass().getName()" ?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,197
    Rep Power
    19

    Default

    You might like to reply to pbrockway2's response in your earlier question. And I shouldn't have to point that out, it's just common courtesy.

    As far as this one is concerned, read the API. It's all there.

    db

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,321
    Rep Power
    25

    Default

    what kind of techniques is this
    Chaining result

  4. #4
    vivektamil is offline Member
    Join Date
    Jul 2011
    Location
    Chennai
    Posts
    1
    Rep Power
    0

    Default

    Its Java Reflection Technique

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,197
    Rep Power
    19

    Default

    Quote Originally Posted by vivektamil View Post
    Its Java Reflection Technique
    Wrong.

    db
    KevinWorkman likes this.

  6. #6
    SuperPig is offline Member
    Join Date
    Jul 2011
    Posts
    9
    Rep Power
    0

    Default

    Since it is not java reflection technique, then what technique it is?

  7. #7
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2011, 06:11 PM
  2. Replies: 2
    Last Post: 06-22-2010, 04:29 AM
  3. Replies: 2
    Last Post: 01-29-2010, 02:01 AM
  4. Replies: 1
    Last Post: 03-04-2009, 06:14 PM
  5. Replies: 1
    Last Post: 07-22-2008, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •