Question: Write a program to evaluate the following expressions and print out the results. Your program should store the result into a variable and then print
Write a program to evaluate the following expressions and print out the results.
Your program should store the result into a variable and then print out the variable. Make sure to select the proper type of variable Stringintdoubleetc
Hint: while not required, I would suggest that you try to predict the answer to each one before it prints out for practice.
For example, the answer to the first line would be
System.out.println; Answer is because the difference is printed out
"hello"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
