下面不属于File类构造方法的是()。
A: File(String filename)
B: File(String directoryPath,String filename)
C: File(File f, String filename)
D: File( )
A: File(String filename)
B: File(String directoryPath,String filename)
C: File(File f, String filename)
D: File( )
举一反三
- File类的构造方法public File(String parent, String child)中,参数child是( )
- 下列__________说法是正确的?I:File file = new File("input.txt");try (Scanner input = new Scanner(file)) { String line = input.nextLine();}II:try (File file = new File("input.txt"); Scanner input = new Scanner(file);) { String line = input.nextLine();}III:File file;try (file = new File("input.txt"); Scanner input = new Scanner(file);) { String line = input.nextLine();}IV:File file;Scanner input;try (file = new File("input.txt"); input = new Scanner(file);) { String line = input.nextLine();} A: I B: II C: III D: IV
- 以下哪个类不可以作为File类的构造方法的参数?() A: File B: String C: char[] D: URL
- $FILE["filename"]["size"]是指
- 下列语句正确的有() 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”%