Skip to main content

27 posts tagged with "Java"

Java Programming Language and the JDK

View All Tags

How to Import a Class in Java

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

Java's classes live in packages: LocalDate lives in java.time, ArrayList in java.util. An import line at the top of a file lets you use a class by its short name, LocalDate, instead of its full one every time.

How to Override a Transitive Dependency Version in Maven

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

A library you depend on brings its own dependencies, at the versions it chose. When one of them is older than you want, often because a newer release fixes a security problem, you can tell Maven which version to use without touching the library. The place for it is dependencyManagement in your pom.xml.