Answered step by step
Verified Expert Solution
Question
1 Approved Answer
With the following variables declared and initialized... double dVar1 = 25.0, dVar2 = 2.5; int iVar1 = 15, iVar2 = 30; String s1 = hi,
With the following variables declared and initialized...
double dVar1 = 25.0, dVar2 = 2.5; int iVar1 = 15, iVar2 = 30; String s1 = "hi", s2 = "there";
...show what is printed for at least 5 of the 6 following statements:
a) System.out.println( (iVar1/iVar2) > (iVar2%iVar1) );
b) System.out.println( s2.length() + s1 + dVar2 );
c) System.out.println( (int) (dVar2 / s1.length()) );
d) System.out.println( s2 + " is " + iVar2 * dVar2 );
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started