摘要: Question:16Given:1.publicclassTestSevenextendsThread{2.privatestaticintx;3.publicsynchronizedvoiddoThings(){4.intcurrent=x;5.current++;6.x=current;7.}... 阅读全文
posted @ 2014-04-18 16:19 Fresher_Z 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Question:11Given:10.packagecom.sun.scjp;11.publicclassGeodetics{12.publicstaticfinaldoubleDIAMETER=12756.32;//kilometers13.}Whichtwocorrectlyaccessthe... 阅读全文
posted @ 2014-04-18 16:17 Fresher_Z 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 其实不是新题才有研究价值的,java这东西向下兼容很好,不同python,很多东西还是继续沿用的。。。。。旧的还没学好就别谈新的了。Question:8Given10.classFoo{11.staticvoidalpha(){/*morecodehere*/}12.voidbeta(){/*mor... 阅读全文
posted @ 2014-04-18 16:13 Fresher_Z 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 今天很郁闷,小伙伴大清早就去腾讯实习一面了,把我吵醒,我看了手机,依然是没有面试通知,看看微信,依然是“你正处于初试环节……面试官正处理你的应聘流程”,应聘的是TEG的运营开发,从昨晚开始的我觉得应该还没发吧,到现在已经开始绝望了。我只想说,这是过没过啊,就不能给我个痛快?难道真的得下午过去霸面... 阅读全文
posted @ 2014-04-15 11:45 Fresher_Z 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 阿里电面虽然java基本能够回答出来,但是后来的java竞赛里面发现居然还有些题要google和百度,被打击了,为了下次能够在阿里面试里面翻身,为了帮小师妹打比赛,好好学java。每天做一下scjp或者ocjp题目,顺便记一下api。环境:Jdk1.7u51先是scjp1.5,然后就是310-055... 阅读全文
posted @ 2014-04-14 21:40 Fresher_Z 阅读(787) 评论(2) 推荐(0) 编辑
摘要: Pattern annotationLinePattern = Pattern.compile("^\\s*(//)+");//位于代码行后面的双斜杠无法匹配 Pattern annotationLinePattern1 = Pattern.compile(... 阅读全文
posted @ 2013-11-06 22:25 Fresher_Z 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 写一段bash shell,从键盘输入学生成绩,显示相应的等级。。。可以输入多个,用空格隔开即可#!/bin/bash#by zyfunction iscontinue(){while truedoecho -n "continue?(Y/N)"read opcase $op in[Yy]) ret... 阅读全文
posted @ 2013-11-05 07:35 Fresher_Z 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#set -xvfunction welcome(){ echo "Use one of the following options:" echo "P: To display current directory" echo "S: T... 阅读全文
posted @ 2013-11-04 21:56 Fresher_Z 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 0x00 题外每天备战考研的日子,真是苦逼啊。不过离考试所剩实践也不多了0x011、设置windowIP地址为192.168.3.XX,掩码24位。2、设置LinuxIP地址为192.168.3.YY,掩码24位。window与Linux互相ping通。3、在linux中开通telnet和vsftp... 阅读全文
posted @ 2013-10-29 22:03 Fresher_Z 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 0x00今天又收到小伙伴的linux实验题0x01实验环境,centos,预装crontab0x021、创建组testgroup;[root@centos ~]# groupadd testgroup[root@centos ~]# cat /etc/grouprvm:x:501:testgroup... 阅读全文
posted @ 2013-10-22 20:45 Fresher_Z 阅读(171) 评论(0) 推荐(0) 编辑