网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
2. The extension name of a Java bytecode file is _______.A. .java B. .obj C. .class D. .exe
参考答案
更多 “ 2. The extension name of a Java bytecode file is _______.A..javaB..objC..classD..exe ” 相关考题
考题
【Java代码】import Java.util.ArrayList;import java.util.List;(1) class AbstractFile{protected String name;public void printName(){System.out.println(name);}public abstract boolean addChild(AbstractFile file);public abstract boolean removeChild(AbstractF ile file);public abstract ListAbstractFile getChildren();}class File extends AbstractFile{public File(String name){this.name=name;}public boolean addChild(AbstractFile file){return false;}public boolean removeChild(AbstractFile file){return false;}public ListAbstractFile getChildren(){return (2) ;}}class Folder extends AbstractFile{private List AbslractFile childList;public Folder(String name){this.name=name;this.childList=new ArrayListAbstractFile();}public boolean addChild(AbstractFile file) { return childList.add(file);}public boolean removeChild(AbstractFile file){return childList.remove(file);}public (3) AbstractFile getChildren(){return (4) ;}}public class Client{public static void main(String[] args){//构造一个树形的文件/目录结构AbstractFile rootFolder= new Folder("c:\\ ");AbstractFile compositeFolder=new Folder("composite");AbstractFile windowsFolder=new Folder("windows");AbstractFile file=new File("TestComposite.java");rootFolder.addChild(compositeFolder) ;rootFolder.addChild(windowsFolder);compositeFolder.addChild(file) ;//打印目录文件树printTree(rootFolder);}private static void printTree(AbslractFile ifile){ifile.printName();List AbslractFile children=ifile.getChildreno:if(children==null) return;for (AbstractFile file:children) {(5) ;}}}该程序运行后输出结果为:c:\compositeTestComposite.javaWindows
考题
下列程序中,要求输出一个特定文件(这里是ex1.java)的相关信息,包括文件的名字,相对路径以及文件的长度。请将程序补充完整。程序运行结果如下:name:ex1.javapath:ex1.javalength:299注意:不改动程序结构,不得增行或删行。import java.io.*;public class ex1{public static void main(String[] args){File filel=new File("ex1.java");System.out println("name:"+file1.______);System.out println("path:"+file1.______);System.out println("length:"+file1.______);}}
考题
YoucreateaWebpagethatcontainsthefollowingcode.Youneedtoprovidethefollowingimplementation.EachtimetheAddFilebuttonisclicked,anewdivelementiscreated.ThenewdivelementisappendedaftertheotherfileuploaddivelementsandbeforetheAddFilespan.Eachnewelementhasauniqueidentifier.Whichcodesegmentshouldyouuse?()A.$(#AddFile).click(function(){varid=File+++lastId;varitem=$(.File:first).clone(true);$(input:file,item).attr({id:id,name:id});item.insertBefore(#AddFile);});B.$(#AddFile).click(function(){varid=File+++lastId;$(.File:first).clone(true).attr({id:id,name:id}).insertBefore(#AddFile);});C.$(#AddFile).click(function(){varid=File+++lastId;});D.$(#AddFile).click(function(){varid=File+++lastId;varitem=$(.File:first).clone(true);$(input:file,item).attr({id:id,name:id});item.insertAfter(input[type=file]);});
考题
Whenperformingadatabaseduplication,whichduplicatedatabaseparameterwouldyousettoensurethattheonlineredologsarecreatedinthecorrectlocation?()
A.log_file_name_convertB.convert_log_file_nameC.file_name_convert_logD.redo_log_file_name_convertE.logfile_convert_directory
考题
阅读下列说明和c++代码,将应填入 (n) 处的字句写在答题纸的对应栏内。【说明】现欲构造一文件/目录树,采用组合(Composite)设计模式来设计,得到的类图如6—7所示:【c++代码】include1istincludeincludeusing namespace std;class AbstractFile{protected:string name;//文件或目录名称public:void printName(){cout*getChildren()=0; //获得一个目录的子目录或文件};class File:public AbstractFile{public:File(string name){ (1) =name;)void addChild(AbstractFile*file){return ;)void removeChiid(AbstractFile*file){return;}(2) getChildren(){return ( 3 ) ;}};class Folder:public AbstractFile{private:listchildList; //存储子目录或文件public:Folder(string name){ (4) =name;}void addChild(AbstractFile*file){childList.push back(file);}void removeChiid(AbstractFile*file)(chiidList.remove(file);}list*getChildren(){return (5) ;)};voidmain(){//构造一个树形的文件/目录结构AbstractFile*rootFolder=new Folder(“C:\\”);AbstractFile*compositeFolder=flew Folder(”composite”);AbstractFile*windowsFolder=new Folder(”windows”);AbstractFile*file=new File(”TestComposite.java”);rootFolder-addChild(compositeFolder);rootFolder-addChild (windowsFolder);compositeFolder-addChiid(file);)
考题
阅读下列说明和Java代码,将应填入 (n) 处的字句写在答题纸的对应栏内。【说明】现欲构造一文件/目录树,采用组合(Composite)设计模式来设计,得到的类图如6—8所示:【Java代码】import JavA.util.ArrayList;import JavA.util.List;(1)class AbstractFile{protected String name;public void printName(){System.out.println(name);}public abstract boolean addChild(AbstractFile file);public abstract boolean removeChild(AbstractFile file);public abstract ListgetChildren {};}class File extends AbstractFile{public File(String name)(this.name=name;}public boolean addChild(AbstractFile file){return false;}public boolean removeChild(AbstractFile file){return false;}public ListgetChildren(){return (2) ;)}clasS Folder extends AbstractFile{private ListchildList;public Folder(String name){thiS.name=name;this.childList=new ArrayList{};}public boolean addChild(AbstractFile file){return childList.add(file);}public boolean removeChild(AbstractFile file){return childList.remove(file);public (3)getChildren(){return (4) ;)}public class Client{public static void main(String[]args){//构造一个树形的文件/目录结构AbstractFile rootFolder=new Folder(“C:\”’);AbstractFile compositeFolder=new Folder(”composite”);AbstractFile windowsFolder=new Folder(”windows”);AbstractFile file=new File(”TestComposite.java”);rootFOlder.addChild (compositeFolder);rootFolder.addChiid(windowsFolder);compositeFolder.addChild(file);//打印目录文件树printTree(rootFolder);}private static void printTree(AbstractFile ifile){ifile.PrIntName();Listchildren:ifile.getChildren ();if(chiidren==null)return;for(AbstractFile file:children){(5) ;}}}该程序运行后输出结果为:C:\compositeTestComposite.javaWindows
考题
下列程序中,要求输出一个特定文件(这里是ex2_1.java)的相关信息,包括文件的名字,相对路径以及文件的长度。请将程序补充完整。程序运行结果如下:name:ex2_1.javapath:ex2_1.javalength: 299import java.io.*;public class ex2_1{public static void main(String[] args) {File file2_1 = new File("ex2_1.java");System.out.println("name:"+file2_1.____________ );System.out.println("path:"+file2_1.____________ );System.out.println("length:"+file2_1.____________ );}}
考题
Which file characteristic cannot be used in the Cisco IronPort Data Security policies?() A、 file typeB、 file sizeC、 file ageD、 file name
考题
下列语句正确的有()A、%@ include file=”head.jsp”% B、% String url=”head.jsp”;%%@ include file=”url”% C、%@ include file=”head.jsp”?name=”lovo”% D、%String companyName=”lovo”;%%@include file”head.jsp”?name=‟companyName”%
考题
public class test { public static void main(String [] a) { assert a.length == 1; } } Which two will produce an AssertionError?()A、 java testB、 java -ea testC、 java test file1D、 java -ea test file1E、 java -ea test file1 file2F、 java -ea:test test file1
考题
Which statements about Java code security are true?() A、 The bytecode verifier loads all classes needed for the execution of a program.B、 Executing code is performed by the runtime interpreter.C、 At runtime the bytecodes are loaded, checked and run in an interpreter.D、 The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.
考题
为文件c:/java/example/file.txt建立File对象file1可以采用()语句序列。A、File file 1=new File(“c://java//example//file.txt”)B、String path=”c:/java/example/”Filefile1=newFile(path,”oldfile.txt”)C、File dir 1=new File(“c://java//example”)Filefile1=newFile(dir1,”oldfile.txt”)D、File file 1=new File(“c:/java//example/file.txt”)
考题
Which of the following will occur if an operator types the command vi file.out?()A、If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.B、If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.C、If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.D、If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.
考题
Which gets the name of the parent directory file “file.txt”?()A、 String name= File.getParentName(“file.txt”);B、 String name= (new File(“file.txt”)).getParent();C、 String name = (new File(“file.txt”)).getParentName();D、 String name= (new File(“file.txt”)).getParentFile();E、 Directory dir=(new File (“file.txt”)).getParentDir(); String name= dir.getName();
考题
You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster. Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()A、Implementation-VersionB、Specification-VersionC、Extension-Name D、Specification-VendorE、Implementation-Vendor
考题
You have forgotten the name of binary PL/SQL library saved to the operating system. This file contains the PL/SQL constricts you created for the inventory report. For which file extension should you reach?()A、 .SQL B、 .PLL C、 .PLDD、 .PRT
考题
When performing a database duplication, which duplicate database parameter would you set to ensure that the online redo logs are created in the correct location?() A、 log_file_name_convertB、 convert_log_file_nameC、 file_name_convert_logD、 redo_log_file_name_convertE、 logfile_convert_directory
考题
如果你想要自动加载类,下面哪种函数声明是正确的?()A、function autoload($class_name)B、function__autoload($class_name,$file)C、function__autoload($class_name)D、function_autoload($class_name)E、function autoload($class_name,$file)
考题
单选题Which of the following will occur if an operator types the command vi file.out?()A
If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.B
If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.C
If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.D
If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.
考题
多选题Which statements about Java code security are true?()AThe bytecode verifier loads all classes needed for the execution of a program.BExecuting code is performed by the runtime interpreter.CAt runtime the bytecodes are loaded, checked and run in an interpreter.DThe class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.
考题
单选题下列语句正确的有()A
%@ include file=”head.jsp”% B
% String url=”head.jsp”;%%@ include file=”url”% C
%@ include file=”head.jsp”?name=”lovo”% D
%String companyName=”lovo”;%%@include file”head.jsp”?name=‟companyName”%
考题
单选题Which gets the name of the parent directory file “file.txt”?()A
String name= File.getParentName(“file.txt”);B
String name= (new File(“file.txt”)).getParent();C
String name = (new File(“file.txt”)).getParentName();D
String name= (new File(“file.txt”)).getParentFile();E
Directory dir=(new File (“file.txt”)).getParentDir(); String name= dir.getName();
考题
单选题When performing a database duplication, which duplicate database parameter would you set to ensure that the online redo logs are created in the correct location?()A
log_file_name_convertB
convert_log_file_nameC
file_name_convert_logD
redo_log_file_name_convertE
logfile_convert_directory
考题
单选题Which file characteristic cannot be used in the Cisco IronPort Data Security policies?()A
file typeB
file sizeC
file ageD
file name
考题
单选题You have forgotten the name of binary PL/SQL library saved to the operating system. This file contains the PL/SQL constricts you created for the inventory report. For which file extension should you reach?()A
.SQL B
.PLL C
.PLDD
.PRT
考题
多选题为文件c:/java/example/file.txt建立File对象file1可以采用()语句序列。AFile file 1=new File(“c://java//example//file.txt”)BString path=”c:/java/example/”Filefile1=newFile(path,”oldfile.txt”)CFile dir 1=new File(“c://java//example”)Filefile1=newFile(dir1,”oldfile.txt”)DFile file 1=new File(“c:/java//example/file.txt”)
热门标签
最新试卷