Which expressions will evaluate to true if preceded by the f

题目
多选题
Which expressions will evaluate to true if preceded by the following code?()   String a = "hello";   String b = new String(a);   String c = a;   char[] d = { ’h’, ’e’, ’l’, ’l’, ’o’ };
A

(a == Hello)

B

(a == b)

C

(a == c)

D

a.equals(b)

E

a.equals(d)

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

By default, which two statements are true about export routing polices?()

A. Export polices can evaluate only active routes

B. Export polices can evaluate all routes

C. Export polices can be applied to the forwarding table

D. Export polices can be applied to interfaces


参考答案:A, C

第2题:

Which expressions will evaluate to true if preceded by the following code?()   String a = "hello";   String b = new String(a);   String c = a;   char[] d = { ’h’, ’e’, ’l’, ’l’, ’o’ };  

  • A、(a == "Hello")
  • B、(a == b)
  • C、(a == c)
  • D、a.equals(b)
  • E、a.equals(d)

正确答案:C,D

第3题:

Which one in the following expressions in Not True?

A、As wise as a fox.

B、As strong as a horse.

C、As happy as a lark.

D、As stupid as a goose.


参考答案:A

第4题:

Integer i = new Integer (42);  Long 1 = new Long (42);  Double d = new Double (42.0);   Which two expressions evaluate to True?()

  • A、 (i ==1)
  • B、 (i == d)
  • C、 (d == 1)
  • D、 (i.equals (d))
  • E、 (d.equals (i))
  • F、 (i.equals (42)

正确答案:D,E

第5题:

Given:  Integer i = new Integer (42);  Long l = new Long (42);  Double d = new Double (42.0);   Which two expression evaluate to true?()

  • A、 (i = = l)
  • B、 (i = = d)
  • C、 (d = = l)
  • D、 (i.equals(d))
  • E、 (i.equals(i))
  • F、 (i.equals(42))

正确答案:D,E

第6题:

Given: 11.<% 12.request.setAttribute("vals", new String[]{"1","2","3","4"}); 13.request.setAttribute("index", "2"); 14.%> 15.<%-- insert code here --%> Which three EL expressions, inserted at line 15,are valid and evaluate to "3"?()

  • A、${vals.2}
  • B、${vals["2"]}
  • C、${vals.index}
  • D、${vals[index]}
  • E、${vals}[index]
  • F、${vals[vals[index-1]]}

正确答案:B,D,F

第7题:

Given a web application in which the request parameter productID contains a product identifier. Which twoEL expressions evaluate the value of the productID?()

  • A、${productID}
  • B、${param.productID}
  • C、${params.productID}
  • D、${params.productID[1]}
  • E、${paramValues.productID}
  • F、${paramValues.productID[0]}

正确答案:B,F

第8题:

Which of the following calendaring syntax expressions would evaluate to the last day of every month?()

A. FREQ = MONTHLY; BYMONTHDAY = 31

B. FREQ = MONTHLY; BYMONTHDAY = -1

C. FREQ = DAILY; BYDAY = -1

D. FREQ = MONTHLY; BYDAY = 31

E. FREQ = DAILY; BYMONTHDAY = LAST_DAY


参考答案:B

第9题:

public static void main( String[] args ) {  Integer a = new Integer(10);  Integer b = new Integer(10);  Integer c = a;  int d = 10;  double e = 10.0;  }   Which three evaluate to true?()   

  • A、 (a == c)
  • B、 (d == e)
  • C、 (b == d)
  • D、 (a == b)
  • E、 (b == c)
  • F、 (d == 10.0)

正确答案:A,B,F

第10题:

Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()

  • A、 ${product ID}
  • B、 ${param.productID}
  • C、 ${params.productID}
  • D、 ${params.productID[1]}
  • E、 ${paramvalues.productID}
  • F、 ${paramValues.productID[0]}
  • G、 ${pageContext.request.productID}

正确答案:B,F

更多相关问题