This is a student answer sheet from SRM Institute of Science and Technology for the course 21CSC203P Advanced Programming. It covers SLO 2 on language classification. The document contains a written answer explaining why Java is both compiled and interpreted, including the role of the Java compiler and JVM. It also includes an example Java program and explains the conversion to bytecode. A table…
This document is a student answer sheet from SRM Institute of Science and Technology, Department of Computational Intelligence, for the course 21CSC203P Advanced Programming. It is submitted by student Ananya Adini (Reg. No. RA2511003011305) from B.Tech Computer Science and Engineering, Section B2. The sheet addresses SLO 2 on language classification.
The first part contains a written answer classifying Java as both compiled and interpreted. It explains that Java source code is compiled by javac into platform-independent bytecode, which the JVM then executes through interpretation or JIT compilation into native machine code.
The document includes an example Java program (Hello World) and describes the conversion process: saving the source file, compiling with javac to generate Hello.class bytecode, and JVM execution.
A comparison table lists features of low-level languages (machine language, Assembly) versus high-level languages (Java, C, C++, Python). It covers meaning, portability, ease of programming, and abstraction levels. The conclusion states that low-level languages offer hardware control while high-level languages provide easier programming through abstraction.