• Post Reply Bookmark Topic Watch Topic
  • New Topic

auto includes java api  RSS feed

 
Jolie Lee
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, may i know wat are the java API(s) that are automatically included in the compiler?
 
Hentay Duke
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All J2SE packages are included in the standard compiler from Sun.
 
Giovanni De Stefano
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I guess you mean imported when you say included.

The answer is that the classes in the package java.lang.* are imported automatically, so you don't need to write an import statement.

Giovanni
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"JY"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
Jolie Lee
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Giovanni De Stefano:
Hi,
I guess you mean imported when you say included.

The answer is that the classes in the package java.lang.* are imported automatically, so you don't need to write an import statement.

Giovanni


yaya, i mean imported..

is java.lang.* the only package that is automatically imported?
 
Neeraj Dheer
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes java.lang is the only package tht is automatically imported.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!