Q2. How can you say that java is both a programming language and a platform?
Ans. Like any other programming language, we can use Java to write or create various types of computer applications. The word platform generally is used to refer to some combination of hardware and system software. The Java platform is a new software platform designed to deliver and run highly interactive, dynamic and secure applications on networked computer systems.