CGI interview question

Is Java Platform Independent if then how?