网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在J2ee中,以下各项中,()正确阐述了创建InputStreamReader的方式。 

  • A、new InputStreamReader(new FileInputStream("data"));
  • B、new InputStreamReader(new FileReader"data"));
  • C、new InputStreamReader(new BufferedReader("data"));
  • D、new FileInputStream("data")

参考答案

更多 “在J2ee中,以下各项中,()正确阐述了创建InputStreamReader的方式。 A、new InputStreamReader(new FileInputStream("data"));B、new InputStreamReader(new FileReader"data"));C、new InputStreamReader(new BufferedReader("data"));D、new FileInputStream("data")” 相关考题
考题 在J2ee中,以下各项中,()正确阐述了创建InputStreamReader的方式。 A.newInputStreamReader(newFileInputStream(data));B.newInputStreamReader(newFileReaderdata));C.newInputStreamReader(newBufferedReader(data));D.newFileInputStream(data)

考题 J2EE中,以下各项中,()正确阐述了创建InputStreamReader的方式。 A.newInputStreamReader(newFileInputSteream(“data”));B.newInputStreamReader(newFileFileReader(“data”));C.newInputStreamReader(newBufferedReader(“data”));D.newInputStreamReader(“data”);

考题 下面______语句能够正确地创建一个hputStreamReader的实例。A.new lnputStreamReader(new FileReader("data"));B.new lnputStreamReader("data");C.new lnputStreamReader(new FilelnputStream("data"));D.new lnputStreamReader(new BufferedReader("dam"));

考题 下列InputStream构造方法正确的是()。 A、InputStream in=new FileReader(“file.txt”)B、InputStream in=new FileInputStream(“file.txt”)C、InputStream in=new InputStreamFileReader (“file.txt”,“read”)D、FileInputStream in=new FileReader(new File(“file.txt”))

考题 阅读以下说明和Java码,将应填入(n)处的字名写在对应栏内。[说明] 编写一个字符界面的Java Application 程序,接受用户输入的10个整数,并输出这10个整数的最大值和最小值。import java. io. * ;public class abc{public static void main(String args [ ] ){ int i, n = 10 , max = 0 , min = 0 , temp = 0;try {BufferedReader br = new BufferedReader(new InputStreamReader( System. in) );(1));} catch ( IOException e ) { } ;for(i = 2 ;i <= n; i ++ ) {try {BufferedReader br = new BufferedReader(new InputStreamReader (System. in) );temp = Integer. parselnt(br. readLine( ) );if ( temp > max ) (2)if (temp < min) (3)} catch ( IOExeeption e ) { } ;System. out. println( "max =" + max + "\nmin =" + min);}}

考题 下列Java语句从指定网址读取html文件,在下画线处应填上的选项是( )。 Reader in=new (new URL(urlString). openStream);A.ReaderB.DataOutputStreamC.ByteArray InputStreamD.InputStreamReader

考题 USER_DATA is a nonencrypted tablespace that contains a set of tables with data. You want to convert all existing data in the USER_DATA tablespace and the new data into the encrypted format.Which methodswould you use to achieve this?()A. Use Data Pump to transfer the existing data to a new encrypted tablespaceB. Use ALTER TABLE MOVE to transfer the existing data to a new encrypted tablespaceC. Use CREATE TABLE AS SELECT to transfer the existing data to a new encrypted tablespaceD. Enable row movement for each table to be encrypted and then use ALTER TABLESPACE to encrypt the tablespaceE. Encrypt the USER_DATA tablespace using the ALTER TABLESPACE statement so that all the data in the tablespace is automatically encrypted

考题 下面Java语句从指定的网址读取HTML文件,在下画线处应填上的选项是 Reader in=new______(new URL(urlString).openStrream());A.ReaderB.DataOutputStreamC.ByteArrayInputStreamD.InputStreamReader

考题 在程序中,用户输入一个文件名,根据用户输入显示相应文件的信息。注意:请勿修改main()主方法和其他已有语句内容,仅在横线处填入适当语句。______java.io.*;public class basic{public static void main(String[] args){InputStreamReader reader;BufferedReader in;System.out.println("请输入文件名: ");try{reader=new InputStreamReader(______);in=new BufferedReader(reader);String filename=in.readLine();File file=new File(filename);System.out.println("文件名:"+file.______);System.out.println("路径:"+file.getAbsolutePath());System.out.println("大小:"+file.length());}catch(Exception e){e.printStackTrace();}}}

考题 本题提示输入年份,然后判断该年份是否为闰年。 importjava.io.*; public class javal{ public static void main(String[]args){ InputStreamReader ir; BufferedReader in; ir=new InputStreamReader(System.in); in=new BufferedReader(ir); int year=1900; System.out.print("请输入年份:"); try{ String s=in.readLine; ; } (Exception e){ } if( ) System.OUt.println(year+"是闰年"); else System.out.println(year+"不是闰年"); } }

考题 在J2EE中,为了使得在客户端可以接收用户在控制台上的键盘输入,且把键盘输入发送到服务器,同时还要接收服务器给客户端的反馈,需要构造三个用于输入输出的对象变量,以下代码符合要求的是()。其中clientSocket是一个Socket类的对象。     A、BufferedRead br1 = System.in; BufferedRead br2 = new BufferedReader(clientSocket.getInputStream())); PrintStream ps = new PrintStream(clientSocket.getOutputStream());B、BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));BufferedReader br2 = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));PrintStream ps = new PrintStream(clientSocket.getOutputStream());C、 BufferedRead br1 = new InputStreamReader(System.in); BufferedReader br2 = newInputStreamReader(clientSocket.getInputStream()); PrintStream ps = new PrintStream(clientSocket.getOutputStream());D、 BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));BufferedReader br2 = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); PrintStream ps = clientSocket.getOutputStream();

考题 在J2EE中,以下各项中,()正确阐述了创建inputstreamreader的方式 A、new InputStreamReader(new  FileInputStream(“data”))B、new InputStreamReader (new  FileReader(“data”))C、new InputStreamReader (new  BufferedReader(“data”))D、new InputStreamReader ( “data”)

考题 在J2EE中,下面代码中,()不会编译错误。    A、File f = new File("/","autoexec.bat");B、DataInputStream din = new DataInputStream(new FileInputStream("autoexec.bat"));C、InputStreamReader in = new InputStreamReader(System.in);D、OutputStreamWriter out = new OutputStreamWriter(System.in);

考题 在J2EE中,利用下列构造函数准备对文件abc.txt操作,但文件abc.txt在当前目录不存在,不会产生运行时错误的是()。 A、BufferedReader  breader=new BufferedReader(new FileReader("abc.txt"));B、PrintWriter out = new PrintWriter(new FileWriter(“abc.txt”),true);C、FileInputStream fin = new FileInputStream(“abc.txt”);D、OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(“abc.txt”));

考题 J2EE中,以下各项中,()正确阐述了创建InputStreamReader的方式。A、new InputStreamReader(new FileInputSteream(“data”));B、new InputStreamReader(new FileFileReader (“data”));C、new InputStreamReader(new BufferedReader(“data”));D、new InputStreamReader(“data”);

考题 An administrator is creating a new data retention policy. Which of the following is the MOST important consideration?()A、Compile technical requirements for new policyB、Comply with applicable laws and regulationsC、Destroy the old data retention policyD、Have hard copies of the new policy stored offsite

考题 The technician is working on a system and has determined that the hard drive must be reimaged. However, the customer wants to retain all the data. Which of the following would take the LEAST amount of time to implement?()A、Create a new partition on the hard drive, copy all data to the new partition, reimage the drive, and the old data will be on the new partition and accessible.B、Install a new hard drive, slave the old drive, image the new drive, and show the customer how to access their data on the old drive.C、Upload the data to an external FTP server, reimage the drive, and then restore the data to the newly imaged drive.D、Copy data to a USB connected hard drive, reimage the drive, and then restore the data to the newly imaged drive.

考题 Which two create an InputStream and open file the “file.txt” for reading? ()A、 InputStream in=new FileReader(“file.txt”);B、 InputStream in=new FileInputStream(“file.txt”);C、 InputStream in=new InputStreamFileReader (“file.txt”, “read”);D、 FileInputStream in=new FileReader(new File(“file.txt”));E、 FileInputStream in=new FileInputStream(new File(“file.txt”));

考题 USER_DATA is a nonencrypted tablespace that contains a set of tables with data. You want to convert all existing data in the USER_DATA tablespace and the new data into the encrypted format. Which methodswould you use to achieve this?()A、Use Data Pump to transfer the existing data to a new encrypted tablespaceB、Use ALTER TABLE MOVE to transfer the existing data to a new encrypted tablespaceC、Use CREATE TABLE AS SELECT to transfer the existing data to a new encrypted tablespaceD、Enable row movement for each table to be encrypted and then use ALTER TABLESPACE to encrypt the tablespaceE、Encrypt the USER_DATA tablespace using the ALTER TABLESPACE statement so that all the data in the tablespace is automatically encrypted

考题 多选题在J2EE中,利用下列构造函数准备对文件abc.txt操作,但文件abc.txt在当前目录不存在,不会产生运行时错误的是()。ABufferedReader  breader=new BufferedReader(new FileReader(abc.txt));BPrintWriter out = new PrintWriter(new FileWriter(“abc.txt”),true);CFileInputStream fin = new FileInputStream(“abc.txt”);DOutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(“abc.txt”));

考题 单选题在J2EE中,以下各项中,()正确阐述了创建inputstreamreader的方式A new InputStreamReader(new  FileInputStream(“data”))B new InputStreamReader (new  FileReader(“data”))C new InputStreamReader (new  BufferedReader(“data”))D new InputStreamReader ( “data”)

考题 单选题在J2ee中,以下各项中,()正确阐述了创建InputStreamReader的方式。A new InputStreamReader(new FileInputStream(data));B new InputStreamReader(new FileReaderdata));C new InputStreamReader(new BufferedReader(data));D new FileInputStream(data)

考题 单选题J2EE中,以下各项中,()正确阐述了创建InputStreamReader的方式。A new InputStreamReader(new FileInputSteream(“data”));B new InputStreamReader(new FileFileReader (“data”));C new InputStreamReader(new BufferedReader(“data”));D new InputStreamReader(“data”);

考题 多选题Which two create an InputStream and open file the “file.txt” for reading? ()AInputStream in=new FileReader(“file.txt”);BInputStream in=new FileInputStream(“file.txt”);CInputStream in=new InputStreamFileReader (“file.txt”, “read”);DFileInputStream in=new FileReader(new File(“file.txt”));EFileInputStream in=new FileInputStream(new File(“file.txt”));

考题 单选题在J2EE中,为了使得在客户端可以接收用户在控制台上的键盘输入,且把键盘输入发送到服务器,同时还要接收服务器给客户端的反馈,需要构造三个用于输入输出的对象变量,以下代码符合要求的是()。其中clientSocket是一个Socket类的对象。A BufferedRead br1 = System.in; BufferedRead br2 = new BufferedReader(clientSocket.getInputStream())); PrintStream ps = new PrintStream(clientSocket.getOutputStream());B BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));BufferedReader br2 = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));PrintStream ps = new PrintStream(clientSocket.getOutputStream());C  BufferedRead br1 = new InputStreamReader(System.in); BufferedReader br2 = newInputStreamReader(clientSocket.getInputStream()); PrintStream ps = new PrintStream(clientSocket.getOutputStream());D  BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));BufferedReader br2 = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); PrintStream ps = clientSocket.getOutputStream();

考题 单选题The technician is working on a system and has determined that the hard drive must be reimaged. However, the customer wants to retain all the data. Which of the following would take the LEAST amount of time to implement?()A Create a new partition on the hard drive, copy all data to the new partition, reimage the drive, and the old data will be on the new partition and accessible.B Install a new hard drive, slave the old drive, image the new drive, and show the customer how to access their data on the old drive.C Upload the data to an external FTP server, reimage the drive, and then restore the data to the newly imaged drive.D Copy data to a USB connected hard drive, reimage the drive, and then restore the data to the newly imaged drive.

考题 多选题在J2EE中,下面代码中,()不会编译错误。AFile f = new File(/,autoexec.bat);BDataInputStream din = new DataInputStream(new FileInputStream(autoexec.bat));CInputStreamReader in = new InputStreamReader(System.in);DOutputStreamWriter out = new OutputStreamWriter(System.in);