How can a class be accessed, If no access modifiers are
declared?
Answers were Sorted based on User's Feedback
Answer / ranganathkini
If a class is marked with no access modifiers then it is
given "package" access by default which means it can be
instantiated or subclasses by other classes in the same
package but it is inaccessible to classes outside the same
package.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
the default access will be resticted to the classes with in
the same package
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / babu
If a there is no access modifier specified to a class then it
takes the access modifier as Default modifier.Default Access modifier scope is package scope.so this class scope also package scope to access the classes which is having in the same package.
| Is This Answer Correct ? | 0 Yes | 0 No |
using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.
Why put method is used?
What do you mean by singleton class in java?
Tell me are there implementations for sorting and searching in the java libarary?
what is Thread priority?
4 Answers Tech Mahindra, Wipro,
What is advantage of java?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is string in java with example?
What is an iterator java?
What are the important features of Java 10 release?
Is java written in c?
Name the package that always imported by default?