0

What is the difference between scope and access modifier in java?

21st Sep 2016, 5:10 PM
AYUSH
AYUSH - avatar
2 Antworten
22nd Sep 2016, 4:18 AM
Aula Muttaqin
Aula Muttaqin - avatar
0
scope : It refers to the coding block , between {}. For example: class Scope { }// the scope of the class lies between {} access modifier: it specifies the accessibility of the method or field , to the once invoking them.
22nd Sep 2016, 7:40 AM
Rajesh
Rajesh - avatar