首页 试题广场 > 试题详情
单选题

下面的输出结果是什么?public class Demo {  public static void main(String args[])  {    String str=new String("hello");    if(str=="hello")    {      System.out.println("true");    }          else     {      System.out.println("false");    }  }}

  • A.TRUE
  • B.FALSE
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 11个回答
关闭
关闭

了解
畅学卡

手机端
学习