New dataInputStream(“in.txt”);
New dataInputStream(new file(“in.txt”));
New dataInputStream(new writer(“in.txt”));
New dataInputStream(new FileWriter(“in.txt”));
New dataInputStream(new InputStream(“in.txt”));
New dataInputStream(new FileInputStream(“in.txt”));
第1题:
Java 类库中,将信息写入内存的类是
A ) java.io.FileOutputStream
B ) java.io.ByteArrayOutputStream
C ) java.io.BufferedOutputStream
D ) java.io.DataOutputStream
第2题:
A.Writeclient-sidesubprogramscontainingthePL/SQL8constructs,andmovethemintoanobjectgroup.
B.Writeserver-sidesubprograms,andcallthesubprogramsfromtheformapplication.
C.StorethePL/SQL8constructsinaPL/SQLlibrary,andattackthelibrarytoeachformmuddleinyourapplication.
第3题:
Structured programming practices(71)rise to Pascal,in which constructs were introduced to make programs more readable and better(72). C provided a combination of assembly language and high-level Structure to create a general-purpose language that could be used from system to(73)programming. Next came object orientation,which is(74)of a methodology and design philosophy than a language issue.This is(75)by the addition of so-called OO extensions to current languages,such as C.
A.giving
B.given
C.gave
D.gives
第4题:
Which constructs a DataOutputStream?()
第5题:
Java类库中,将信息写入内存的类是( )。
A.java.io.FileOutputStream
B.java.io.ByteArrayOutputStream
C.java.io.BufferedOutputStream
D.j ava.io.DataOutputStream
第6题:
此题为判断题(对,错)。
第7题:
Structured programming practices(71)rise to Pascal, in which constructs were introduced to make programs more readable and better(72)C provided a combination of assembly and high -level structure to create a general -purpose language that could be used from system to(73)programming. Next came object orientation, which is(74)of a metrology and design philosophy than a language issue. This is(75)by the addition of so - called OO extensions to current language, such as C++.
A.giving
B.given
C.gave
D.gives
第8题:
阅读下面程序
import java.io.*;
public class ByteStream Test{
public static void main(String[] a){
int[] myArray = {10,20.30,40};
try{
DataOutputStream dos = new DataOutputStream
(new _________________( " ints.dat " ));
for (int i=0;i<myArray.length;i++)
dos.writeInt(myArray[i] ) ;
dos.close();
S ystem.out.println( " Have written binary file ints.dat " );
}
catch (IOException ioc){
System.out.println( " IO Exception " );
}
}
}
为保证程序正确运行,在程序中下划线处应填入的代码是
A)FileOutputStream
B)ByteArrayOutputStream
C)BufferedOutputStream
D)FileWriter
第9题:
在J2EE中,在提供名为sock的套接字实例的前提下,为了后去通过套接字进行通信的输出流,你可以编写()
第10题:
Which constructs a BufferedIputStream?()