A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Doubts on core java concepts
Padma priya Gururajan
Joined: Oct 05, 2006
Jan 21, 2013 19:27:19
1) Can you tell the difference between mutable and i mmutable class?
2) When you we go for abtract classes?
Padma priya N.G.
Be the change you want to be - Mahatma Gandhi
Joined: Feb 19, 2008
Jan 21, 2013 23:09:27
1. You can not change internal state of immutable object, where as its possible to modify object if its mutable one.
2. If you found a set of objects sharing some common behavior and you want to encapsulate this common logic to one place, you can create a base _abstract_ class and let those classes to extend it.
[Freelance Web Designer]
[and "Rohan" is part of my surname]
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Doubts on core java concepts
is there any NetBeans specefic forum?
problem when running container tests in weblogic server
Oh boy !!!!!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014