All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: About Question enthuware.ocajp.i.v7.2.1063 :
PostPosted: Mon Mar 07, 2016 4:59 am 
Offline

Joined: Mon Mar 07, 2016 4:55 am
Posts: 2
Hi there

I guess there is a small typo in this question. The example ist based on the image above. On the image the class-name is "Stock.class". But in the question itself, there is "class StockQuote".

Best regards
Andreas


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 :
PostPosted: Mon Mar 07, 2016 10:36 am 
Offline
Site Admin

Joined: Fri Sep 10, 2010 9:26 pm
Posts: 7095
That is because there are two different classes - Stock.class is present in the location given in the picture and StockQuote is yet to be compiled (as per the question) and so is not shown in the the picture.

HTH,
Paul.


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 :
PostPosted: Mon Mar 07, 2016 12:36 pm 
Offline

Joined: Mon Mar 07, 2016 4:55 am
Posts: 2
Thanks for the quick answer. That was not so clear for me when I made the test. Now its clear.


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 :
PostPosted: Sun Sep 11, 2016 1:16 am 
Offline

Joined: Fri Sep 09, 2016 10:57 pm
Posts: 3
MY bad


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 :
PostPosted: Mon Apr 16, 2018 2:00 pm 
Offline

Joined: Tue Nov 07, 2017 8:23 am
Posts: 4
when I type the method with the throws IOException i get a compilation error stating" cannot find symbol" but as
soon as I type import java.io the compilation error is no longer there.
One of the options given as a potential answer is :
It is not required to import java.io.* or import java.io.IOException because java.io package is imported automatically.
Why do I get a Compilation Error if the above statement says that it is automatically imported


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 :
PostPosted: Mon Apr 16, 2018 8:27 pm 
Offline
Site Admin

Joined: Fri Sep 10, 2010 9:26 pm
Posts: 7095
That is an incorrect option. You do need import java.io.* or import java.io.IOException if you are using IOException in your code.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Template made by DEVPPL/ThatBigForum