Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Which package is auto imported in java?

user-image
Question added by himanshu mittal
Date Posted: 2013/07/08
علي عبدالله الشواف
by علي عبدالله الشواف , محلل دعم فني , Intelenet global services

java.lang

Ashok Yadav
by Ashok Yadav , trainee , S.O Infotech Pvt. Ltd.

java.lang because its contain all nessecary class which are use in every program

Mohammed Kamal Abdelrahman Hussein
by Mohammed Kamal Abdelrahman Hussein , Lead Senior Software Engineer , Natwest Bank

java.lang package are imported by default. Thus you do not need to import java.lang.*; to use them without fully qualified names.

Consider the System.out.println() method we've been using since the first day of class.

System is really the java.lang.System class. This class has a public static field called out which is an instance of the java.io.PrintStream class. So when you write System.out.println(), you're really calling the println() method of the out field of the java.lang.System class!!.

mujeeb mohammed abdul
by mujeeb mohammed abdul , System And Networks Administrator , cms it services pvt ltd

java. lang package imported by servlets and java utili.

Ajith Fernandez
by Ajith Fernandez , Software Engineer , Nayasoft Solutions Pvt.ltd

java.lang package because it bundles all the fundamental classes.

every java program must import java.lang package

Mohamed Riadh Boumendjas
by Mohamed Riadh Boumendjas , developpeur JAVA EE , icon soft

java.lang package

Amer Noor Khan
by Amer Noor Khan , Computer Programmer in M.J. College of Engineering and Technology , M.J College of Engineering and Technology

java.land

Deleted user
by Deleted user

java.lang

Vishal ganti
by Vishal ganti , Assistant Product Manager , Redington Gulf Fze

java.lang

khaled lela
by khaled lela , Angular typescript programmer , Klickdata

java.lang >>>> will be load by default