Saturday, 16 March 2013

What are the various access modifiers in Java. Difference between them?

What are the various access modifiers in Java. Differences between them? 
transient, final, static

transient for variable:-- variable's state can't be serialized.

final :-- can be
 declared for class, METHODS as well as variables, who's definition can't be changed.

static :-- variable & methods can be
 declared as static means it has only one copy for all the objects & it's exist only in class level



Blog Author: Vijay Kumar

Go to: Coding Problem Solutions

No comments: