FreeOZ论坛

标题: 我的JAVA笔试题 [打印本页]

作者: oceansky263    时间: 27-3-2010 19:34
标题: 我的JAVA笔试题
这周三被悉尼的一个小中介拉去做笔试题,算是第一轮的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.   (时间有限,未抄完......)
作者: wykdy    时间: 27-3-2010 19:55
貌似有些题目不好用语言表达。
作者: barracude    时间: 27-3-2010 20:14
我只能说很变态。。。
作者: 101dot    时间: 29-3-2010 20:01
我也做了这份题,后来中介也没继续联系了。。。

做之前中介交代要写整齐一些,因为要扫描了发给雇主看,可是我写得。。。丑的不能再丑了。。。

[ 本帖最后由 101dot 于 29-3-2010 20:02 编辑 ]
作者: felix100    时间: 29-3-2010 20:39
路过学习一下。
作者: ma.qy    时间: 29-3-2010 22:41
考的就是细节和功力。
这样的题目主要考试对JAVA语言的掌握,好象没有涉及到J2EE。
作者: notro2005    时间: 31-3-2010 20:22
   感谢分享
作者: bfox    时间: 31-3-2010 21:05
貌似很多都是具体细节,说实话,java的我记得一些,spring 的我都不怎么记得了。
作者: laysman    时间: 1-4-2010 01:43
看来光会java远远不够啊
作者: 周星星1832    时间: 1-4-2010 10:28
很变态的说。
不知道对方招的是几年经验的。
或许经验多的不觉得变态
作者: hoopoos    时间: 1-4-2010 11:26
Java的题目部分不查google我可以100%做对,其他的spring,hibernate, web service,不查google的话,大概50%能正确回答,剩下50%知道怎么回事,但是不可能很精确的回答。

楼主我教你一招,下次借一个3G手机,屏幕大上网快的,比如iphone,然后一边做一边查,如果你100分,就这个3个月contract职位肯定手到擒来。
作者: NEUTRAL    时间: 1-4-2010 11:54
楼上的兄弟,果然高人。
架构师?
作者: oceansky263    时间: 2-4-2010 21:19
标题: 回复 #11 hoopoos 的帖子
先谢谢楼上的高人,我这次是没戏了,在家充电,等待下次机会,看造化了。
作者: islandhill    时间: 11-4-2010 12:35
题目基本上还算比较基础。
当然有一些SPRING或者HIBERNATE语法或者配置文件的东西,如果不是经常手工配置,估计可能记得不清楚了。
作者: etangzhang    时间: 13-4-2010 15:51
留脚印,学习
作者: bigapple2008    时间: 13-4-2010 15:59
基础的东西,工作再久也没用。。。

好比让你写一个strcmp的实现,如果没去看过,工作n多年,也还是写不全的

所以笔试前还是得复习复习,
作者: ljbit    时间: 13-4-2010 16:01
原帖由 oceansky263 于 2-4-2010 20:19 发表
先谢谢楼上的高人,我这次是没戏了,在家充电,等待下次机会,看造化了。

是人充电还是hoopoos 说的给iPhone充电啊
作者: jfding    时间: 13-4-2010 16:09

作者: uniwg    时间: 13-4-2010 16:09
Thanks, I have added this topic to my favourate.
作者: 长腿兔子    时间: 14-4-2010 02:03
感谢楼主的这些才料,!真是好人!




欢迎光临 FreeOZ论坛 (https://www.freeoz.org/ibbs/) Powered by Discuz! X3.2