File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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]
I agree. Here's the link:
subject: Doubts on core java concepts
Oh boy !!!!!
is there any NetBeans specefic forum?
problem when running container tests in weblogic server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014