This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!

Radha Sahoo

+ Follow
since Jul 03, 2016
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Radha Sahoo

I have the second edition, love it.
1 year ago
Congratulations! Wish you all the best for the success of the book.

Im planning to buy some java performance  book.

How is this book different  compared to other books in this topic?

Is it written with Java 8?
2 years ago
Is this book good for advanced Spring developers?
2 years ago

Amine Taha wrote:Hello Ranchers,

Just wanted to share this information with you if you don't know it already.

Oracle Certification is launching two promotions on Java Certification starting on June 1, 2016 and continuing to December 31, 2016: 35% discount on Java Upgrade Exams AND a Java Certification Recognition T-shirt.

We are encouraging the Java community to upgrade their certifications to the most recent versions (Java SE 8 and Java EE 6) to stay current and achieve advanced skills. There is a 35% discount on qualifying upgrade Java exams.

In addition, ALL candidates who earn a Java Certification during the promotion period (June 1 - December 31, 2016) will receive a Java Certification Recognition T-shirt for their certification achievement.

Hope it will help some of you ;)

I passed 1Z0-809, what do I need to do to get the T-Shirt?

Jeanne Boyarsky wrote:Congrats Radha! That's a great score. It's a really hard exam.

Thanks Jeanne!

Yea, the exam is really hard.  took a lot of preparation,  worth it.
Glad I did well.
2 years ago
Hello everyone,  I passed 1Z0-809 today. My score is 90%. enthuware tests helped me tremendously in my preparation.
I read the book  by Jeanne Boyarsky. It was hard though cause this book has too many errors. The book covers the exam topics very well.
If you plan to use this book, make sure make sure you follow the errata and verify all the facts from Java docs.
The online tool for practice tests, that comes free along with this book are helpful.
Jeanne is very prompt to respond to any question you may have on the book.

2 years ago
When I read the second bullet in page#28, I got the impression that, static is totally not allowed, while that's not true.

Explantion for Q#8 says..
"Inner is a member inner class. Inner classes are not allowed to contain static methods or static variables. Only nested static classes are permitted to contain statics."
It will be better if it clarifies that, static final variables are allowed.

Jeanne Boyarsky wrote:Radha,
Welcome to CodeRanch!

You are correct. John reported this recently and we added it our errata list. The question numbers are randomized each time you take the mock exam so it is hard to search for things like this.

The errata says, the return type of isFed() to be made as 'void', that still doesnt help Interface Eat compile. Am I missing something?

public functional interface Chew {
  public void chew();
public interface Eat {
  public default isFed() {return false;}
public interface EatQuickly extends Eat {
  int eat();
public interface EatEvenFaster extends EatQuickly {}
public interface Swallow extends EatEvenFaster {
  public abstract void swallow(int count);

None of these are valid functional interfaces.
There is no terminal operation  in this example, which makes the answers for this question to be invalid.

List<Integer> l1 = Arrays.asList();
List<Integer> l2 = Arrays.asList(1, 2, 3);
List<Integer> l3 = Arrays.asList(4, 5, 6);

Stream.of(l1, l2, l3)
   .peek(System.out::println) // peek 1
   .flatMap(x ->
   .peek(System.out::println) // peek 2
   .map(x -> x + 1);

Please Ignore:
the answers do consider that there is no terminal operation. There is no issues.

Jeanne Boyarsky wrote:
Note: this was in exam 1. (If you report any others, can you say which of the three exams it is in so I know where to look)

sorry. Will tkae care next time.
Thank you for your quick response.
For Integer class the hashCode method returns the int value itself, that makes the answer A and C instead of B and C
Answer should be  F. "None of these are valid functional interfaces"
Eat does not compile making rest of  the interfaces that extend it invalid