briefley expalin about the packages

Answers were Sorted based on User's Feedback



briefley expalin about the packages..

Answer / mayank sharma

file 1
package ListPkg;
public class List { ... }
class ListNode {...}

file 2
package ListPkg;
public class NoNextItemException { ... }


file 3
public class Test { ... }
class Utils { ... }

file 4
class Test2 { ... }

Is This Answer Correct ?    3 Yes 0 No

briefley expalin about the packages..

Answer / geetha

A package is a grouping of related types providing access protection and name space management.

Is This Answer Correct ?    3 Yes 0 No

briefley expalin about the packages..

Answer / amrutha

A package contains a set of classes and interfaces.
package packagename;
interface interfacename{
}


class Classname{
}
class Test{
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is return keyword in java?

0 Answers  


When arithmeticexception is thrown?

0 Answers  


WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?

2 Answers  


How can the checkbox class be used to create a radio button?

0 Answers  


Why is java multithreaded?

0 Answers  






Why heap memory is called heap?

0 Answers  


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

0 Answers  


What is google full form?

0 Answers  


What are white spaces in java?

0 Answers  


Is array size fixed in java?

0 Answers  


what is mean by thread lock?

2 Answers   Infosys, TCS,


What is skeleton and stub? What is the purpose of those?

0 Answers  


Categories