Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer questions 1 to 7 on a word file; write a program for each of Q.8 - Q.10. 1. (13 points) Give a brief answer

image text in transcribed

Answer questions 1 to 7 on a word file; write a program for each of Q.8 - Q.10. 1. (13 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 RE 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) Explain the two compilation phases of Java programs. 9) Show the output of the following code: double amount - System.out.println amount/2); System.out.println(5/2) h) 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? 1) 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 } ) Why does the Math class not need to be imported

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions