av手机免费在线观看,国产女人在线视频,国产xxxx免费,捆绑调教一二三区,97影院最新理论片,色之久久综合,国产精品日韩欧美一区二区三区

JAVA認證

Java考試格林練習試題

時間:2024-10-21 03:14:57 JAVA認證 我要投稿
  • 相關推薦

Java考試格林練習試題

  question 6)

Java考試格林練習試題

  which of the following are keywords or reserved words in java?

  1) if

  2) then

  3) goto

  4) while

  5) case

  question 7)

  which of the following are legal identifiers

  1) 2variable

  2) variable2

  3) _whatavariable

  4) _3_

  5) $anothervar

  6) #myvar

  question 8)

  what will happen when you compile and run the following code?

  public class myclass{ static int i; public static void main(string argv[]){ system.out.println(i); }}

  1) error variable i may not have been initialized

  2) null

  3) 1

  4) 0

  question 9)

  what will happen if you try to compile and run the following code?

  public class q { public static void main(string argv[]){ int anar[]=new int[]{1,2,3}; system.out.println(anar[1]); }}

  1) 1

  2) error anar is referenced before it is initialized

  3) 2

  4) error: size of array must be defined

  question 10)

  what will happen if you try to compile and run the following code?

  public class q { public static void main(string argv[]){ int anar[]=new int[5]; system.out.println(anar[0]); }}

  1) error: anar is referenced before it is initialized

  2) null

  3) 0

  4) 5

【Java考試格林練習試題】相關文章:

華為Java上機考試題08-19

sun java認證考試題庫09-04

2017年java程序員考試試題07-05

JAVA模擬試題及答案07-10

2017年sql認證考試練習試題07-17

php練習筆試題08-18

sun認證java基礎模擬試題09-16

2016年JAVA面試題09-08

java基礎面試題201708-10

Java認證經(jīng)典面試題目09-23