File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Another qestuiion about String ?? Really Quick one Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Another qestuiion about String ?? Really Quick one " Watch "Another qestuiion about String ?? Really Quick one " New topic
Author

Another qestuiion about String ?? Really Quick one

Tom Salo
Greenhorn

Joined: Oct 28, 2002
Posts: 7
When we are declaring a variable of string. Why we don`t need to import java.lang.* ?
e.g String MyString;
Since String is a method under java.lang !
but why we stilk don`t need to import the java.lang class ?
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

Since String is a method under java.lang !
but why we stilk don`t need to import the java.lang class ?

Since the classes in the java.lang package are used in virtually every java program, the Java language designers made the decision to make an exception from the import rule, -- the classes from the java.lang package are imported by default.
Eugene.
Tom Salo
Greenhorn

Joined: Oct 28, 2002
Posts: 7
Oh Sweat... ! Thank you very very much.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Another qestuiion about String ?? Really Quick one
 
Similar Threads
Streams
why don�t we get previous page after signing out?
Language Fundamentals
Static Import in java 1.5
Array length not declared