单选题Which constructs a DataOutputStream?()A New dataOutputStream(“out.txt”);B New dataOutputStream(new file(“out.txt”));C New dataOutputStream(new writer(“out.txt”));D New dataOutputStream(new FileWriter(“out.txt”));E New dataOutputStream(new OutputStream(“out.txt”));F New dataOutputStream(new FileOutputStream(“out.txt”));

单选题
Which constructs a DataOutputStream?()
A

 New dataOutputStream(“out.txt”);

B

 New dataOutputStream(new file(“out.txt”));

C

 New dataOutputStream(new writer(“out.txt”));

D

 New dataOutputStream(new FileWriter(“out.txt”));

E

 New dataOutputStream(new OutputStream(“out.txt”));

F

 New dataOutputStream(new FileOutputStream(“out.txt”));


参考解析

解析: 暂无解析

相关考题:

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.givingB.givenC.gaveD.gives

阅读下面程序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;imyArray.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)FileOutputStreamB)ByteArrayOutputStreamC)BufferedOutputStreamD)FileWriter

Java 类库中,将信息写入内存的类是A ) java.io.FileOutputStreamB ) java.io.ByteArrayOutputStreamC ) java.io.BufferedOutputStreamD ) java.io.DataOutputStream

dataoutputstream类的文件流能够把各种基本类型的数据写入到二进制数据文件中。() 此题为判断题(对,错)。

Thesystemanalystshaverequestedheavyuseofobjectfeatures.ThedatabasedesignmakesuseofPL/SQL8objecttypes,methods,andLOBtypes.Howdoyouworkwiththesefeaturesontheclient?() A.Writeclient-sidesubprogramscontainingthePL/SQL8constructs,andmovethemintoanobjectgroup.B.Writeserver-sidesubprograms,andcallthesubprogramsfromtheformapplication.C.StorethePL/SQL8constructsinaPL/SQLlibrary,andattackthelibrarytoeachformmuddleinyourapplication.

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.givingB.givenC.gaveD.gives

Java类库中,将信息写入内存的类是( )。A.java.io.FileOutputStreamB.java.io.ByteArrayOutputStreamC.java.io.BufferedOutputStreamD.j ava.io.DataOutputStream

在J2EE中,在提供名为sock的套接字实例的前提下,为了后去通过套接字进行通信的输出流,你可以编写() A、sock.accept()B、sock.getDataOutputStreamC、sock.getOutputStreamD、new DataOutputStream(sock)

Which constructs a DataOutputStream?()  A、 New dataInputStream(“in.txt”);B、 New dataInputStream(new file(“in.txt”));C、 New dataInputStream(new writer(“in.txt”));D、 New dataInputStream(new FileWriter(“in.txt”));E、 New dataInputStream(new InputStream(“in.txt”));F、 New dataInputStream(new FileInputStream(“in.txt”));

Which constructs a BufferedIputStream?()A、 New BufferedInputStream(“in.txt”);B、 New BufferedInputStream(new File(“in.txt”));C、 New BufferedInputStream(Writer(“in.txt”));D、 New BufferedInputStream(new Writer(“in.txt”));E、 New BufferedInputStream(new InputStream(“in.txt”));F、 New BufferedInputStream(new FileInputStream(“in.txt”));

如果我们想实现“先把要写入文件的数据先缓存到内存中,再把缓存中的数据写入文件中”的功能时,则需要使用下列哪个类?()A、 FileReaderB、 OutputStreamC、 FilterOutputStreamD、 DataOutputStream

DataOutputStream数据流向文件里写数据的方法为()

Which constructs a DataOutputStream?()A、 New dataOutputStream(“out.txt”);B、 New dataOutputStream(new file(“out.txt”));C、 New dataOutputStream(new writer(“out.txt”));D、 New dataOutputStream(new FileWriter(“out.txt”));E、 New dataOutputStream(new OutputStream(“out.txt”));F、 New dataOutputStream(new FileOutputStream(“out.txt”));

1. public class enclosingone (  2. public class insideone{}  3. )  4. public class inertest(  5. public static void main (string[]args)(  6. enclosingone eo= new enclosingone ();  7. //insert code here  8. )  9. )    Which statement at line 7 constructs an instance of the inner class?()  A、 InsideOnew ei= eo.new InsideOn();B、 Eo.InsideOne ei = eo.new InsideOne();C、 InsideOne ei = EnclosingOne.new InsideOne();D、 EnclosingOne.InsideOne ei = eo.new InsideOne();

The system analysts have requested heavy use of object features. The database design makes use of PL/SQL8 object types, methods, and LOB types. How do you work with these features on the client?()A、Write client-side subprograms containing the PL/SQL8 constructs, and move them into an object group. B、Write server-side subprograms, and call the subprograms from the form application. C、Store the PL/SQL8 constructs in a PL/SQL library, and attack the library to each form muddle in your application.

单选题在下列程序的空白处,应填入的正确选项是(  )。import java.io.*;public class writeInt{public static void main(String[] args){int[] myArray={10,20,30,40};try{ DataOutputStream dos=new DataOutputStream(new FileOutputStream("ints.dat")); for(int i=0;i dos.writeInt(myArray[i]); dos.close(); System.out.println("Have written binary file ints.dat");}}catch(IOException ioe){ System.out.println("IOException");}}}Astart()Bclose()Cread()Dwrite()

单选题The system analysts have requested heavy use of object features. The database design makes use of PL/SQL8 object types, methods, and LOB types. How do you work with these features on the client?()AWrite client-side subprograms containing the PL/SQL8 constructs, and move them into an object group. BWrite server-side subprograms, and call the subprograms from the form application. CStore the PL/SQL8 constructs in a PL/SQL library, and attack the library to each form muddle in your application.

单选题public class enclosingone (    public class insideone{}   )   public class inertest(   public static void main (stringargs)(   enclosingone eo= new enclosingone ();    //insert code here  )  )   Which statement at line 7 constructs an instance of the inner class?()A InsideOnew ei= eo.new InsideOn();B Eo.InsideOne ei = eo.new InsideOne();C InsideOne ei = EnclosingOne.new InsideOne();D EnclosingOne.InsideOne ei = eo.new InsideOne();

单选题Which constructs a BufferedIputStream?()A New BufferedInputStream(“in.txt”);B New BufferedInputStream(new File(“in.txt”));C New BufferedInputStream(Writer(“in.txt”));D New BufferedInputStream(new Writer(“in.txt”));E New BufferedInputStream(new InputStream(“in.txt”));F New BufferedInputStream(new FileInputStream(“in.txt”));

单选题1. public class enclosingone (  2. public class insideone{}  3. )  4. public class inertest(  5. public static void main (string[]args)(  6. enclosingone eo= new enclosingone ();  7. //insert code here  8. )  9. )    Which statement at line 7 constructs an instance of the inner class?()A InsideOnew ei= eo.new InsideOn();B Eo.InsideOne ei = eo.new InsideOne();C InsideOne ei = EnclosingOne.new InsideOne();D EnclosingOne.InsideOne ei = eo.new InsideOne();

单选题在J2EE中,在提供名为sock的套接字实例的前提下,为了后去通过套接字进行通信的输出流,你可以编写()Asock.accept()Bsock.getDataOutputStreamCsock.getOutputStreamDnew DataOutputStream(sock)

单选题Which constructs a DataOutputStream?()A New dataInputStream(“in.txt”);B New dataInputStream(new file(“in.txt”));C New dataInputStream(new writer(“in.txt”));D New dataInputStream(new FileWriter(“in.txt”));E New dataInputStream(new InputStream(“in.txt”));F New dataInputStream(new FileInputStream(“in.txt”));

单选题Dassault constructs and sells aircraft.ARight.BWrong.CDoesn’t say.

单选题What writes the text “ ” to the end of the file “file.txt”?()A OutputStream out= new FileOutputStream (“file.txt”);   Out.writeBytes (“ /n”);B OutputStream os= new FileOutputStream (“file.txt”, true);   DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);C OutputStream os= new FileOutputStream (“file.txt”);   DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);D OutputStream os= new OutputStream (“file.txt”, true);   DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);

单选题Java类库中,将信息写入内存的类是(  )。Ajava.io.FileOutputStreamBjava.io.ByteArrayOutputStreamCjava.io.BufferedOutputStreamDjava.io.DataOutputStream

填空题DataOutputStream数据流向文件里写数据的方法为()

单选题如果我们想实现“先把要写入文件的数据先缓存到内存中,再把缓存中的数据写入文件中”的功能时,则需要使用下列哪个类?()A FileReaderB OutputStreamC FilterOutputStreamD DataOutputStream