Question:

Why does java let you use the String class without importing?

by  |  earlier

0 LIKES UnLike

umm,I am working on some java homework, and one of my assignments was to look up why you DONT have to import the java class String, but you do for any other created classes?!!@$(

please help!

 Tags:

   Report

4 ANSWERS


  1. Java question and answer-http://javaanswers1.blogspot.com/


  2. You never need to explicitly import any classes from the java.lang package. String (java.lang.String) is in the java.lang package, as are many other classes that are fundamental parts of the language.

  3. Java Coding-http://codingjava.blogspot.com/

  4. It must be built in to the compiler or something. Just like C has built in support for string literals.

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.