What is the result? - ProProfs Discuss
Advertisement

What is the result?

You execute the code below in an empty directory. File f1 = new File(dirname); File f2 = new File(f1, filename);

Asked by Pioneersuri, Last updated: Apr 01, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

Carice Snow

Carice Snow

I am a well trend Motivational speaker at California.

Carice Snow
Carice Snow, Motivator, MA, California

Answered Jan 17, 2019

It has already been stated that the directory is empty so even with the code, there will be no directory that will form and there will be no file that will be created as well.

Programming may be complicated for a lot of people but this is something that some people need in their daily lives. It is through programming that the input and output of machines can become faster. We can also manually program ourselves in order to become better people especially if we need to make some changes in order to do certain tasks and certain things.

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Jun 12, 2017

No directory is created, and no file is created
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.