+ 1
What is the difference between static bufferedreader and buffered reader??
2 Antworten
+ 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.
0
can you give me some example??