Java System setIn() MethodThe setIn() method of Java System class is used to reassign the "standard" input stream. SyntaxParameterin - It is the new standard input stream. ExceptionSecurityException: This exception will throw if the security manager exists and its checkPermission method doesn't allow reassigning of the standard input stream. ExampleOutput: file exist = true OK Next TopicJava-system-setout-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India