Apt-get-update before installation and apt-get-clean after

`apt-get -qyy install openjdk-7-jdk maven -y` why do you need second `-y` ?