高级JAVA工程师笔试题

时间:2020-07-20 14:20:58 笔试题目 我要投稿

高级JAVA工程师笔试题

选择题

高级JAVA工程师笔试题

  1:Which is the main() method return of a application?

  A.String

  B.byte

  C.char

  D.void

  2:

  What will happen when you attempt to compile and run the following code?

  int Output = 10;

  boolean b1 = false;

  if((b1 == true) && ((Output += 10) == 20))

  {

  System.out.println("We are equal " + Output);

  }

  else

  {

  System.out.println("Not equal! " + Output);

  }

  Choices:

  What will happen when you attempt to compile and run the following code?

  int Output = 10;

  boolean b1 = false;

  if((b1 == true) && ((Output += 10) == 20))

  {

  System.out.println("We are equal " + Output);

  }

  else

  {

  System.out.println("Not equal! " + Output);

  }

  Choices:

  A.Compilation error, attempting to perform binary comparison on logical data type

  B.Compilation and output of "We are equal 10".

  C.Compilation and output of "Not equal! 20".

  D.Compilation and output of "Not equal! 10".

【高级JAVA工程师笔试题】相关文章:

Java高级工程师试题08-07

高级Java笔试题集合02-10

JAVA高级工程师笔试题及答案08-07

高级Java面试题汇总09-12

Java高级工程师面试题及答案10-24

Java工程师笔试题11-14

高级Java面试题及答案201608-09

Java工程师面试题11-09

Java高级工程师面试总结11-14

Java开发工程师上机笔试题04-17