Reference to Date is ambiguous, both class java.sql.Date in java.sql and class java.util.Date in java.util match

Applies to:


Description:
Error while trying to import java.sql and java.util.

Cause:
Importing java.util.* is not a recommended practice.

admin JAVA-Language

  1. admin
    March 9th, 2009 at 18:22 | #1

    Try importing java.sql.Date or java.util.Date and explicitly refer to the package of either of them whenever using it.

  1. No trackbacks yet.