|
|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册
x
这周三被悉尼的一个小中介拉去做笔试题,算是第一轮的interview了,这个职位是optus的一个三个月的contract role,要求JAVA/J2EE/Spring/Hibernate/Webservice/Portal,我之前没有做过portal和webservice,去一看题就傻眼了。给我一个小时的答题时间,给我单独一个小屋,我大约用了30分钟把java相关的题都答了,剩下的实在不会,估计也pass的机会不大,就抄了一份题回来跟大家分享。
J2SE:
1. Implement equals() method for the following class:
Public class Person {
Int id;
String name;
ArrayList<String> otherName;
//implement the equals() method here….
2. What the difference between String and StringBuffer?
3. Is this valid in java1.5+?
Public class Customer extends User{
//some implementation code
}
List<Customer> customerList = new ArrayList<Customer>();
User user = new User();
customerList.add(user);
4. Complete the following code to print Person id and name(assume that Person class will have getId() and getName() method to get id and name)
List<Person> customerList = getCustomerListFromSomewhere();
For(//complete code here)
{
//complete code here
}
5. Define a JDK1.5+ enum customerClassEnum, which will have the enumeration value of A,B,C
6. How to make a class serialable?
Spring:
1. What are the available transaction types in spring transaction?
2. From the spring context xml file, describe the usage of the following elements:
a: context: property-placeholder
b: context: component-scan
3. what is singleton bean and how can you create a prototype bean?
4. Can we initialize a HashMap with some key-value pairs, within the spring xml file?
a. Give some syntax
Hibernate
1. What is the usage of version column in hibernate mapped tables?
2. What is a detached object in hibernate context?
3. What is cascade operation in hibernate? What is delete-orphan cascade operation?
4. What is the difference between refresh () and load () method, given by hibernate session?
WebService:
1. In web services context, what is WSDL and what is SOAP message?
2. What are the two major parts of a SOAP message? In the soap message, where you can see the Security related tag?
3. What are the major components in a WSDL file
4. What are REST web service? In REST full web service context , conventionally, what are import HTTP methods?
Portal:
1. Name two common spring MVC controllers that handle form submission
2. Name some implicit objects in JSP
3. (时间有限,未抄完......) |
评分
-
查看全部评分
|