登录
|
注册
公司
标签
文章
搜索
Java
热门公司
百度
迅雷
阿里巴巴
腾讯
网易
京东
热门职位
C语言工程师
研发工程师
C#工程师
iOS
测试工程师
Android
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
2275
实现或继承了collection接口的是() map List vector Iterator Set ...
阅读题目
Java
2015
多选题
经典指数
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
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
单选题
经典指数
1
0
3423
以下程序段执行后将有()个字节被写入到文件afile.txt中。 try { FileOutputStream fos = new FileOutputStream("afile.txt"); DataOutputStream dos = new DataOutputStream(fos); dos.writeInt(3); dos.writeChar(1); dos.close(); fos.close(); } catch (IOException e) {} 3 5 6 不确定,与软硬件环境相关 ...
阅读题目
Java
搜狐
单选题
经典指数
1
0
2544
java中下面哪个能创建并启动线程() public class MyRunnable implements Runnable { public void run() { //some code here } } new Runnable(MyRunnable).start() new Thread(MyRunnable).run() (new Thread(new MyRunnable()).start() new MyRunnable().start() ...
阅读题目
Java
2015
单选题
经典指数
1
0
1953
What will happen when you attempt to compile and run the following code? public class test{ static{ int x=5; } static int x,y; public static void main(String args[]){ x--; myMethod( ); System.out.println(x+y+ ++x); } public static void myMethod( ){ y=x++ + ++x; } } compiletime error prints:1 prints:2 prints:3 prints:7 prints:8 ...
阅读题目
Java
阿里巴巴
单选题
经典指数
1
0
2249
String与StringBuffer的区别。 String是不可变的对象,StringBuffer是可以再编辑的 String是常量,StringBuffer是变量 String是可变的对象,StringBuffer是不可以再编辑的 以上说法都不正确 ...
阅读题目
Java
京东
多选题
经典指数
1
1
4057
ArrayLists和LinkedList的区别,下述说法正确的有? ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。 对于随机访问get和set,ArrayList觉得优于LinkedList,因为LinkedList要移动指针。 对于新增和删除操作add和remove,LinedList比较占优势,因为ArrayList要移动数据。 ArrayList的空间浪费主要体现在在list列表的结尾预留一定的容量空间,而LinkedList的空间花费则体现在它的每一个元素都需要消耗相当的空间。 ...
阅读题目
Java
阿里巴巴
链表
多选题
经典指数
1
0
1941
简述国际化程序的实现思路? ...
阅读题目
Java
阿里巴巴
淘宝
问答题
经典指数
<<
<
1
2
3
4
5
6
>
>>
285
题目数
1
贡献者
307
答案数
扫描后移动端查看
我也分享一个题目
相关标签
百度
C语言工程师
迅雷
2015
阿里巴巴
腾讯
研发工程师
网易
2016
京东
同类标签
javascript
html
Linux
C#
Jquery
PHP
c++
Python
操作系统
sql
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录