Answer Posted / anjani kumar jha
There are four access specifiers are available in java
Public-----------access to all
Private---------limited to class only
Protected---------limited to sub package of class
Default------------limited to same package
| Is This Answer Correct ? | 52 Yes | 10 No |
Post New Answer View All Answers
What is e java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What are the object and class classes used for?
Java.util.regex consists of which classes?
What is a function argument in java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What methodology can be employed to locate substrings inside a string?
What is return null in java?
Is java util regex pattern thread safe?
What are loops in java? What are three types of loops?
Explain about oops concepts.
What is difference between pointer and reference?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What is considered an anti pattern?
Explain with example the concept of constant variable in java.