What are access modifiers in Java ?

Answer Posted / niranjanravi

we have 4 access modifiers in java.
public
private
protected
default

Is This Answer Correct ?    14 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java basic concept?

519


Why is the main method static?

593


Can a class extends itself in java?

525


What is e in java?

535


What is initial size of arraylist in java?

532






Is a class subclass of itself?

592


What is the final class?

546


Which containers use a flowlayout as their default layout in java programming?

498


What are methods?

544


What does singleton mean in java?

504


how to create multithreaded program? : Java thread

498


Implementations of set interface?

553


Why is a string immutable?

533


Can we assign integer value to char in java?

505


Why we use protected in java?

524