Java Language Fundamental

Programming Language > Java Programming Language

Assess your understanding of fundamental Java concepts with these multiple choice questions. Learn about the basics of the Java language and how to use it to create efficient and effective programs. Take the quiz now! ➲ Java Language Fundamental - Quiz


  • A weakly typed
  • B strogly typed
  • C moderate typed
  • D None of these
  • A interface
  • B string
  • C Float
  • D unsigned
  • A method
  • B native
  • C subclasses
  • D reference
  • 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};
  • A class, if, void, long, Int, continue
  • B goto, instanceof, native, finally, default, throws
  • C try, virtual, throw, final, volatile, transient
  • D strictfp, constant, super, implements, do
  • A 1, 2, 3, 4
  • B 1, 3, 4, 5
  • C 2, 4, 5, 6
  • D 3, 4, 5, 6
  • A 1, 2, 4
  • B 2, 4, 5
  • C 2, 3, 4
  • D All are correct.
  • A 1, 2 and 3
  • B 2, 3 and 4
  • C 3, 4 and 5
  • D 4, 5 and 6
  • A Array a = new Array(5);
  • B int [] a = {23,22,21,20,19};
  • C int a [] = new int[5];
  • D int [5] array;
  • A 1, 2, 4
  • B 1, 3, 6
  • C 3, 5
  • D 5 only
  • A public double methoda();
  • B public final double methoda();
  • C static void methoda(double d1);
  • D protected void methoda(double d1);
  • A boolean b1 = 0;
  • B boolean b2 = 'false';
  • C boolean b3 = false;
  • D boolean b4 = Boolean.false();
  • A 1, 2, 4
  • B 2, 3, 5
  • C 1, 3, 6
  • D 2, 4, 6
  • A String s1 = null;
  • B String s2 = 'null';
  • C String s3 = (String) 'abc';
  • D String s4 = (String) '\ufeed';
  • A -128 to 127
  • B -(215) to (215) - 1
  • C 0 to 32767
  • D 0 to 65535
  • A args[2] = 2
  • B args[2] = 3
  • C args[2] = null
  • D An exception is thrown at runtime.
  • A Hello
  • B Hello Foo91
  • C Hello world
  • D The code does not run.
  • A null
  • B theDogs
  • C Compilation fails
  • D An exception is thrown at runtime
  • A 10, 9, 8, 7, 6,
  • B 9, 8, 7, 6, 5,
  • C Compilation fails.
  • D An exception is thrown at runtime.
  • A 0 1 2
  • B 1 2 3
  • C 0 0 0
  • D An exception is thrown at runtime
  • A 7
  • B 9
  • C 11
  • D 13
  • A names
  • B null
  • C Compilation fails
  • D An exception is thrown at runtime
  • A 16 bit
  • B 32 bit
  • C 64 bit
  • D Depends on execution environment
  • A void
  • B A class object in which it is defined.
  • C There is no return type.
  • D None of the above
  • A 2
  • B 4
  • C 10
  • D 8