+ 1
What does java.lang mean in Java?
If interested, please leave one example for understanding in a programming way.
1 Antwort
+ 5
java.lang is the base package for a java program (contains within java.base module). Classes under this can directly accessed without importing them.
The System class (which contains print/ln methods) is a class within java.lang. The math class is also a most used class inside this package.
https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/lang/Object.html