Question: ( 1 2 points ) Give a brief answer for each of the following questions: a ) What is the difference between an interpreted language

(12 points) Give a brief answer for each of the following questions:
a) What is the difference between an interpreted language and a compiled
language?
b) What does JDK stand for? What does JRE stand for?
c) What is the Java source filename extension, and what is the Java bytecode
filename extension?
d) What is the command to compile a Java program?
e) What is the command to run a Java program?
f) What is the JVM?
g) If your program needs to read integers, but the user entered strings, an error
would occur when running this program. What kind of error is this?
h) Show the output of the following code:
double amount =5;
System.out.println(amount /2);
System.out.println(5/2);
i) Can the following conversions involving casting be allowed?
boolean b = true;
i =(int)b;
int i =1;
boolean b =(boolean)i;
j) What data types are required for a switch variable? If the keyword break is
not used after a case is processed, what is the next statement to be executed?
k) What is y after the following switch statement is executed? Rewrite the code
using an if-else statement.
x =3; y =3;
switch (x +3){
case 6: y =1;
default: y +=1;
}
l) Why does the Math class not need to be imported?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!