hi , i have a doubt on java constructor. the question is i have a class named example, for this class which one will be the constructor example() or void example().pls help me to clear this doubt.if both are constructors means is there any difference between them?
one's a contructor the other (with a return type) is a method.
Next time, please take care to post your question in the correct forum(This should belong to Java Beginners forum rather than the Servlet forum). You would get faster responses that way. Also, it would save the moderators the trouble of shifting it to the appropriate forum.