|
|
Page 1 of 1
|
[ 6 posts ] |
|
Author |
Message |
rekoch
|
Post subject: About Question enthuware.ocajp.i.v7.2.1063 : Posted: Mon Mar 07, 2016 4:59 am |
|
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 |
|
 |
admin
|
Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 : Posted: Mon Mar 07, 2016 10:36 am |
|
 |
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 |
|
 |
rekoch
|
Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 : Posted: Mon Mar 07, 2016 12:36 pm |
|
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 |
|
 |
Hissam
|
Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 : Posted: Sun Sep 11, 2016 1:16 am |
|
Joined: Fri Sep 09, 2016 10:57 pm Posts: 3
|
|
Top |
|
 |
SeoaneR
|
Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 : Posted: Mon Apr 16, 2018 2:00 pm |
|
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 |
|
 |
admin
|
Post subject: Re: About Question enthuware.ocajp.i.v7.2.1063 : Posted: Mon Apr 16, 2018 8:27 pm |
|
 |
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 |
|
 |
|
Page 1 of 1
|
[ 6 posts ] |
|
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
|
|
|