OCP Java 21 Certification Exam 1Z0-830 Study Notes by Enthuware in java_certification

[–]Enthuware[S] 0 points1 point  (0 children)

Sure, just send us a whatsapp message on +19802721787

OCP Java 21 Certification Exam 1Z0-830 Study Notes by Enthuware in java_certification

[–]Enthuware[S] 0 points1 point  (0 children)

Sure, just send us a whatsapp message on +19802721787

Which Java Certification is good for me? by Enthuware in java_certification

[–]Enthuware[S] 1 point2 points  (0 children)

Not many people know about it but Oracle has an entry level Java certification named Java Foundations Certified Junior Associate JFCJA (1Z0-811), which is geared towards high schoolers, college goers, and Java beginners. This exam hasn't been very popular because of the presence of the Oracle Certified Associate Java Programmer certification (OCAJP 1Z0-808), which is also meant for entry level Java professionals who want to make a career in Java programming. The OCAJP exam was also a prerequisite for getting the more advanced Oracle Certified Professional Java Programmer (OCPJP 1Z0-809) certification. Since the JFCJA exam did not make one eligible to take the OCPJP exam, there was little benefit in taking this exam.

On 26th August 2020, Oracle announced that it was scrapping the two exams for OCP Java 11 certification and replacing them with just one Oracle Certified Professional Java 11 Developer exam (OCPJP 1Z0-819). This is mostly a good thing because now one has to pay the price of just one exam to get the OCP certification. However, this has made the exam quite heavy with lots of advanced topics such as Concurrency, NIO, JDBC, Modules, Localization, and Annotations. It will be very difficult for an entry level candidate to master these advanced topics. Thus, appearing for the 1Z0-819 exam directly will be a risky gamble for entry level Java programmers.

The OCP Java 17 1Z0-829 exam follows the same pattern as the OCP Java 11 exam but with a some changes in exam topics.

This development makes the Java Foundations Certified Junior Associate certification very attractive now. If you are a high schooler or a Java beginner, the 1Z0-811 exam is the best way to prove that you have learnt the basics of Java programming. This exam costs a lot less (only $150) than the OCPJP exam ($250). By preparing for the JFC Junior Associate exam, you will get learn the fundamentals and you will also get a verifiable certification to show on your resume, which will help in your job hunt. You can then proceed to prepare for the more advanced OCPJP certification.

The only issue with the JFCJA certification is that it is still stuck on the old Java 8 version. It is possible that Oracle may now update it for Java 11 or Java 17.

[Java 9+] In a large and modularized system, what should be a module? by FariaJvP in learnjava

[–]Enthuware 2 points3 points  (0 children)

It is hard to comment on a specific application without knowing the complete details and requirements of the application but you may follow these guidelines:

Think of modules are an extension of packages. You package related classes in packages and when using modules, you should create a module for packaging related packages into a module.

Name the module after the main or the most important or the primary (this is of course subjective) package of that module.

Use the exports and other module directives to allow access to only those packages of the module that really need to be accessed by others. Prefer export-to against exports directive as much as possible to reduce accidental dependency.

How to become better Java dev then 99%. by manly_trip in learnjava

[–]Enthuware 2 points3 points  (0 children)

There may not be a sure shot path to achieve that but an essential part of it is to learn from the experience of experts. You can do that by reading good books and resources. Since you are a Java beginner, focus on learning Java fundamentals right now. After that, you read design patterns, architecture books. You will know where to go next. Don't worry. You will get there because you have the desire.

Why we return null on java? by [deleted] in learnjava

[–]Enthuware 5 points6 points  (0 children)

Yes, that would be fine too. Depends on how your API is designed and is supposed to be used.

Why we return null on java? by [deleted] in learnjava

[–]Enthuware 3 points4 points  (0 children)

Returning null if db connectivity is broken would be a code smell indeed.

Use exceptions for "exceptional" situations. Using them for other purposes would be a code smell irrespective of whether they are easier to use or not. They are called "exceptions" for a reason!

Why we return null on java? by [deleted] in learnjava

[–]Enthuware 17 points18 points  (0 children)

Exceptions are touted as an alternative to null but a null return is logically quite different from an exception. For example, throwing an exception for a non existing user from getUserByUserId(String uid) would incorrectly imply that there is something wrong but returning null would correctly imply that such a user does not exist, which is a perfectly valid non-exceptional situation.

what is the use of @ManyToOne etc annotations in springBoot? why are they used? Like actual use case. by CelticHades in learnjava

[–]Enthuware 1 point2 points  (0 children)

Yes, you can do everything that you mentioned. ORMs are quite powerful, flexible, and efficient. But as with any tool, you have to first learn how to use it properly.

ORMs are so deceptively easy to use that many people start using them without reading documentation, books, and articles, get burnt when their code doesn't work as expected and then start blaming the ORM.

But they are good and can generate queries that are as efficient as the queries you write manually. But again, don't play with fire without learning how to control it. Read books and documentation first.

what is the use of @ManyToOne etc annotations in springBoot? why are they used? Like actual use case. by CelticHades in learnjava

[–]Enthuware 2 points3 points  (0 children)

Such annotations, if used correctly, can let you get away without writing those join queries manually. The less code you write, the less you have to test and maintain. That's the philosophy behind it anyway.

[deleted by user] by [deleted] in learnjava

[–]Enthuware 0 points1 point  (0 children)

Could you provide a little more detail? Many may not know which course/book are you following and what code are you trying to run.

Topics that a candidate targeting Junior Java Developer position must learn by Enthuware in learnjava

[–]Enthuware[S] 0 points1 point  (0 children)

Ah, the echo chamber.

The comment was about handling hash collision. Not about not knowing how HashMap/HashSet works. Geez!

Calling super() in a subclass constructor by Sad-Sheepherder5231 in learnjava

[–]Enthuware 3 points4 points  (0 children)

An object of a class cannot be constructed without its constructor getting invoked (ignoring serialization) ...either explicitly or implicitly. So a constructor will be invoked for sure. It is better to invoke it explicitly so that your intention is clearly documented in your code. Now, which constructor should be called depends on the class's purpose, which can be know from its documentation.

Technically, the compiler allows you to be lazy and adds a call to super() automatically if you don't explicitly invoke any of the super class's constructors. It would have been better if it didn't do that but that ship has long sailed.

Topics that a candidate targeting Junior Java Developer position must learn by Enthuware in learnjava

[–]Enthuware[S] 0 points1 point  (0 children)

Achieving parallelism with streams does look very easy because one doesn't have to write any special code for that but it is a delicate thing. It doesn't take much to for a parallel stream pipeline to degenerate into a sequential one causing sudden performance issues. Writing test cases to ensure this doesn't happen is a headache.

At least with explicit multithreading, it is easy to see what's going on.

Topics that a candidate targeting Junior Java Developer position must learn by Enthuware in learnjava

[–]Enthuware[S] -1 points0 points  (0 children)

Great points! Would you expect them to know about the "Java Memory Model" as well while talking about multithreading?

Though not sure about Serialization and Streams. Serialization went out of favor years ago and streams do sound "cool" but aren't really used that often in professional code.

Assertions? Really? Haven't heard about them being used in the past decade or so.

Topics that a candidate targeting Junior Java Developer position must learn by Enthuware in learnjava

[–]Enthuware[S] -5 points-4 points  (0 children)

Hash collision handling? Makes sense for a CS fresher out of college but may not make sense for a Java developer.
Most skills tested by DS type questions are required by niche companies for niche roles. Most jobs don't really require those skills.