Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Beginner
Mar 14, 2006

Avoid Conflict when Using Dates

Suppose you have imported both java.util and java.sql packages into your program and you wish to use a Date class.

This would create a conflict because both the packages have a Date class. To overcome this, give a fully qualified name when using the Date class.

For example:


java.util.Date d= new java.util.Date();
Mamta Murthy
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap