下列不属于FileInputStream输入流的read()成员函数的是()A、 int read();B、 int read(byte b[]);C、 int read(byte b[],int offset,int len);D、 int read(int line);

下列不属于FileInputStream输入流的read()成员函数的是()

  • A、 int read();
  • B、 int read(byte b[]);
  • C、 int read(byte b[],int offset,int len);
  • D、 int read(int line);

相关考题:

下面哪一个不是InputStream类中的方法?A.int read(byte[ ])B.void flush( )C.void close( )D.int available( )

下面哪个不是InputStream类中的方法?A.int read(byte[DB.void flush()C.void close()D.int available()

Java语言中数值数据的类型能自动转换,按照从左到右的转换次序为()。A.byte→int→short→long→float→doubleB.byte→short→int→long→float→doubleC.byte→short→int→float→long→doubleD.short→byte→int→long→float→double

下面( )不是InputStream类中的方法。A.int read(byte[])B.void flushC.void closeD.int available

下列程序的功能是:将大于整数m且紧靠m的k个素数存入数组xx。请编写函数num(int m,int k,int xx[])实现程序的要求,最后调用函数read write DAT()把结果输出到out31.dat文件中。例如,若输入17,5,则应输出19,23,29,31,37。注意:部分源程序已给出。请勿改动主函数main()和输入输出函数read write DAT()的内容。试题程序:include conio.hincludeVoid readwriteDAT();Void num(int m,int k,,int XX[]){}main(){int m,n,xx[1000];Clrscr();printf(“\nPlease enter tWO integers:”)‘scanf(“%d,%d”,m,n);num(m, n, XX);for(m=0;m<n;m++)printf(“%d”, XX[m]);printf(”\n”);readwriteDAT();)VOid read write DAT(){int m,n,xx[1000],i;FILE *rf.,*Wf;rf=fopen(“in31.Dat”,r”);Wffopen(“ou1t31.Dat”/”w”);。 for(i=0;i<10;i++){fscanf(rf,%d,” %d”,m,n);num(m,n,XX);for(m=0;m fprintf(wf,%d”,xx[m]);fprintf (wf, “\n”);}fclose(rf);fclose (wf);}

下列不属于FileInputStream输入流的read()成员函数的是( )。A.int read (byte b[],int offset,int len)B.int read (int line)C.int read ()D.int read (byte b[])

下列______选项不是InputStream类中的方法。A.public abstract int read() throws IOExceptionB.public final void writeInt (int V)throws IOExceptionC.public int available() throws IOExceptionD.public void close() throws IOException

下面( )不是InputStream类中的方法。A.int read(byte[])B.void flush( )C.void close( )D.int available( )

要从“file.dat”文件中读出第10个字节存到变量C中,下列______方法是合适的。A.FileInputStream in=new FileInputStream("file.dat");in.skip(9);int c=in.read( );B.FileInputStream in=new FileInputStream("file.dat");in.skip(10);int c=in.read( );C.FileInputStream in=new FileInputStream("file.dat");int c=in.read( );D.RandomAccessFile in=new RandomAccessFile("file.dat");in.skip(9);int c=in.readByte( );

自动类型转换规定的优先次序是( )。A.short,byte,char→long→int→float→doubleB.short,byte,char→int→long―float→doubleC.byte,short,char→long→int→float→doubleD.byte,short,char→int→long→float→double

基本数据类型精度从低到高排列正确的是()A.byte short int float doubleB.byte short int double floatC. short byte int float doubleD. short byte int double float

下面哪个不是InputStream类中的方法?A.int read(byte[])B.void flush()C.void close()D.int available()

要从文件“file.dar”文件中读出第10个字节到变量C中,下列哪个方法适合 ( )A.FileInputStream in=new FileInputStream("file.dar");in.skip9.;int c=in.read();B.FileInputStream in=new FileInputStream("file.dar");in.skip10.;int c=in.read();C.FileInputStream in=new FileInpmStream("file.dar");int c=in.read();D.Random AccessFile in=new RandomAceessFile("file.dar");in.skip9.;int c=in.readByte

下列哪个选项不是InputStream类中的方法?A.public abstract int read( )throws IOExceptionB.public final void writeInt(int v)throws IOExceptionC.pubfic void close( )throws IOExceptionD.pubfic int available( )throws IOExcepfion

下列代码实现从文件file.dat中读出第5个字节到变量c中,横线处应该填入下列项中的______。 import java.io.*; public class exl5 { public static void main(String[] args) { try System.out.println((char)c); catch(Exception e) { e.printStackTrace(); } } }A.FileInputStream in = new FileInputStream("chl/file.dat"); in.skip(4); int c = in.read();B.FileInputStream in = new FileInputStream("chl/file.dat"); in.skip(5); int c = in.read();C.Fi2eInputStream in = new FileInputStream("file.dat"); int c = in.read();D.RandomAccessFile in = new RandomAccessFile ("chi/file. dat "); in.skip (4); int c = in.readByte();

下列程序使用系统标准输入System.in从键盘获得输入字符串,请选择正确的一项填入下列程序的横线处。 import java.io.*; public class ex26 { public static void main(String args[]) { byte buffer[] = new byte[128]; int n; try { n = for(int i = 0; i < n; i++) System.out .print ( (char)buffer [i] ); catch (IOException e) { System.out.print (e); } } }A.System.in.read(buffer)B.system.in.read(buffer)C.System.in.read0D.System.in(buffer)

以下代码中变量result的可能类型有哪些?byte b = 11;short s = 13;result = b * ++s; A.byte, short, int, long, float, doubleB.boolean, byte, short, char, int, long, float, doubleC.byte, short, char, int, long, float, doubleD.byte, short, charE.int, long, float, double

InputStream对象的方法read(byte[] buffer,int offset,int length)的返回值的含义是哪项?()  A、固定长度的字节数B、1C、-1D、运行时异常被抛出

要从文件" file.dat"文件中读出第10个字节到变量C中,下列哪个方法适合? ()A、 FileInputStream in=new FileInputStream("file.dat"); in.skip(9); int c=in.read();B、 FileInputStream in=new FileInputStream("file.dat"); in.skip(10); int c=in.read();C、 FileInputStream in=new FileInputStream("file.dat"); int c=in.read();D、 RandomAccessFile in=new RandomAccessFile("file.dat"); in.skip(9); int c=in.readByte();

Java中整型包括()。A、int,byte,charB、int,short,long,byte,charC、int,short,long,charD、int,short,long,byte

以下哪些属于InputStream类的方法?()A、int read(byte[])B、void flush()C、void close()D、available()

public class ConstOver {  public ConstOver (int x, int y, int z)  {  }  }   Which two overload the ConstOver constructor?()   A、 ConstOver ( ) { }B、 Protected int ConstOver ( ) { }C、 Private ConstOver (int z, int y, byte x) { }D、 Public Object ConstOver (int x, int y, int z) { }E、 Public void ConstOver (byte x, byte y, byte z) { }

Given:  1.  public class ConstOver {  2.  public constOver(int x, int y, int z) {  3.  }  4.  }   Which two overload the ConstOver Constructor?()A、 ConstOver() {}B、 protected int ConstOver(){}C、 private ConstOver(int z, int y, byte x ) {}D、 public Object ConstOver(Int x, int y, int z) {}E、 pubic void ConstOver (byte x, byte y, byte z) {}

多选题public class ConstOver {  public ConstOver (int x, int y, int z)  {  }  }   Which two overload the ConstOver constructor?()AConstOver ( ) { }BProtected int ConstOver ( ) { }CPrivate ConstOver (int z, int y, byte x) { }DPublic Object ConstOver (int x, int y, int z) { }EPublic void ConstOver (byte x, byte y, byte z) { }

多选题Given:  1.  public class ConstOver {  2.  public constOver(int x, int y, int z) {  3.  }  4.  }   Which two overload the ConstOver Constructor?()AConstOver() {}Bprotected int ConstOver(){}Cprivate ConstOver(int z, int y, byte x ) {}Dpublic Object ConstOver(Int x, int y, int z) {}Epubic void ConstOver (byte x, byte y, byte z) {}

单选题要从文件" file.dat"文件中读出第10个字节到变量C中,下列哪个方法适合? ()A FileInputStream in=new FileInputStream(file.dat); in.skip(9); int c=in.read();B FileInputStream in=new FileInputStream(file.dat); in.skip(10); int c=in.read();C FileInputStream in=new FileInputStream(file.dat); int c=in.read();D RandomAccessFile in=new RandomAccessFile(file.dat); in.skip(9); int c=in.readByte();

单选题InputStream对象的方法read(byte[] buffer,int offset,int length)的返回值的含义是哪项?()A固定长度的字节数B1C-1D运行时异常被抛出