5. What is the output of the following java code? = new File ("C:\\Users\\t99\\Desk System.out.print (obj.getName ()); File obj a. C:\\Users\\soh9912\\Desktop\\java.txt b. Desktop\\java.txt C. java.txt d. java

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question
5. What is the output of the following java code?
File obj = new File ("C:\\Users\\t99\\Desktop\\java.txt");
System.out.print (obj.getName () ):
a. C:\\Usersl\soh9912\\Desktop\\java.txt
b. Desktop\\java.txt
C. java.txt
d. java
W
DELL
目
Transcribed Image Text:5. What is the output of the following java code? File obj = new File ("C:\\Users\\t99\\Desktop\\java.txt"); System.out.print (obj.getName () ): a. C:\\Usersl\soh9912\\Desktop\\java.txt b. Desktop\\java.txt C. java.txt d. java W DELL 目
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT