据说是华为公司招聘 java 开发人员时使用的一套面试题,感兴趣的可以看看。
关键词:JAVA 面试题 名企面试题 华为面试题
第一部分:选择题
QUESTION NO: 1
1、public class Test {
public stac void changeStr(String str){
str="welcome";
}
public stac void main(String[] args) {
String str="1234";
changeStr(str);
System.out.println(str);
}
}
Please write the output result :
1234
QUESTION NO:2
1. public class Test {
2. stac boolean foo(char c) {
3. System.out.print(c);
4. return true;
5. }
6. public stac void main( String[] argv ) {
评论3