what is meant by package in java?

Answer Posted / manoj kumar sahu(secon pvt.ltd

Package is nothing but it can be call as container of all
related class.All *.class files are stored in a package for
that we can implement the require *.class files in our
program.In java one package can be implement by using the
keyword import.The syntex is
import java.<packagename>.*;

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do I need java for windows 10?

752


What is meant by JVM? Is JVM platform independent or not?

813


How do you sort in ascending order in java?

666


How do you convert an int to a double in java?

786


Explain when we should make an instance variable private.

804


Can we have a try block without catch block?

738


What is the difference between checked exception and unchecked exception?

754


What is the difference between the file and randomaccessfile classes?

789


What is singleton class and how can we make a class singleton?

860


Explain the different forms of polymorphism?

761


What is a lambda expression ? What's its use ?

782


What is java beans?

756


Why does java have different data types for integers and floating-point values?

750


What is the difference between C++ and Java and your preferences?

825


What is data type modifier?

705