论坛首页 招聘求职论坛

遇到这3道笔试题,大家有把握能做对几道

浏览 24976 次
精华帖 (0) :: 良好帖 (10) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-07-18  
make_miracles 写道
第二题
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
try
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
try
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallyfinally
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
try
trycatchfinallycatch
trycatchfinallyfinally
trycatchfinallycatch
try
trycatchfinallycatch

在我结束它的时候它还没有打印完呢。

你的测试好有问题,表示无语
0 请登录后投票
   发表时间:2011-07-18  
我不想说什么了...这哪家公司搞这么无聊的面试题啊?不让我们活了?
0 请登录后投票
   发表时间:2011-07-18  
第三题
int A;
if(false)
A = 1;
System.out.println(A); //由于A没有初始化而编译出错
0 请登录后投票
   发表时间:2011-07-18  
三问题都在意料之外,我太菜啦,哎,望有高人对三题给予解释
0 请登录后投票
   发表时间:2011-07-18  
lbay 写道
是加完后整个代码第2行? 还是就是这句sysout 报错?


你想的太多了
0 请登录后投票
   发表时间:2011-07-18  
freish 写道
java_林 写道
第一题前面有人说的很清楚了
第二题为什么没有栈溢出?

必须有啊,你在catch里sysout后面设置一个断点,然后debug,跑一会就有了


如果不设断点呢?你试试看
0 请登录后投票
   发表时间:2011-07-18  
第三题用代理貌似可以实现吧
0 请登录后投票
   发表时间:2011-07-18  
第三题:
Java代码 
A = 1;  
System.out.println(A); 

A = 1;
System.out.println(A);A是一个int类型变量,请在这段代码的前、后添加任意代码(但两句之间不能再插入代码),使得程序编译时第一句可以编译通过,而第二句出现编译错误。

编译时报错 直接这样不就行了。。
public class Test{
    int
    A=1;
    System.out.println(A);
}
这个肯定编译报错了 ^ ^
0 请登录后投票
   发表时间:2011-07-18  
这题出的却是够变态的 学习啦。
0 请登录后投票
   发表时间:2011-07-18  
第三题,,,char A;编译即可通过。
0 请登录后投票
论坛首页 招聘求职版

跳转论坛:
Global site tag (gtag.js) - Google Analytics