S
Stefan Ram
Instance methods! They make the difference between
object-oriented programming in Java and procedural
programming in Java (according to the common believes).
And OOP is better than procedural programming, so we must
use instance methods! (according to the common believes)
Yet Sun or Oracle has moved the non-static exists() method
of java.nio.file.Path (of the early 1.7 versions of Java)
to the static exists() method of java.nio.file.Files (of the
current version of Java).
What might have been the reason for which they have done this?
object-oriented programming in Java and procedural
programming in Java (according to the common believes).
And OOP is better than procedural programming, so we must
use instance methods! (according to the common believes)
Yet Sun or Oracle has moved the non-static exists() method
of java.nio.file.Path (of the early 1.7 versions of Java)
to the static exists() method of java.nio.file.Files (of the
current version of Java).
What might have been the reason for which they have done this?