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, 6 months agoshivkumarx
Most Recent 3 months, 2 weeks agoasdfjhfgjuaDCV
4 months, 1 week agosteefaand
5 months, 1 week agoiSnover
5 months, 3 weeks agosamtash1034
2 years, 6 months agotamanna786
2 years, 9 months ago