只因對手而精彩-話(huà)題作文
公司簡(jiǎn)介

新華信國際信息咨詢(xún)(北京)有限公司(以下簡(jiǎn)稱(chēng)“新華信”)是中國領(lǐng)先的營(yíng)銷(xiāo)解決方案和信用解決方案提供商,1992年在北京成立。我們收集、分析和管理關(guān)于市場(chǎng)、消費者和商業(yè)機構的信息,通過(guò)信息、服務(wù)和技術(shù)的整合,提供市場(chǎng)研究、商業(yè)信息、咨詢(xún)和數據庫營(yíng)銷(xiāo)服務(wù),協(xié)助您做出更好的營(yíng)銷(xiāo)決策和信貸決策并發(fā)展盈利的客戶(hù)關(guān)系。
我們在北京、上海和廣州擁有600名員工,為各行業(yè)的機構客戶(hù)提供專(zhuān)業(yè)服務(wù),包括汽車(chē)、金融、保險、零售、電信、IT、制造業(yè)、消費品和貿易。在華的《財富》世界500強企業(yè)中有80%以上使用我們的不同產(chǎn)品和服務(wù)。
2007年年初,領(lǐng)導全球的資訊服務(wù)提供商益百利集團(Experian Group)對新華信進(jìn)行了戰略投資,把其國際領(lǐng)先的產(chǎn)品和技術(shù)輸送到新華信的各個(gè)業(yè)務(wù)領(lǐng)域,新華信的服務(wù)能力得以進(jìn)一步提高。
JAVA工程師筆試題
1:Which statement about the garbage collection mechanism are true?
A.Garbage collection require additional programe code in cases where multiple threads are running.
B.The programmer can indicate that a reference through a local variable is no longer of interest.
C.The programmer has a mechanism that explicity and immediately frees the memory used by Java objects.
D.The garbage collection mechanism can free the memory used by Java Object at explection time.
2:
Given:
1. public class test (
2. public static void main (String args[]) {
3. int i = 0xFFFFFFF1;
4. int j = ~i;
5.
6. }
7. )
What is the decimal value of j at line 5?
Given:
1. public class test (
2. public static void main (String args[]) {
3. int i = 0xFFFFFFF1;
4. int j = ~i;
5.
6. }
7. )
What is the decimal value of j at line 5?
A.0
B.1
C.14
D.-15
3:
What happens when you try to compile and run the following program?
class Mystery{
String s;
public static void main(String[] args){
Mystery m=new Mystery();
m.go();
}
void Mystery(){
s=”constructor”;
}
void go(){
System.out.println(s);
}
}
What happens when you try to compile and run the following program?
class Mystery{
String s;
public static void main(String[] args){
Mystery m=new Mystery();
m.go();
}
void Mystery(){
s=”constructor”;
}
void go(){
System.out.println(s);
}
}
A.this code compliles but throws an exception at runtime
B.this code runs but nothing appears in the standard output
C.this code runs and “constructor” in the standard output
D.this code runs and writes ”null” in the standard output
4:
public class X{
public Object m(){
Object o = new Float(3.14F);/pic/p>
Object [] oa = new Object[1];/pic/p>
oa[0] = o;/pic/p>
o=null;/pic/p>
return oa[0];/pic/p>
}
}
When is the Float object, created in line 3,eligible for garbage collection?
public class X{
public Object m(){
Object o = new Float(3.14F);/pic/p>
Object [] oa = new Object[1];/pic/p>
oa[0] = o;/pic/p>
o=null;/pic/p>
return oa[0];/pic/p>
}
}
When is the Float object, created in line 3,eligible for garbage collection?
A.just after line 5.
B.just after line 6
C.just after line 7(that is,as the method returns)
D.never in this method
5:
下述程序代碼中有語(yǔ)法錯誤的行是( )。
int i,ia[10],ib[10]; /*第一行*/
for (i=0;i<=9;i++) /*第2行*/
ia[i]=0; /*第3行*/
ib=ia; /*第4行*/
下述程序代碼中有語(yǔ)法錯誤的行是( )。
int i,ia[10],ib[10]; /*第一行*/
for (i=0;i<=9;i++) /*第2行*/
ia[i]=0; /*第3行*/
ib=ia; /*第4行*/
A.第1行
B.第2行
C.第3行
D.第4行
6:
public class OuterClass {
private double d1 = 1.0;
/pic/p>
}
You need to insert an inner class declaration at line 3. Which two inner class declarations are
valid?
public class OuterClass {
private double d1 = 1.0;
/pic/p>
}
You need to insert an inner class declaration at line 3. Which two inner class declarations are
valid?
A.class InnerOne{ public static double methoda() {return d1;} }
B.public class InnerOne{ static double methoda() {return d1;} }
C.private class InnerOne{ double methoda() {return d1;} }
D.static class InnerOne{ protected double methoda() {return d1;} }
7:假定a和b為int型變量,則執行下述語(yǔ)句組后,b的值為
a=1;
b=10;
do
{
b-=a;
a++;
} while (b--<0);
A.9
B.-2
C.-1
D.8
8:
String s=”Example String”;Which operation is not legal?
String s=”Example String”;Which operation is not legal?
A.int i=s.length();
B.s[3]=”x”;
C.String short_s=s.trim();
D.String t=”root”+s;
9:
Give this class outline:
class Example{
private int x;
/pic/p>
}
Assuming that x invoked by the code java Example, which statement can made x be directly accessible in main() method of Example.java?
Give this class outline:
class Example{
private int x;
/pic/p>
}
Assuming that x invoked by the code java Example, which statement can made x be directly accessible in main() method of Example.java?
A.Change private int x to public int x
B.change private int x to static int x
C.Change private int x to protected int x
D.change private int x to final int x
10:
What will happen when you attempt to compile and run the following code?
class Base
{
int i = 99;
public void amethod()
{
System.out.println("Base.amethod()");
}
Base()
{
amethod();
}
}
public class Derived extends Base
{
int i = -1;
public static void main(String argv[])
{
Base b = new Derived();
System.out.println(b.i);
b.amethod();
}
public void amethod()
{
System.out.println("Derived.amethod()");
}
}
Choices:
What will happen when you attempt to compile and run the following code?
class Base
{
int i = 99;
public void amethod()
{
System.out.println("Base.amethod()");
}
Base()
{
amethod();
}
}
public class Derived extends Base
{
int i = -1;
public static void main(String argv[])
{
Base b = new Derived();
System.out.println(b.i);
b.amethod();
}
public void amethod()
{
System.out.println("Derived.amethod()");
}
}
Choices:
A.Derived.amethod() -1 Derived.amethod()
B.Derived.amethod() 99
C.Compile time error
D.Derived.amethod()
11:
What will be the result of executing the following code?
/pic/p>
package packageX;
public class SuperclassX
{
protected void superclassMethodX()
{
}
int superclassVarX;
}
/pic/p>
1.package packageX.packageY;
2.
3.public class SubclassY extends SuperclassX
4.{
5.SuperclassX objX = new SubclassY();
6.SubclassY objY = new SubclassY();
7.void subclassMethodY()
8.{
9.objY.superclassMethodX();
10.int i;
11.i = objY.superclassVarX;
12.}
13.}
Choices:
What will be the result of executing the following code?
/pic/p>
package packageX;
public class SuperclassX
{
protected void superclassMethodX()
{
}
int superclassVarX;
}
/pic/p>
1.package packageX.packageY;
2.
3.public class SubclassY extends SuperclassX
4.{
5.SuperclassX objX = new SubclassY();
6.SubclassY objY = new SubclassY();
7.void subclassMethodY()
8.{
9.objY.superclassMethodX();
10.int i;
11.i = objY.superclassVarX;
12.}
13.}
Choices:
A.Compilation error at line 5
B.Compilation error at line 9
C.Runtime exception at line 11
D.None of these
12:Which statement about listener is true?
A.Most component allow multiple listeners to be added.
B.If multiple listener be add to a single component, the event only affected one listener.
C.Component don?t allow multiple listeners to be add.
D.none
13:Which of the following answer is correct to express the value 8 in octal number?
A.010
B.0x10
C.08
D.0x8
14:
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
簡(jiǎn)答題
15:不用乘法或加法給一個(gè)數增加7倍。
16:abstract class和interface有什么區別?
17:用最有效率的方法算出2乘以8等於幾?
18:說(shuō)出在JSP頁(yè)面里是怎么分頁(yè)的?
19:四種會(huì )話(huà)跟蹤技術(shù)。
20:調用系統命令實(shí)現刪除文件的操作。
21:如果要設計一個(gè)圖形系統,請你設計基本的圖形元件(Point,Line,Rectangle,Triangle)的簡(jiǎn)單實(shí)現。
22:描述Cookie和Session的作用,區別和各自的應用范圍,Session工作原理。
23:有A、B兩個(gè)文件,文件格式相同,均為每行一個(gè)十進(jìn)制整型數字,兩個(gè)文件的行數不一定相等,但均在一千萬(wàn)行左右。A文件中的數字兩兩不等,B文件中的數字兩兩不等, 請用一個(gè)算法找出A和B兩文件中所有相同的數,并且從小到大有序輸出。請考慮統計程序如何實(shí)現,給出設計思路和關(guān)鍵算法(可使用偽代碼),并估計程序核心代碼的時(shí)間復雜度和空間復雜度。
24:下面的代碼有什么問(wèn)題?
char *_strdup( const char *strSource )
{
static char str[MAX_STR_LEN];
strcpy(str, strSource);
return str;
}
25:Security 公司的網(wǎng)絡(luò )管理工程師Mr. leak最近發(fā)現有不少來(lái)自公司外部IP的請求,試圖非法訪(fǎng)問(wèn)公司內部資源,為了不影響數據訪(fǎng)問(wèn)流程。他不得不寫(xiě)一個(gè)高效的程序——一個(gè)工作在Ipv4上的防火墻,如果請求來(lái)自非授權的ip地址,則將請求丟棄。為了便于管理,通過(guò)文本文件IP.TXT來(lái)配置授權的IP地址,文件格式為每行(’/n’)一個(gè) IP地址(或IP段),范圍不超過(guò)一個(gè)B類(lèi)。例如:
162.105.91.163
59.66.105.0 59.66.105.255
211.71.0.0 211.71.255.255
限制:IP段的起止地址間以空格隔開(kāi)。文件不超過(guò)10萬(wàn)行,內存不超過(guò)4M字節。
要求:請編寫(xiě)一個(gè)程序,讀入IP.TXT文件。并從標準輸入接受一個(gè)IP地址。如果該地址在授權范圍內,則在標準輸出上打印Y,否則打印N.如果輸入為一個(gè)空行,程序結束。
請給出思路(文字描述),完成代碼,分析你采用算法的優(yōu)劣。請列舉測試方法和思路
【只因對手而精彩-話(huà)題作文】相關(guān)文章:
對手話(huà)題作文03-26
【推薦】對手話(huà)題作文03-22
【熱門(mén)】對手話(huà)題作文03-23
對手話(huà)題作文【熱門(mén)】03-23
對手話(huà)題作文【精】03-16
對手話(huà)題作文【熱】03-17
【熱】對手話(huà)題作文03-18
以對手為話(huà)題的作文03-07
對手話(huà)題作文(精選15篇)03-19
以尊重對手為話(huà)題的作文12-12
- 相關(guān)推薦