单选题Which determines if “prefs” is a directory and exists on the file system?()A Boolean exists=Directory.exists (“prefs”);B Boolean exists=(new File(“prefs”)).isDir();C Boolean exists=(new Directory(“prefs”)).exists();D Boolean exists=(new File(“prefs”)).isDirectory();E Boolean exists=true;  Try{  Directory d = new Directory(“prefs”);  } catch (FileNotFoundException e) {  exists = false;  }

单选题
Which determines if “prefs” is a directory and exists on the file system?()
A

 Boolean exists=Directory.exists (“prefs”);

B

 Boolean exists=(new File(“prefs”)).isDir();

C

 Boolean exists=(new Directory(“prefs”)).exists();

D

 Boolean exists=(new File(“prefs”)).isDirectory();

E

 Boolean exists=true;  Try{  Directory d = new Directory(“prefs”);  } catch (FileNotFoundException e) {  exists = false;  }


参考解析

解析: 暂无解析

相关考题:

Object-oriented analysis(OOA)is a semiformal specification technique for the object-oriented paradigm. Object-oriented analysis consists of three steps. The first step is(71). It determines how the various results are computed by the product and presents this information in the form. of a(72)and associated scenarios. The second is(73), which determines the classes and their attributes. Then determine the interrelationships and interaction among the classes. The last step is(74), which determines the actions performed by or to each class or subclass and presents this information in the form. of(75).A.use-case modelingB.class modelingC.dynamic modelingD.behavioral modeling

Object-oriented analysis (OOA) is a semiformal specification technique for the object-oriented paradigm. Object-oriented analysis consists of three steps. The first step is(71) . It determines how the various results are computed by the product and presents this information in the form. of a(72) and associated scenarios. The second is(73) , which determines the classes and their attributes, then determines the interrelationships and interaction among the classes. The last step is(74) , which determines the actions performed by or to each class or subclass and presents this information in the form. of (75) .A.static modelingB.dynamic modelingC.use-case modelingD.behavioral modeling

College isn't the only place ( ) information exists. A、whereB、thatC、whatD、which

To ( ) the problem of overcrowding which exists in many hospitals, new hospitals will be built. A.easeB.relaxC.depriveD.encounter

Whichdeterminesif“prefs”isadirectoryandexistsonthefilesystem?() A.Booleanexists=Directory.exists(“prefs”);B.Booleanexists=(newFile(“prefs”)).isDir();C.Booleanexists=(newDirectory(“prefs”)).exists();D.Booleanexists=(newFile(“prefs”)).isDirectory();E.Booleanexists=true;Try{Directoryd=newDirectory(“prefs”);} catch(FileNotFoundExceptione){exists=false;}

Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment variable is set to . (current directory). Which two java commands entered at the command line will run MainClass?()A.java MainClass if run from the /apps directoryB.java com.company.application.MainClass if run from the /apps directoryC.java -classpath /apps com.company.application.MainClass if run from any directoryD.java -classpath . MainClass if run from the /apps/com/company/application directoryE.java -classpath /apps/com/company/application:. MainClass if run from the /apps directoryF.java com.company.application.MainClass if run from the /apps/com/company/application directory

__determines a good meal varies from country to country.A.WhatB.ThatC.ItD.Which

Object-oriented analysis(OOA.is a semiformal specification technique for the object-oriented paradigm.Object-oriented analysis consists of three steps.The first step is( ).It determines how the various results are computed by the product and presents this information in the form of a( )and associated scenarios.The second is( ),which determines the classes and their attributes.Then determine the interrelationships and interaction among the classes.The last step is( ),which determines the actions performed by or to each class or subclass and presents this information in the form of(请作答此空).A.activity diagramB.component diagramC.sequence diagramD.state diagram

Part of the job as a network administrator is being able to make a distinction between routed protocols and routing protocols. Which of the following statements is true regarding them?()A、A routing protocol is assigned to an interface and determines the method of packet delivery.B、A routed protocol is assigned to an interface and determines the method of packet delivery.C、A routing protocol determines the path of a packet through a network.D、A routed protocol determines the path of a packet through a network.E、A routing protocol operates at the transport layer of the OSI model.F、A routed protocol updates the routing table of a router.

Which of the following statements regarding routed and routing protocols are true?()A、A routed protocol is assigned to an interface and determines the method of packet deliver.B、A routing protocol determines the path of a packet through a network.C、A routed protocol determines the path of a packet through a network.D、A routing protocol operates at the transport layer of the OSI model.E、A routed protocol updates the routing table of a router.

Which of the following determines if the alarm should sound or an entry delay should start?()A、The sensor itselfB、The way the zones are wiredC、The zone typeD、The digital dialer

Which statement is true about the routing table?()A、The routing table exists in the control plane onlyB、The routing table exists in the control plane and the forwarding planeC、The routing table contains both active and inactive routesD、The routing table is stored on compact flash

Which of the following does an astronomical time clock do?()A、Determines the ambient light at night with a photocell.B、Calculates sunset and sunrise times based on geographical area.C、Determines the start and end of each of the seasons.D、Synchronizes the local time displayed with the official world time.

Which of the following server types stores users’ home directory folders?()A、ApplicationB、FileC、Directory servicesD、Print

Which of the following routing protocols runs over UDP and determines path based upon distancevectors?()A、RIPB、DSIC、BGPD、IS-IS

A file named "core" exists in the current directory.  Which of the following commands should be used to determine what created the "core" file?()A、 dump -t core B、 strings core C、 trace -a core D、 crash core /unix_up

When the clverify utility is run,verification checks use ODM data provided by the common communication infrastructure. This provides efficient access to configuration ODMs from the other nodes. The utility manages these files by storing the copies in various directories depending on the success or failure of the verification pass.  By default,this directory is "/var/hacmp/clverify/current/nodename/ if the ’current’ directory still exists when clverify stops running,this indicates which of the following?()A、 A successful completion of clverifyB、 A problem with the clverify utilityC、 All nodes agree on active configurationD、 Configuration differences between current and last successful clverify

Which determines if “prefs” is a directory and exists on the file system?()  A、 Boolean exists=Directory.exists (“prefs”);B、 Boolean exists=(new File(“prefs”)).isDir();C、 Boolean exists=(new Directory(“prefs”)).exists();D、 Boolean exists=(new File(“prefs”)).isDirectory();E、 Boolean exists=true;  Try{  Directory d = new Directory(“prefs”);  } catch (FileNotFoundException e) {  exists = false;  }

单选题The stability which exists after the unintentional flooding of a compartment on a ship is called().Aintact stabilityBinitial stabilityCimmersion stabilityDdamage stability

单选题A file named "core" exists in the current directory.  Which of the following commands should be used to determine what created the "core" file?()A dump -t core B strings core C trace -a core D crash core /unix_up

多选题Part of the job as a network administrator is being able to make a distinction between routed protocols and routing protocols. Which of the following statements is true regarding them?()AA routing protocol is assigned to an interface and determines the method of packet delivery.BA routed protocol is assigned to an interface and determines the method of packet delivery.CA routing protocol determines the path of a packet through a network.DA routed protocol determines the path of a packet through a network.EA routing protocol operates at the transport layer of the OSI model.FA routed protocol updates the routing table of a router.

多选题Given: And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory). Which two java commands entered at the commandline will run MainClass?()Ajava MainClass if run from the /apps directoryBjava com.company.application.MainClass if run from the /apps directoryCjava -classpath /apps com.company.application.MainClass if run from any directoryDjava -classpath . MainClass if run from the /apps/com/company/application directoryEjava -classpath /apps/com/company/application:. MainClass if run from the /apps directory

单选题Which of the following routing protocols runs over UDP and determines path based upon distancevectors?()ARIPBDSICBGPDIS-IS

单选题A receiving host computes the checksum on a frame and determines that the frame is damaged.Theframe is then discarded.At which OSI layer did this happen?()AsessionBnetworkCphysicalDdatalinkEtransport

多选题Which of the following statements regarding routed and routing protocols are true?()AA routed protocol is assigned to an interface and determines the method of packet deliver.BA routing protocol determines the path of a packet through a network.CA routed protocol determines the path of a packet through a network.DA routing protocol operates at the transport layer of the OSI model.EA routed protocol updates the routing table of a router.

单选题A receiving host computes the checksum on a frame and determines that the frame is damaged.The frame is then discarded.At which OSI layer did this happen?()AsessionBnetworkCPhysicalDdata linkETransport

多选题10. class MakeFile {  11. public static void main(String[] args) {  12. try {  13. File directory = new File(”d”);  14. File file = new File(directory,”f”);  15. if(!file.exists()) {  16. file.createNewFile();  17. }  18. } catch (IOException e) {  19. e.printStackTrace  20. }  21. }  22. }  The current directory does NOT contain a directory named “d.” Which three are true?()ALine 16 is never executed.BAn exception is thrown at runtime.CLine 13 creates a File object named “d”.DLine 14 creates a File object named “f‟.ELine 13 creates a directory named “d” in the file system.FLine 16 creates a directory named “d” and a file “f”  within it in the file system.GLine 14 creates a file named f inside of the directory named “d” in the file system.