This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes how to see the <init> instance initialization method ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic
Author

how to see the <init> instance initialization method ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

i have read that for each constructor there is instance initialization method whose name is <init> and return type is void. i would like to know is there any way to view those instance initialization methods. ?
Chris Hurst
Ranch Hand

Joined: Oct 26, 2003
Posts: 416
    
    2

Well either your just using the default one or you've added one, if you've added one you can see it in your java ;-) to see the default out get a class viewer say jclasslib byecode viewer load up your class and there it is (albeit as byte code) ... I think the more interesting thing is why you would want to see it ???


"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4376
    
    8

Duplicate of http://www.coderanch.com/t/579735/java-programmer-SCJP/certification/see-init-instance-initialization-method
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to see the <init> instance initialization method ?