Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

import class from package java

Package can have many classes but sometimes we want to access only specific class in our program in that case, Java allows us to specify class name along with package name. 
If we use import packagename.classname statement then only the class with name classname in the package will be available for use.
Source by www.studytonight.com #
 
PREVIOUS NEXT
Tagged: #import #class #package #java
ADD COMMENT
Topic
Name
1+4 =