Today I'm learning about IO in java. When I look at lineSeparator
string in BufferedWriter
class I saw the statement
lineSeparator = java.security.AccessController.doPrivileged(
new sun.security.action.GetPropertyAction("line.separator"));
which initialize the lineSeparator
string. But I don't find
sun.security.action.GetPropertyAction(String args)
class in java source. So I get confused how java uses this class which is not in java source. So tell me:
- where this classes is defined and how
JVM
call this class ? - Can we call this class in our own program ?