Question: Which cause a compilation error? ( Choose two ) public interface TestInterface { double taxRate = 0 . 0 5 ; default void increaseTax (

Which cause a compilation error? (Choose two)
public interface TestInterface {
double taxRate =0.05;
default void increaseTax(){
taxRate = taxRate +0.01;
}
}
public interface TestInterface {
static double taxRate =0.05;
abstract void increaseTax();
}
public interface TestInterface {
double taxRate =0.05;
void increaseTax();
}
public abstract class testClass {
double taxRate =0.05;
public void increaseTax(){
taxRate = taxRate +0.01;
}
}
public abstract class testClass {
double taxRate =0.05;
abstract void increaseTax(){
taxRate = taxRate +0.01;
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!