當(dāng)前位置:高考知識(shí)網(wǎng) > 招聘筆試題 > 正文
1:Which statements about Java code security are not true?
A.The bytecode verifier loads all classes needed for the execution of a program.
B.Executing code is performed by the runtime interPter.
C.At runtime the bytecodes are loaded, checked and run in an interPter.
D.The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.
2:What is the result when you compile and run the following code?
public class Test
{
public void method()
{
for(int i = 0; i < 3; i++)
{
System.out.print(i);
}
System.out.print(i);
}
}
Choices:
What is the result when you compile and run the following code?
public class Test
{
public void method()
{
for(int i = 0; i < 3; i++)
{
System.out.print(i);
}
System.out.print(i);
}
}
Choices:
A.0122
B.0123
C.Compilation error
D.None of these
3:
Give the following code:
public class Example{
public static void main(String args[] ){
int l=0;
do{
System.out.println(“Doing it for l is:”+l);
}while(--l>0)
System.out.println(“Finish”);
}
}
Which well be output:
Give the following code:
public class Example{
public static void main(String args[] ){
int l=0;
do{
System.out.println(“Doing it for l is:”+l);
}while(--l>0)
System.out.println(“Finish”);
}
}
Which well be output:
A.Doing it for l is 3
B.Doing it for l is 1
C.Doing it for l is 2
D.Doing it for l is 0
4:Math.round(11.5)等於多少?
A.11
B.12
C.11.5
D.none
5:
What will happen when you attempt to compile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
System.out.println("We are equal " + Output);
}
else
{
System.out.println("Not equal! " + Output);
}
Choices:
What will happen when you attempt to compile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
System.out.println("We are equal " + Output);
}
else
{
System.out.println("Not equal! " + Output);
}
Choices:
A.Compilation error, attempting to perform binary comparison on logical data type
B.Compilation and output of "We are equal 10".
C.Compilation and output of "Not equal! 20".
D.Compilation and output of "Not equal! 10".
6:
What will happen when you attempt to compile and run the following code?
(Assume that the code is compiled and run with assertions enabled.)
public class AssertTest{
public void methodA(int i){
assert i >= 0 : methodB();
System.out.println(i);
}
public void methodB(){
System.out.println("The value must not be negative");
}
public static void main(String args[]){
AssertTest test = new AssertTest();
test.methodA(-10);
}
}
What will happen when you attempt to compile and run the following code?
(Assume that the code is compiled and run with assertions enabled.)
public class AssertTest{
public void methodA(int i){
assert i >= 0 : methodB();
System.out.println(i);
}
public void methodB(){
System.out.println("The value must not be negative");
}
public static void main(String args[]){
AssertTest test = new AssertTest();
test.methodA(-10);
}
}
A.it will print -10
B.it will result in AssertionError showing the message-“the value must not be negative”.
金山職業(yè)技術(shù)學(xué)院對(duì)比四川汽車職業(yè)技術(shù)學(xué)院哪個(gè)好 附分..
時(shí)間:2025-05-22 09:08:12成都銀杏酒店管理學(xué)院在重慶高考招生計(jì)劃人數(shù)和專業(yè)代..
時(shí)間:2025-05-22 09:05:01四川上山東理工大學(xué)多少分 分?jǐn)?shù)線及排名
時(shí)間:2025-05-22 09:01:18江西高考理科533分排名多少 排名多少位次
時(shí)間:2025-05-22 08:57:21大連東軟信息學(xué)院對(duì)比甘肅民族師范學(xué)院哪個(gè)好 附分?jǐn)?shù)線..
時(shí)間:2025-05-22 08:53:39廣東高考455至460分左右物理可以上什么大學(xué)
時(shí)間:2025-05-22 08:49:52
中國點(diǎn)擊率最高的一篇文章 !2023-08-13 03:45:29
海南上長(zhǎng)春工業(yè)大學(xué)多少分 分?jǐn)?shù)線及排名2025-05-22 09:28:45
科爾沁藝術(shù)職業(yè)學(xué)院對(duì)比山東水利職業(yè)學(xué)院哪個(gè)好 附分?jǐn)?shù)線排名2025-05-22 09:25:00
呼和浩特職業(yè)學(xué)院對(duì)比山西警官職業(yè)學(xué)院哪個(gè)好 附分?jǐn)?shù)線排名2025-05-22 09:22:04
四川工程職業(yè)技術(shù)學(xué)院在上海高考招生計(jì)劃人數(shù)和專業(yè)代碼(參考)2025-05-22 09:19:52
泰山科技學(xué)院對(duì)比西安理工大學(xué)高科學(xué)院哪個(gè)好 附分?jǐn)?shù)線排名2025-05-22 09:16:28
江西航空職業(yè)技術(shù)學(xué)院在云南高考招生計(jì)劃人數(shù)和專業(yè)代碼(參考)2025-05-22 09:13:20
遼寧特殊教育師范高等?茖W(xué)校對(duì)比江西工商職業(yè)技術(shù)學(xué)院哪個(gè)好 附分?jǐn)?shù)線排名2025-05-22 09:10:51
和利時(shí)系統(tǒng)高級(jí)硬件工程師筆試題和面試題答案2023-08-11 14:08:58
新華信國際信息咨詢JAVA工程師筆試題和面試題答案2023-08-14 15:26:15
聯(lián)合利華(Unilever)校園招聘筆試真題2023-08-23 02:30:46 




