登录
|
注册
公司
标签
文章
搜索
Java
热门公司
百度
迅雷
阿里巴巴
腾讯
网易
京东
热门职位
C语言工程师
研发工程师
C#工程师
iOS
测试工程师
Android
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
2
0
11132
下列java程序的输出结果为____。 public class Example{ String str=new String("hello"); char[]ch={'a','b'}; public static void main(String args[]){ Example ex=new Example(); ex.change(ex.str,ex.ch); System.out.print(ex.str+" and "); Sytem.out.print(ex.ch); } public void change(String str,char ch[]){ str="test ok"; ch[0]='c'; } } hello and ab hello and cb hello and a test ok and ab test ok and cb test ok and c ...
阅读题目
Java
阿里巴巴
2016
研发工程师
单选题
经典指数
1
0
2275
实现或继承了collection接口的是() map List vector Iterator Set ...
阅读题目
Java
2015
多选题
经典指数
1
0
17875
下面程序的运行结果是 String str1 = "hello"; String str2 = "he" + new String("llo"); System.err.println(str1 == str2); true false exception 无输出 ...
阅读题目
Java
单选题
经典指数
1
1
11274
执行以下程序后的输出结果是() public class Test { public static void main(String[] args) { StringBuffer a = new StringBuffer("A"); StringBuffer b = new StringBuffer("B"); operator(a, b); System.out.println(a + "," + b); } public static void operator(StringBuffer x, StringBuffer y) { x.append(y); y = x; } } A,A A,B B,B AB,B ...
阅读题目
Java
奇虎360
2016
单选题
经典指数
2
1
6269
默认RMI采用的是什么通信协议? HTTP UDP/IP TCP/IP Multicast ...
阅读题目
Java
阿里巴巴
网络基础
单选题
经典指数
2
0
5514
在java7中,下列不能做switch()的参数类型是? 整型 枚举类型 字符串 浮点型 ...
阅读题目
Java
腾讯
基础知识
多选题
经典指数
1
0
2939
Consider the following code: String s=null; Which code fragments cause an object of type NullPointerException to be thrown? if((s!=null)&(s.length()>0)) if((s!=null)&&(s.length()>0)) if((s==null)|(s.length()==0)) if(s==null)||(s.length()==0)) ...
阅读题目
Java
迅雷
多选题
经典指数
1
0
4098
假设如下代码中,若t1线程在t2线程启动之前已经完成启动。代码的输出是() public static void main(String[]args)throws Exception { final Object obj = new Object(); Thread t1 = new Thread() { public void run() { synchronized (obj) { try { obj.wait(); System.out.println("Thread 1 wake up."); } catch (interruptedException e) { } } } }; t1.start(); Thread.sleep(1000);//We assume thread 1 m ...
阅读题目
Java
搜狐
操作系统
并发
面试题
经典指数
1
0
9511
关于ThreadLocal以下说法正确的是 ThreadLocal继承自Thread ThreadLocal实现了Runnable接口 ThreadLocal重要作用在于多线程间的数据共享 ThreadLocal是采用哈希表的方式来为每个线程都提供一个变量的副本 ThreadLocal保证各个线程间数据安全,每个线程的数据不会被另外线程访问和破坏 ...
阅读题目
Java
迅雷
操作系统
多选题
经典指数
2
1
4411
对于一个已经不被任何变量引用的对象,当垃圾回收器准备回收该对象所占用的内存时,将自动调用该对象的哪个方法() finalize notify notifyAll hashCode ...
阅读题目
Java
2015
新浪微博
单选题
经典指数
<<
<
1
2
3
4
5
6
>
>>
313
题目数
1
贡献者
307
答案数
扫描后移动端查看
我也分享一个题目
相关标签
百度
C语言工程师
迅雷
2015
阿里巴巴
腾讯
研发工程师
网易
2016
京东
同类标签
javascript
html
Linux
C#
Jquery
PHP
c++
Python
操作系统
sql
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录