What is difference between JUnit 3 and JUnit 4?

What is difference between JUnit 3 and JUnit 4?

JUnit 4 makes extensive use of annotations, generics, and static import capabilities from Java 5. Although the JUnit 3.x version is compatible with JDK 1.2+, this usage necessitates the use of the latest version of JUnit with Java 5 or higher.

Read more about JUnit3 vs. JUnit4 here.