Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

Java temporal types,JDBC temporal types, Enumerated types,Serializable objects, Transient fields used in EJB

I would like to know Java temporal types,JDBC temporal types, Enumerated types,Serializable objects, Transient fields used in EJB. When, why, how, where we use them.Advantages, disadvantages of using them.  I was not clear on this concept. Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

what are differences between java.util.Date and java.sql.Time. When do we use each of them. please advise. for me it seems using java.sql.Time is simple and straight forward. In that case when do i need to use java.util.Date or java.util.Calendar. please advise
Avatar of gudii9

ASKER

why Date is created under java.util but not under java.sql which surprises me. please advise
raed this, I believe it has anextended response this question:
http://stackoverflow.com/questions/2305973/java-util-date-vs-java-sql-date

Calendar, GergorianCalendar are newer classes which deal
much more cautiously with many subtle features
of operatiins with dates, espceailly those related tio TimeZones, differences between say standard time and daylight saving time, etcetc.
In my mind, these Claendars are less intuitive and more difficult to rememember - all rthe time
you need to checvk APIs
So if you are dealing with appliactionswhen time zones are some other subtle points are really crucial, you want
to use Calendar's. In practice at least with me it happend very rarely, so
dealing with Dates is usually fine