Type matching

Report a typo

Here is the code for a program that creates 3 variables of different types, but the values they are initialized with are missing. Set the proposed values in such a way that no type mismatch error occurs in the program.

Fill in the gaps with the relevant elements
public class Main {
  public static void main(String[] args) {
      String a = ;
      int b = ;
      double c = ;
      var d = ;
  }
}
128.0b + c128"128"

Create a free account to access the full topic