File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes what's the difference? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "what Watch "what New topic
Author

what's the difference?

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
hello
i don't know the difference between the "java.sql.Data" and "java.util.Date",i mean how can i decide when i use which?
thank you!
Pete Lyons
Ranch Hand

Joined: Aug 18, 2002
Posts: 109
Use java.util.Date for most of your normal programming needs. java.sql.Date is part of JDBC and involved with databases, etc.
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
thanks for your helps
could you tell me how the "java.sql.Date" involve with database?
for example,i can use the "java.sql.Date" to receive the oracle Date type field,but "java.sql.Date" can't.
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
or sorry,my typing mistake.
i can use the "java.util.Date" to receive the oracle Date type field,but "java.sql.Date" can't.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what's the difference?
 
Similar Threads
Array Initilaize
Clarification
interview question
Thread question
Difference Between JFC and AWT Components