Looking for work for more than 6k you test your java face questions

2010-08-12  来源:本站原创  分类:Java  人气:162 

Test your java based test questions:

This is my design of pavement a few questions, minimum requirements are subject, can be completed within 5 minutes, but can basically reflect the interviewer's knowledge level. So I designed the six questions.
If you are able to complete (do not see the information without the aid of debugging) to answer in 60 minutes or more to find the work of more than 6,000 yuan for me to introduce you to

1. Brief and conditions of operation logic operation (&,|,^) (&&,||) difference. (15 points)

2. What happens to run the following results? If there is an error, how to correct? (15 points)

interface A (
int x = 0;
)
class B (
int x = 1;
)
class C
extends B implements A (
public void pX () (
System.out.println (x);
)
public static void main (String [] args) (
new C (). pX ();
)
)
)

3. Description Java Server Page and Servlet connection and distinction. (20 points)

4.XML document defines several forms? Any essential difference between them?
Parsing XML documents Which ways? (20 points)

5. Java.util.concurrent.locks.Lock brief synchronized and the similarities and differences? (15 points)

6.EJB EJB specification prohibits the operation of what? (15 points)

Finally, there is one question quiz to your eye:

public String toString () (
return this + "@" + this.hashCode ();
)

The toString () method to achieve with or without undue place? (ToString method in fact can be anything you want to output the output of some kind of information)

The following answers for reference (not necessarily completely correct), and it did not elaborate. Knowledge can add their own reference to the understanding of relevant information. Welcome Paizhuan

1. Brief and conditions of operation logic operation (&,|,^) (&&,||) difference. (15 points)

A major difference between two points:
a. conditions for Boolean operators can only operate, but the logical Boolean operators can not only operate, but can operate numerical b. logical operation does not produce short-circuit. if:

int a = 0;
int b = 0;

if ((a = 3)> 0 | | (b = 3)> 0) / / Exercise after a = 3, b = 0.
if ((a = 3)> 0 | (b = 3)> 0) / / Exercise after a = 3, b = 3.

Correct answer first 5 points, 10 points for correct answers to the second point.
The most basic study of the problem of knowledge, but there are still many large cattle-level development officers dismount any language at the beginning of the parts will details of these basic knowledge, other than Xuexi first language, no one in learning new language Yuan Yi spend about five minutes to review.

2. What happens to run the following results? If there is an error, how to correct? (15 points)

interface A (
int x = 0;
)
class B (
int x = 1;
)
class C
extends B implements A (
public void pX () (
System.out.println (x);
)
public static void main (String [] args) (
new C (). pX ();
)
)
)

This problem will occur at compile time error (an error description of different JVM have different information, meaning that no explicit x-call, two x are matched, as at the same time import java.util and java.sql packages direct statement of the two Date the same as)

The problem mainly on the interface and the class structure of the most basic understanding. For the parent class variables, you can use super.x to clear, and the interface properties of the default hidden to public static final. So, to clear by Ax.

3. Description Java Server Page and Servlet connection and distinction. (20 points)

This title goes without saying that the same point in the answer should be clear about the jsp compiled a "class of servlet" and "is not a Servlet", A distinction should be to answer the "focus on the (view / control logic)." Addition and subtraction, under the circumstances of other score. knowledge is simple, but from the perspective of the interview, subjects were not only able to know the difference between them, and to be able to more accurately convey the (later write the document to allow other people can read, not ambiguous), answer "jsp is compiled servlet" as wrong answer "jsp to view, servlet is used to control logic" as an error, should focus on the main (most of) the words for expression.

4.XML document defines several forms? Any essential difference between them?

Parsing XML documents Which ways? (20 points)
Answer this question three points:
a: two forms of dtd, schema
b: essential difference: schema itself is xml, the XML parser can be (this is also the schema from the DTD to develop the fundamental purposes)
c: two main ways: dom, sax. come floor was full two hours if they can come floor saxt, or other (in come floor dom, sax, based on that the other way if the candidate can also be seen as xml The analysis should be allowed. but did not come floor dom, sax to say otherwise is not sub-analytic XML) should be a plus.

5. Java.util.concurrent.locks.Lock brief synchronized and the similarities and differences? (15 points)

Main similarities:
Lock can be achieved by the completion of all the features synchronized. (Other unimportant)
Main differences:
Lock synchronized more accurate than the thread semantics and better performance (at the same point in the answer to this too)
synchronized automatically release the lock. The Lock necessarily require programmers to manually release. and must be released in the finally clause, if not come floor shall not be divided in the finally released. just as Connection not closed finally in the same. even the most basic resources release are done, talk about multi-threaded programming.

6.EJB EJB specification prohibits the operation of what? (15 points)

Total 8 points, 3-4 points come floor was out of the following.
1. Can not operate the thread and the thread API (refer to non-thread objects Threads API methods such as notify, wait, etc.)
2. Not operate awt
3. Can not be achieved server functionality 4. Can not survive on the static is taken.
5. IO operation can not be used to directly access the file system 6. Can not load the local library.
7. Can not be this as a variable and return.
8. Can not cycle call.

相关文章
  • Looking for work for more than 6k you test your java face questions 2010-08-12

    Test your java based test questions: This is my design of pavement a few questions, minimum requirements are subject, can be completed within 5 minutes, but can basically reflect the interviewer's knowledge level. So I designed the six questions. If

  • 华视传媒向美SEC提交6-K文件 2015-04-25

    新浪科技讯 北京时间11月10日消息,据国外媒体报道,华视传媒(Nasdaq:VISN)周一向美国证券交易委员会(SEC)提交了6-K表格文件,其主要内容包括回答部分投资者关于公司财务状况的询问等. 华视传媒在文件中表示,尽管目前不能预测中国是否存在潜在的经济危机,但相信公司的财务不存在任何意外的重大变化和收购.公司目前的现金不仅可以支持目前的业务,而且还满足可预见的未来的需求. 华视传媒此前发布的2008年第三季度财报显示,华视传媒第三季度总营收为3590万美元,较上一季度增长77%,较去年同

  • 3 years of IT are, if you are interested in after-tax 9.6K 2011-08-19

    Thank you for your attention to the company needs now called over 3 years of JAVA Engineer mail: [email protected] Job requirements: 1, proficient in Java, the Java language for more than three years, WEB application development experience; 2, prof

  • 00年小本毕业月薪6K,现在25岁在国外做程序员月薪40K人民币 2014-06-13

    看了这里不少人的帖子都说自己的经历如何如何,按我看来他们不少人其实还没有真正入行(包括我自己也只能算初级程序员向中级靠拢的阶段). 我觉得做IT的人最重要的是对自己有非常清醒的认识,不要懂的一些浅薄的技术就自以为是.要明白自己和真正大公司的高手比较其实还是井底之蛙.我起码认识好几百个程序员,但是真正让我佩服的只有2个,让我觉得是个程序员高手的也不到10个人. 对于我们这些做应用级别的程序员来说,要非常透彻的理解系统不是那么容易.我自己算是对C++,JAVA,UNIX/LINUX和ORACLE/P

  • 帝都月薪6k要求 2013-09-29

    或者关系.1年左右经验 1.懂得php,懂得css,js,mysql 2.精通java, 开发相关 struts,Spring(IoC.AOP),ibatis Socket hibernate JVM运作机制和内存结构,并行运算, MVC模式 DDD Velocity MyBatis lucene json XML JNI JNDI JDBC JMX RMI WebService Swing SWT RCP jsp servlet java bean JMS Jdbc 设计模式 运维相关 Lin

  • Requirements of the Java Development Collection (occupied) 2009-08-08

    Job description: Energy Software Management and Development Job requirements: 1 , Computer science or related professional degree or above; 2 3 years work experience, 2 years Java project development experience; 3 At least participated in more than o

  • What is B / S structure, B / S structure, what advantages (switched from Baidu Wikipedia) 2010-03-29

    Small knowledge: What is B / S structure, B / S structure, what advantages (switched from Baidu Wikipedia) B / S structure (Browser / Server structure) structure, the browser and the server architecture. It is with the rise of Internet technology on

  • Grand Prix, the most popular palm program started, the United States championship 100,000 knives 2010-03-29

    Competition name is called Hot Apps See here http://developer.palm.com/index.php?Itemid=35&id=1841&option=com_content&view=article From the beginning to February 1 to March 31, according to the procedures downloads prizes: Download the largest

  • Comparison of the sequence of performance testing Java.Hessian.Burlap 2010-03-22

    Hessian serialization types and Java built-in somewhat similar, are binary. Burlap test again supplemented, Burlap is a XML format. I have three kinds of sequence-based methods have made a comparison test: Test Data * 100 cycles //===================

  • AS3 classes in TWEEN 2010-02-10

    Quote In the past, sites with two classes of applications to do when an event is often activated by a number of tween animation in the tween category under 2 I use the Internet to download the mxp extension package to implement the application: mc.tw

  • Shanghai Unicom GPRS WAP site testing, and mainstream adaptation conditions (change) 2010-03-10

    Original】 【Unicom launched a free trial GPRS in the time bought a 130 card, launched GPRS, so test Last month, 10 per package 100M opened the package, does not distinguish UNIWAP and UNINET (and moving cmwap, cmnet similar Unicom also made a distinct

  • ubuntu-qmail installation configuration Xiangjie (step by step) (1) 2010-02-10

    I. Introduction Qmail features Qmail Security to verify the safety, Qmail's supporters and even provide $ 1,000 reward to find security holes Qmail, a year later, the money has not been received, which were donated to the Free Software Foundation. Cu

  • Best eclipse plug-TOP 30 2010-03-28

    Original Source: http://www.tech-q.cn/thread-2630-1-1.html , slight changes. 1, PyDev - Python Development Environment for Eclipse : programmers can use the eclipse PyDev allows to develop Python, Jython and Iron Python application, and Pydev + eclip

  • Simple. NET code generator 2010-03-23

    Since last year for a job, found a suitable house rent down, but rent is too high, it will often pay the rent when distressed, is quite upset, if the rent cheap house and too far away from the company, to and from work are inconvenient to take the me

  • LuaJIT 2 beta 3 is out: Support both x32 & x64 (Why so fast?) 2010-03-08

    LuaJIT's interpreter is fast, because: • It's written in assembler. • It keeps all important state in registers. No C compiler manages to do that on x86. • It uses indirect threading (aka labeled goto in C). • It has a very small I-cache footprint (t

  • A simple test of tokyo cabinet and tyrant's performance 2010-03-11

    Server: Redhat, CentOS release 4.8. Xeon (R) CPU [email protected] * 4 8G mem Client Winxp sp3, Petium Dual 1.6G, 2G mem Tokyo Cabinet and Tyrant command: ttserver-dmn-pid / ttserver / ttserver.pid-log / ttserver / ttserver.log-le / ttserver / database.t

  • Named function expressions demystified 2010-04-01

    Known function expression (Named function expressions demystified) Original Address http://yura.thinkweb2.com/named- function-expressions / (Such as translation can be found in mail to my mailbox yangliang at vip.qq.com) by Juriy "kangax" Zaytse

  • Computer Master List of 2008 wage latest major IT companies pay row 2010-03-29

    Computer Master List of 2008 wage latest major IT companies pay line keyword: work carried over: http://blog.sina.com.cn/s/blog_4997a23a0100b2xc.html Divided into the Internet, software, hardware, networking 4 directions, so we Yehao compare. Interne

  • StarFlow workflow instance Web Designer 2010-03-06

    After a period of development StarFlow Web Designer with a preliminary results of processes can be customized to work late after the process is the definition of the content, through StarFlow Web Designer to re-open the editor, has been completed in

  • Shanghai, China and Seoul, Korea price comparison 2010-04-05

    Shanghai, China and Seoul, Korea price comparison   compare prices before you compare the two wage levels, at present, the RMB against the Korean won as the 1:170 ratio, that is 1 yuan against 170 yuan won, or, you can also count, won the 1,000 yua