Originally posted by Syed Naimathullah:
...iam not able to get the flow of the programs...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
MooN
The difference is that == is always the same whereas you can overwrite equals to implement your own comparison.Originally posted by anshi kohli:
so what is the difference between obj1==obj2 and obj1 equals(obj2)
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Try it.Originally posted by prathibha ananthapadmanabha:
Can a static variable be initialized through a constructor ?
Did the program compile and run?Originally posted by prathibha ananthapadmanabha:
so can static variables be initialized through a constructor.
Originally posted by prathibha ananthapadmanabha:
Even then the instance variable is static only na .
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)