Question:Take a close look at the following code. Which one will provide the addition activity?
A class Calculator{
public static void main(String args[]){
adds(10,10);
}
public static void adds(int a,int b){
System.out.println(a+b);
}
}B class Calculator{
public static void main(String args[]){
adds(10,10);
}
public static void adds(){
System.out.println(a+b);
}
}C class Calculator{
public static void main(String args[]){
adds(10,10);
}
}D None of the above
+ AnswerA
+ Report