Java Language Fundamental - Quiz

  • A method
  • B native
  • C subclasses
  • D reference
  • A String s1 = null;
  • B String s2 = 'null';
  • C String s3 = (String) 'abc';
  • D String s4 = (String) '\ufeed';
  • A interface
  • B string
  • C Float
  • D unsigned
  • A public double methoda();
  • B public final double methoda();
  • C static void methoda(double d1);
  • D protected void methoda(double d1);
  • A int [] myList = {"1", "2", "3"};
  • B int [] myList = (5, 8, 2);
  • C int myList [] [] = {4,9,7,0};
  • D int myList [] = {4, 3, 7};