Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the use of System class in java?Can we override system class?

user-image
Question ajoutée par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date de publication: 2014/01/13
Pavithra Rani Chamarthi
par Pavithra Rani Chamarthi , assistant project , MATRIX TECHNOLOGIES

1...It is generally used when two packages have same class name..   E.g...e java.util....a packge namd java that contains many classes like system, string, reader...

Hatim Laxmidhar
par Hatim Laxmidhar , Self Employed , The Way It Works

 

 

  The System class provides various utitliy methods and objects. e.g. 1) standard input/output 2) you can access all system properties and environment variables 3) You can load files and libraries 4) You can opcy an array.

 

No it can not be overridden, as it is a final class.

More Questions Like This