Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Which are the new features of the Java language that 1Z0-815 exam could cover?

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky and Scott Selikoff In your opnion which are the new features of the Java language that 1Z0-815 exam could cover?

Should we focus study and practices about Java features like the modules, generics, and functional programming?

Best regards,

Paulo.
 
Marshal
Posts: 66635
251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you got a certification already? Remember generics have been in Java® for over fifteen years, so you shouldn't think of generics an anything “new”.
 
author
Posts: 4172
29
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Have you got a certification already? Remember generics have been in Java® for over fifteen years, so you shouldn't think of generics an anything “new”.



Stop making me feel old.... I still imagine the post-compile non-generic code when I write generics.  I wished I didn't know that they were compile-time enhancements and wish I had learned Java only knowing them!

To answer Paulo's question, yes the book covers everything you need to know for the exam including modules and functional programming.  For functional programming, the book covers what the exam tests including lambdas, basic functional interfaces, and a few common operations on lambdas.  For the 1Z0-816 exam, you'll need to know streams in *alot* more detail.
 
Campbell Ritchie
Marshal
Posts: 66635
251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the newspaper, I am younger than yesterday. But only because they have redefined “old”. I can remember writing things like:-
 
Paulo Cesar Dias Lima
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ritchie and Scott, thanks for your attention.
I have Java 1.4 and Java 6 Programmer Certifications.
And also I use generics since Java 5 and 6.
I' planning to get JAVA 11 OCP.

My concern about Generics is if features like Generic Specialization, Reified Generics that I just hear about from Valhalla project.

But I'm not sure if its important for JAVA 11 OCP Exam.

Thanks again,

Paulo.
 
Scott Selikoff
author
Posts: 4172
29
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:According to the newspaper, I am younger than yesterday. But only because they have redefined “old”. I can remember writing things like:-



Is it bad if I still do this?  
 
Campbell Ritchie
Marshal
Posts: 66635
251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

...thanks...

That's a pleasure

Are those new features actually implemented yet? I didn't think they were, but maybe I am mistaken.
 
Campbell Ritchie
Marshal
Posts: 66635
251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Scott Selikoff wrote:. . . Is it bad if I still do this?  

That constructor has been deprecated, so you would have to writenowadays
 
Rancher
Posts: 3404
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you don't *have* to.  You just get warned if you use new Integer().  Personally I'd be more disturbed by the use of a raw type.
 
Campbell Ritchie
Marshal
Posts: 66635
251
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mike Simmons wrote:. . . use of a raw type.

I'm reminiscing about pre‑generics days; that should worry you even more.
 
Scott Selikoff
author
Posts: 4172
29
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mike Simmons wrote:Well, you don't *have* to.  You just get warned if you use new Integer().  Personally I'd be more disturbed by the use of a raw type.



Well, ignoring raw type warnings is just an easy annotation... completely off topic, but did anyone find it weird that the number constructors (like new Integer()) were deprecated in Java 9?  I mean, I know why they did it, just caught me off guard.
 
Mike Simmons
Rancher
Posts: 3404
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, the actual compiler warning from raw types is pretty ignorable anyway if you want to ignore.  I'm talking about me being personally offended that anyone would still use raw types.  

I'm happy with the constructor deprecations.  Will be very surprised if they actually get *removed*.  But deprecated?  Sounds good to me.

And @Campbell, yes your reminiscences are cause for concern.
 
Campbell Ritchie
Marshal
Posts: 66635
251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it is just my mental age that is getting younger.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

the number constructors (like new Integer()) were deprecated in Java 9?  I mean, I know why they did it



Since this forum is for newbies too, I dare to ask ;-)

Why is that deprecated?
 
Scott Selikoff
author
Posts: 4172
29
jQuery Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sander Hollaar wrote:

the number constructors (like new Integer()) were deprecated in Java 9?  I mean, I know why they did it



Since this forum is for newbies too, I dare to ask ;-)

Why is that deprecated?



Short answer: performance

Longer answer:  there’s a push to use factory patterns (static methods that return objects) across a lot of programming languages these days since the values can be cached in a pool and reused, rather than reallocated for every call.  It is related to the fact that integer values are immutable objects.  In short, “new” is practically a 4-letter word in some APIs.
 
Sander Hollaar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Makes sense, thanks!
 
Campbell Ritchie
Marshal
Posts: 66635
251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Scott Selikoff wrote:. . . the values can be cached in a pool and reused . . .

There are more details in the Java® Language Specification (=JLS) and the documentation for Integer#valueOf(int). In fact, most people had stopped writing new Integer(123) long before it was deprecated.
Many Java8+ classes like Optional<T> and LocalDate have been made immutable, with private constructors and factory methods to allow you to obtain instances.
 
Scott Selikoff
author
Posts: 4172
29
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:In fact, most people had stopped writing new Integer(123) long before it was deprecated..



Yeah... not me.  Not because I preferred either, more that I didn’t pay attention to the difference between the two until they deprecated one of them.  That said, the number of times I wrote it is pretty low so I’m sure the performance is quite negliable.

Now get your generics, factory patterns, and lambdas and off my lawn!  I’m working with raw types and anonymous classes here!  
 
Wanna see my flashlight? How about this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!