找回密码
 FreeOZ用户注册
查看: 3892|回复: 19
打印 上一主题 下一主题

[招聘信息] 我的JAVA笔试题

[复制链接]
跳转到指定楼层
1#
发表于 27-3-2010 18:34:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?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.   (时间有限,未抄完......)

评分

参与人数 3威望 +50 收起 理由
cnlancer + 20 lz舍生取义啊,赞一个!
freefly111 + 10 谢谢分享!
wykdy + 20 谢谢分享!

查看全部评分

回复

使用道具 举报

2#
发表于 27-3-2010 18:55:23 | 只看该作者
貌似有些题目不好用语言表达。
回复

使用道具 举报

3#
发表于 27-3-2010 19:14:16 | 只看该作者
我只能说很变态。。。
回复

使用道具 举报

4#
发表于 29-3-2010 19:01:22 | 只看该作者
我也做了这份题,后来中介也没继续联系了。。。

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

[ 本帖最后由 101dot 于 29-3-2010 20:02 编辑 ]
回复

使用道具 举报

5#
发表于 29-3-2010 19:39:13 | 只看该作者
路过学习一下。
回复

使用道具 举报

6#
发表于 29-3-2010 21:41:13 | 只看该作者
考的就是细节和功力。
这样的题目主要考试对JAVA语言的掌握,好象没有涉及到J2EE。
回复

使用道具 举报

7#
发表于 31-3-2010 19:22:51 | 只看该作者
   感谢分享
回复

使用道具 举报

8#
发表于 31-3-2010 20:05:08 | 只看该作者
貌似很多都是具体细节,说实话,java的我记得一些,spring 的我都不怎么记得了。
回复

使用道具 举报

9#
发表于 1-4-2010 00:43:17 | 只看该作者
看来光会java远远不够啊
回复

使用道具 举报

10#
发表于 1-4-2010 09:28:40 | 只看该作者
很变态的说。
不知道对方招的是几年经验的。
或许经验多的不觉得变态
回复

使用道具 举报

11#
发表于 1-4-2010 10:26:23 | 只看该作者
Java的题目部分不查google我可以100%做对,其他的spring,hibernate, web service,不查google的话,大概50%能正确回答,剩下50%知道怎么回事,但是不可能很精确的回答。

楼主我教你一招,下次借一个3G手机,屏幕大上网快的,比如iphone,然后一边做一边查,如果你100分,就这个3个月contract职位肯定手到擒来。
回复

使用道具 举报

12#
发表于 1-4-2010 10:54:30 | 只看该作者
楼上的兄弟,果然高人。
架构师?
回复

使用道具 举报

13#
 楼主| 发表于 2-4-2010 20:19:09 | 只看该作者

回复 #11 hoopoos 的帖子

先谢谢楼上的高人,我这次是没戏了,在家充电,等待下次机会,看造化了。
回复

使用道具 举报

14#
发表于 11-4-2010 11:35:13 | 只看该作者
题目基本上还算比较基础。
当然有一些SPRING或者HIBERNATE语法或者配置文件的东西,如果不是经常手工配置,估计可能记得不清楚了。
回复

使用道具 举报

15#
发表于 13-4-2010 14:51:40 | 只看该作者
留脚印,学习
回复

使用道具 举报

16#
发表于 13-4-2010 14:59:01 | 只看该作者
基础的东西,工作再久也没用。。。

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

所以笔试前还是得复习复习,
回复

使用道具 举报

17#
发表于 13-4-2010 15:01:20 | 只看该作者

是人充电还是hoopoos 说的给iPhone充电啊
回复

使用道具 举报

18#
发表于 13-4-2010 15:09:26 | 只看该作者
回复

使用道具 举报

19#
发表于 13-4-2010 15:09:33 | 只看该作者
Thanks, I have added this topic to my favourate.
回复

使用道具 举报

20#
发表于 14-4-2010 01:03:10 | 只看该作者
感谢楼主的这些才料,!真是好人!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | FreeOZ用户注册

本版积分规则

小黑屋|手机版|Archiver|FreeOZ论坛

GMT+10, 28-8-2026 20:01 , Processed in 0.022776 second(s), 34 queries , Gzip On, Redis On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表