• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ocajp 8 - significance of stream, lambdas?

 
darren hartford
Greenhorn
Posts: 25
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Across the community, a lot of people have been acknowledging jdk8 as 'significantly new programming approach' around how streams are handled and the use of lambda's in how you accomplish prior tasks to new approaches.

For the OCAJP 8, is that also a significance shift in knowledge/skills needed for this test?

-D
 
Robert Liguori
author
Greenhorn
Posts: 13
5
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
darren hartford wrote:Hi all,
Across the community, a lot of people have been acknowledging jdk8 as 'significantly new programming approach' around how streams are handled and the use of lambda's in how you accomplish prior tasks to new approaches.

For the OCAJP 8, is that also a significance shift in knowledge/skills needed for this test?

-D


I wouldn't call it a shift... just MORE stuff you need to learn.

Good luck on the exam.

- Robert

Btw, in this little blog post I did, you can see how simple and helpful functional programming can be...

How does the US Dollar compare to other currencies, via the current ECB rates?
http://robertjliguori.blogspot.com/2015/08/how-does-us-dollar-relate-to-other.html



-- Robert
 
darren hartford
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Robert, and I appreciate you putting in the time to post your example!
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
darren hartford wrote:For the OCAJP 8, is that also a significance shift in knowledge/skills needed for this test?

It's definitely not a shift, because you still need to know all the other Java syntax as well. But regarding the OCAJP8 exam I think the required additional knowledge is limited to a simple lambda expression consuming a predicate expression (and some classes from the new Date/Time API), so no streams on this exam. Here you'll find the mapping between the exam objectives of the OCA7 and OCA8 exams. But for the OCPJP8 you'll need to know much more about lambdas and streams. But here the same applies: it's not a shift, you'll just need to know more

For example, suppose this simple problem: print all the odd numbers in a list greater than 15 without any duplicates.

In Java 7 you would write something like thisLooks very familiar! Now let's have a look at the Java 8 code to solve this simple problemSo I guess it's safe to say that it's definitely a signicantly new programming approach

Hope it helps!
Kind regards,
Roel

PS. Streams are not on the OCAJP8 exam (as I mentioned before), I just used it for demonstration purposes only.
 
Edward Finegan
Author
Greenhorn
Posts: 15
Java Linux Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I look at it as expanding your toolkit. Nearly everything that you needed to know to work with Java 7 is still important. However, some new "tools" have been added. Lambda, Streams, Data/Time etc... are new ways of thinking about old problems. As a programmer it is important to add these new tools to your tool box. I agree in that it is not a hard shift. It is more like finding a new, better, tool to do the job.

The OCA8 includes these new concepts on top of many of the concepts that were tested before. Data/Time and Lambda consuming predicates are the major additions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic