What does java.lang mean in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does java.lang mean in Java?

If interested, please leave one example for understanding in a programming way.

8th May 2019, 11:54 AM
pratyush kumar
pratyush kumar - avatar
1 Answer
+ 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
8th May 2019, 12:32 PM
Seniru
Seniru - avatar