Java Language Fundamental - Quiz

  • Aweakly typed
  • Bstrogly typed
  • Cmoderate typed
  • D None of these
  • Aint [] myList = {"1", "2", "3"};
  • Bint [] myList = (5, 8, 2);
  • Cint myList [] [] = {4,9,7,0};
  • Dint myList [] = {4, 3, 7};
  • Aclass, if, void, long, Int, continue
  • Bgoto, instanceof, native, finally, default, throws
  • Ctry, virtual, throw, final, volatile, transient
  • D strictfp, constant, super, implements, do
  • Apublic double methoda();
  • Bpublic final double methoda();
  • Cstatic void methoda(double d1);
  • Dprotected void methoda(double d1);
  • A16 bit
  • B32 bit
  • C64 bit
  • DDepends on execution environment
  • Avoid
  • BA class object in which it is defined.
  • CThere is no return type.
  • DNone of the above
  • ANo, Multiple exceptions cannot be handled in a single block
  • BYes, likeexcept [ NameError, SyntaxError, ...]
  • CYes, likeexcept NameError, SyntaxError, …
  • DYes, likeexcept ( NameError, SyntaxError, ...)