Answer Posted / gyana
there are four access specifier in java.they are
public - means the the properties of class is accessable
to all other classes.
private- means the the properties of class cannot
accessable to any other classes.
protected- means the properties of class will acessed only
to its subclasses,not subclasses of its subclasses.
no access - mean you can access it with in the class.
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
What is difference between hashset and hashmap?
Can we write multiple catch blocks under single try block?
How many bytes is a url?
explain local datetime api in java8?
How to sort an array in java without using sort method?
What is thread pool? How can we create thread pool in java?
What is final access modifier in java?
how does multithreading take place on a computer with a single cpu? : Java thread
Define how can we find the actual size of an object on the heap?
Write a function to print Fibonacci series and Tribonacci series?
What is a pattern what is an anti pattern?
What are scalar data types?
What is boolean query?
What is purpose of applet programming?
What is the instance of an object?