0

differences in packages

what are the differences between io package and lang package in java I.e differences between java.lang.*; and java.io.*;

30th Jan 2017, 4:00 PM
pallavraj5
pallavraj5 - avatar
3 Answers
+ 1
Java.lang "provides classes that are fundamental to the design of the Java programming language." https://docs.oracle.com/javase/7/docs/api/java/lang/package-summary.html Java.io "provides for system input and output through data streams, serialization and the file system." https://docs.oracle.com/javase/7/docs/api/java/io/package-summary.html
30th Jan 2017, 4:13 PM
Andreas K
Andreas K - avatar
0
You use these packages to import specific features to your class. And depending on tge features you need you have to import it by its path or package. eg java.io handles with io streams
30th Jan 2017, 4:05 PM
Andreas K
Andreas K - avatar
0
I know that but what are the differences between these 2 packages?!
30th Jan 2017, 4:07 PM
pallavraj5
pallavraj5 - avatar