On Apr 29, 7:24 am, pavan kumar <[email protected]> wrote:
> is something wrong with the question that I asked??
Certainly not, but perhaps nobody here has a decent answer for you.
You may ask this question on the Sun forums.
For the example you gave, obviously a logger, especially when dealing
with databases, logs a lot of things, hence it may make a real
difference if you use interface or direct class and invoke it every
second, but generally speaking apart those rare cases, the difference
may not be that huge.
You may have a look at the Advanced Java Programming lessons on
Performance from Mr Sang Shin.
I would say code as it seems obvious to you from the point of view of
the problem to be solved. Then when all works as expected, and you
find the program is too slow, begin to track the parts that may be
improved, and perhaps you will find that changing interfaces to
classes makes a difference in some part of your program (note the
perhaps).
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---