Take Home Assignment 01
Take Home Assignment 01
ASSIGNMENT NAME
Programming fundamentals
ASSIGNMENT NO - 01
NUMBER OF QUESTIONS: 10
NUMBER OF COMPLETED QUESTIONS: 10
NUMBER OF REMAINING QUESTIONS: 00
a) java
b) javac
c) .java
d) .class
e) bytecodes
02.)
By using compiler, we can convert high level language to low level language (source code to machine
language)
03.)
C Java
C is a compiles language Java is an interpreted language
C is a procedural programing language Java is an object-oriented language
C is a middle level language Java is a high-level language
04.)
Yes.
Java is platform-independent because it uses a virtual machine. In java, the main point here is that
the JVM depends on the operating system. Different OS have different JVMs so that Java can run in
any OS.
05.)
Java interpreter
Java is a platform-independent programming language. It implies that Java can be used on platforms
that support Java interpreters. It is the cause of Java's platform independence. The Java interpreter
transforms the Java bytecode (.class file) into operating system-friendly code.
O/S interpreter
A command interpreter allows the user to communicate with a program using text-based
commands. Modern graphical user interfaces and menu-driven interfaces, however, have taken the
place of numerous command interpreters.
06.)
The process of compiling a Java program entail transforming the programmer-readable language in
your program file (often referred to as source code) into bytecodes, which are instructions for the
Java Virtual Machine that are independent of the platform.
07.)
iv.) To run your program that you've just compiled type the command below in terminal:
java filename
08.)
There can be an error with Manoj’s JRE. A runtime environment is required for software programs to
give them access to memory and other system resources like program files and dependencies.
09.) First create java class as Example and then print “Hello Java in main function.
10.)