Charles O'Leary

Ranch Hand
+ Follow
since Jul 10, 2014
Cows and Likes
Cows
Total received
8
In last 30 days
0
Total given
0
Likes
Total received
66
Received in last 30 days
4
Total given
36
Given in last 30 days
2
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Charles O'Leary

Stephan van Hulst wrote:Jeanne, I think the ambiguity that Charles is referring to is not in the initialization of the inner variable, but in the formal type of the variable declaration itself. If you removed outer.new Inner() from the declaration of Inner inner, Inner would still refer to Outer.Inner.

Java resolves the ambiguity by using the type in the deepest scope that encloses the variable declaration. The dirty details are in chapters 6.3 and 6.5 of the JLS. I'll see if I can quote the relevant parts after dinner.

Yep!  I hope this isn't an exam question!  
Why doesn't the compiler complain below about an ambiguous (declaration) reference when attempting to resolve Inner when it is both a top level class and an inner/member class?


(I added the top level class to a Sybex CSG code example and both compiled and ran it.)

a complicated way to print Hi three times



Mariusz Ugoda wrote:Thanks. Cannot imagine better answer.


... and Welcome to CodeRanch!

Mariusz Ugoda wrote:Is there still any reason for taking 1z0-817 instead of 1z0-819?

1Z0-819 Exam vs 1Z0-817 Upgrade Exam: Scott’s Recommendation

From Oracle:

Oracle Certification Program normally provides 90 days notice for the retirement of any certification exam.



I would purely speculate that to be on the safest side, you may want to set a goal for anytime before the next LTS (slated no earlier than Sept 2021).

Edmund Yong wrote:Hi Charles,

I'm sorry to learn that you didn't pass 816. I think you should aim for 819. It doesn't seem to make sense to go for Java 8 certification now. I'm sure this certification will retire soon. So why stress yourself again with another possible deadline? If you go for 819, you can take all the time you need to study. For your info, I have used Java 8 for a few years now as it is the version we use in my company, but I've never used any of the Java 11 features in work.


Under adverse circumstances, I would argue that it was a wise gamble (that I lost money on, but gained experience nevertheless).  819 expects too much (1299 pages of Sybex book info across 22 Chapters + Appendix + the Supplemental external Security info)  in too little time for one sitting, especially for a turtle like myself who always welcomes as much time as I can get (and uses at least 6 other programming languages on the job, so my mental capacity will come into question obviously).

I would imagine those that are looking at Java certification for the very first time may additionally be discouraged at 819.  

Here' Scott's Taking the 1Z0-819 Exam: Study Everything and Watch the Clock! (Part 2 of 2) latest post.

Personally, I think that it would be nice if Oracle would elect to increase the time to 3 hours to match the other exams without further changing anything else about 819.  Any Oracle employees reading this right now?  Can you put that in the suggestion box?  (Although, re-establishing 816 would be ideal... holding my breathe for that one. )
Jeanne and/or Scott,

Thanks!  I am conflicted since I feel as if the rug was pulled out from underneath me and, thanks to your only partially read 816 book by me, I nearly passed 816 on Sept 30 without the opportunity to fully prepare for 816.

From Oracle:

Oracle Certification Program normally provides 90 days notice for the retirement of any certification exam.


I've been thinking about 809 now that 816 has never existed and I don't see a date in sight as to when my employer will be migrating to Java 11.  (We aren't fully migrated to Java 8 yet.)  When you worked with Oracle, were you able to get a sense of their thinking in removing 816 and how and/or why Oracle's thinking would not also prompt Oracle to also eventually abruptly remove 809 as well?  

In other words, do you have a firm commitment from Oracle that they will not retire 809 within the next 6 months?
features.png or feathers.png?  Should likely be the same in the sentence and actual code?

Let’s take a look at some sample code that operates on a features.png file in the
/ostrich directory.  

print

For example, you might want to write an application that asks a user to log in and prints a success message.

Ilenia Salvadori wrote:What I can say is that the book covers the totality of the exam topics, as mentioned in the book itself, and I found pretty useful also the various tips that there are overall the book.
They help you training and get used to pay attention to the right details.
I would not feel comfortable skipping anything, I would say.



Congratulations again Ilenia!  Thanks for sharing your experience on how to prepare when using the book.

Ilenia Salvadori wrote:I have to thank my employers, who gave me the time to prepare, and also the super helpful Java OCP 11 Programmer II Study Guide.



Congratulations Ilenia!  

In your exam, do you remember seeing questions from each of the tables or just specific ones?  If you had to cram all over again for the same exact exam that you already took and looking back in hindsight, were they any specific areas from the book that you would now feel comfortable skipping?
Above Figure 6.9, I think that "package" should be plural and the a should be omitted:

We created a new packages to put in that module.


since the number of packages increase from 7 to 9.

Hi Ranchers,

I think I follow all the moving parts of Figures 6.6 and 6.7, but I have questions about how I should be interpreting (summary?) Table 6.7.

When Bottom-Up has "A project that depends on all others"  then it must have an "Unnamed module on the classpath".   I take that to mean that regardless of which phase 2,3, or 4, then chicken would be unnamed?  But, chicken is only unnamed for phases 2 and 3 and is named only in phase 4. Please clear my confusion here.  

When Bottom-Up has "A project that has no dependencies"  then it must have a "Named module on the module path".   I take that to mean that regardless of which phase 2,3, or 4, then egg would be named?  Obviously, this appears to be true here.

When Top-Down has "A project that depends on all others"  then it must have a "Named module on the module path.  I take that to mean that regardless of which phase 2,3, or 4, then chicken would be named?  Since it appears to be, I think that I have no issues with this one.  

When Top-Down has "A project that has no dependencies"  then it must have an "Automatic module on the module path".  I take that to mean that regardless of which phase 2,3, or 4, then egg would be automatic?  Obviously, egg is only automatic in phase 2 and 3, but egg is  named in phase 4 only. Please clear my confusion here.  (Additionally, who's to say that all phases would ever be attainable on a real world project?)  






   

Mohana Mahalingam wrote:Can 1Z0-815 can be taken still?


Yes.  It is completely (practically) pointless without also taking 816 before the end of the month.