+ 1

What is the difference between static bufferedreader and buffered reader??

17th May 2017, 12:28 PM
Dayon Daniel
Dayon Daniel - avatar
2 Answers
+ 2
It changes the scope of a method or attribute. With static, instead of belonging to the instance of the object, they belong to the whole class. It is important to take into consideration what parts of your program are doing what. You should generally split up your code into logically consistent chunks. This means separating code that deals with I/O from code that deals with core logic. Consequently, when designing any serious application, the static-variable approach might not be the best one.
17th May 2017, 1:04 PM
Felipe Cruz
Felipe Cruz - avatar
can you give me some example??
17th May 2017, 2:17 PM
Dayon Daniel
Dayon Daniel - avatar