Two major differences: One, constructors must have same name as the class and can’t have any return type. Two, constructors are called only once, while other methods can be called multiple times.
Wednesday, May 14, 2008
Difference between constructors and other methods
Related Articles...
Java
Trivia
- what does load-on-startup element mean in web.xml?
- What is the difference between VARCHAR and VARCHAR2?
- Why Prepared Statements are faster? Are they compiled?
- Difference between Client-side & Server-side DB cursors?
- How to invoke an Applet packaged as a JAR?
- Class variable, Member variable, and Local variable
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment