A constructor provides a convenient way to initialize a newly created object at the time of its creation. A constructor…
October 28th, 2009
How to declare a package?
No Comments, Java Facts, by Daisy Williams.The package statement is used to declare packages. The word package is a keyword in Java. This statement is not…
September 22nd, 2009
What are the accessibility of members or variables with different modifiers?
No Comments, Java Facts, by Daisy Williams.The following table summarizes the accessibility of members in various forms: Members/Variables PrivatePublic Protected No modifier Same classYes Yes Yes…