Package in java? , JAVA Programming

It helps to resolve naming conflicts when different packages have classes with the same names. This also helps you prepare files within your project. As define: java.io package do something related to input output and java.net package do something to do with network and so on. If we toward to put all .java files into a single package, as the project gets larger, then it would become a nightmare to manage all your files. You may create a package as follows with package keyword, which is the first keyword in any Java program followed by import statements. The java.lang package is imported implicitly by default when a java program created and all the other packages must be explicitly imported when a java program created.

 

package com.xyz.client ;

import java.io.File;

import java.net.URL;

 

Posted Date: 7/25/2012 12:23:10 AM | Location : United States







Related Discussions:- Package in java? , Assignment Help, Ask Question on Package in java? , Get Answer, Expert's Help, Package in java? Discussions

Write discussion on Package in java?
Your posts are moderated
Related Questions
Automated the claim sub-system: Insurance Domain:       CIA-MI   Type                                         Development - Web-based Application Role

Implement relationship using a java program. Assume each course has a course title, code, subject and number of credits while each student has a name, registration number, list of

what is meant by thread

Explain what is Naming Applets in java applets? You can give an applet a name by using the NAME attribute of the APPLET element. This allows communication between different app

How can you describe a consistent web design? Why is it required? A consistent web design is Easy understandable, not along with heavy graphics, easy navigation. It is required

In Java not all classes must be described separate from each other. You may put the definition of one class under the definition of another class. The class inside class is called

Describe Polymorphism? Polymorphism can be referred as one name many forms. It's the ability of methods to behave differently, depending upon object who is calling it. Key feat

Normal 0 false false false EN-US X-NONE X-NONE

need a java program that can read and display the values from a windows registry

What is the function of Network Interface Card? NIC is an I/O device which plugs within the computer and it enables it to communicate over a network.