失效链接处理 |
IKM在线测试 JAVA 88题带参考答案 PDF 下载
本站整理下载:
提取码:kc22
相关截图:
主要内容:
Updates from ADMjava04 batch:
spring ioc
hibernate multiple questions
Concurrency/Threadpool
Exceptions
More questions on hql
Query interface, Criteria in Hibernate
SimpleDateFormat
1) Which of the following techniques can a Java SE programmer use to increase the thread
safety of a program?
a. Use public static variables
b. Write classes so they are immutable
c. Use ThreadLocal variables
d. Use Final classes
e. Annotate a class with @Multithread
Ans: b,C
2) Under which of the following conditions will an alert message be displayed for the Java
script code given below
<form name=”frm”><label for=äge”> Please enter your birthday</label>
<input type =”text” name=äge” id=äge” onblur=”validate(this.value)”
<input type=”submit”id=Ënter”/></form>
<script language =”javascript”>
functionvalidate(val)
{
if (isNaN(val)
{
alert(“XXX XXX XXX”);
document.frm.age.focus();
}
}
</script>
a. If the text box age contains a numerical value and the submit button Submit is
clicked
b. If textbox age loses focus and contains a non-numerical value
c. If textbox age contains a non-numerical value and gains focus
d. If textbox age contains a non-numerical value and the submit button Enter is clicked
e. If textbox age loses focus and contains a numerical value
|