interview questions

来源:互联网 发布:淘宝注册打电话验证170 编辑:程序博客网 时间:2024/05/18 01:31
 

1.what is the key work static meaning in java, if there is the mutiple access to the static field, should the methord to be synchronized.?
2.what is the difference between StirngBuffer and StringBuilder?
3.what is the difference between the above two classed an the common Stirng?
4.Is there the java memory leak in java writting applications
5.is there any way that can be used to avoid the memory leak?
6.have you used the thread pool. what is this used for?
7.what is the thread dump used for?
8.truncate and delete 's difference. what is the rool back mean?
9.how to call store procedure in java?
10.procedure language and oo language
11.composition and aggrevgation .oo concept
12.why somebody create interface without property an methords?
13.singleton concept in java . how do you make the object into singleton.
14.exceptions in java
15.what is hibernate , how do you put the relations in the hibernate
16.what is the hibernate cache? what is the level two cache?
17.what is the difference between http and https, how the https work?

 

18:下面函数的输出结果:
public class ReferenceTest {

 /**
  * @param args
  */
 public static void main(String[] args) {
     String aa = "123456";
     char str[]={'a','b','v'};
        changeRef(aa, str);
        System.out.println(aa);
        System.out.println(str);
 }

 private static void changeRef(String aa, char[] str) {
  aa = "98765";
  str[0]= 'A';
  
 }

}

输出:

123456
Abv

原创粉丝点击