How can a class be accessed, If no access modifiers are
declared?
Answer Posted / banti
If a there is no access modifier specified to a class it
takes the access modifier as Default. This means the class
which has Default Access modifier can be accessed from
other classes defined in the same package.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is mutable object and immutable object?
what is mena by object block any what is the use of that
Define Multiprogramming and Multiprocessing in java.
What types of index data structures can you have in java?
What is the difference between inner class and nested class?
Why is method overloading not possible by changing the return type in java?
Does java support multiple inheritance or not?
What is the benefit of using enum to declare a constant?
What is strings in java?
What is subsequence of a string?
what is meant by abstract class?
What is serialization in java?
Can we call the constructor of a class more than once for an object?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What's the difference between int and integer in java?