Given:
class RateOfInterest {
public static void main (String[] args) {
int rateOfInterest = 0;
String accountType = "LOAN";
switch (accountType) {
case "RD";
rateOfInterest = 5;
break;
case "FD";
rateOfInterest = 10;
break;
default:
assert false: "No interest for this account"; //line n1
}
System.out.println ("Rate of interest:" + rateOfInterest);
}
}
and the command:
java ""ea RateOfInterest
What is the result?
adnano1234
Highly Voted 4 years, 11 months agoshivkumarx
Most Recent 9 months agoasdfjhfgjuaDCV
9 months, 3 weeks agosteefaand
10 months, 3 weeks agoiSnover
11 months agosamtash1034
2 years, 11 months agotamanna786
3 years, 2 months ago