Debian, alternatives, change defaults for editor or browser

From Andreida

for example for the default editor:

update-alternatives --config editor

your java version:

 update-alternatives --config java

and so on.