Import Statements in Java

Advertisements

Naming Conversion in Java Access Modifiers in Java

Import statements in Java

Import is a keyword in java language used to import the predefined properties of java API into current working java program.

Syntax

	import package1.package2.......*;
import statement in java

Used to import all the predefined properties of given package.

Syntax

	
import pack1.package2.............Class_Name/Interface_Name;

Used to import specific class or interface in a java program.

Java API is a collection of package, package is a container which is collection of predefined classes and interfaces.

Note: Import statement should be the first statement of the java programs.


Naming Conversion in Java Access Modifiers in Java

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements