Paul Anilprem

Enthuware Software Support
+ Follow
since Sep 23, 2000
Merit badge: grant badges
Cows and Likes
Cows
Total received
52
In last 30 days
0
Total given
3
Likes
Total received
623
Received in last 30 days
16
Total given
180
Given in last 30 days
4
Forums and Threads

Recent posts by Paul Anilprem

Happy to announce that we are working on OCP Java 17 / 21 Certification Exam Fundamentals, written by Hanumant Deshmukh and it is currently available for review. It is almost done and you can get the draft/review version for free if you just retweet this.

The book covers all Java 17 1Z0-829 Exam Objectives as well well as expected topics for the Java 21 1Z0-839 exam such as Virtual Threads, Sequenced Collections, Enhanced switch, and more.

Tim Moores wrote:

Thomas Roth wrote:Once is was enthusiastic about java certification. I still think the idea is great, but if the Exam creators don't change direction i think it will loose relevance, at least here in germany.


I've worked in the UK, Germany and the US for numerous companies, and I've never come across a situation where any Java exam was valued. It's an insignificant indication that an applicant may have some skill of interest, but the interview process will test the relevant ones in much more detail anyway. Obviously, that's anecdotal evidence, but I advise anyone considering spending time and money on this to ask themselves if there are maybe better ways of preparing for a tech career.


People have been cheating on exams ever since exams came into existence. There are factories that will do homeworks, essays, assignments, and Phd theses for you for God's sake! Nobody gets hired merely upon presenting a degree or a certification anyway.
A certification may be insignificant to the interviewer but it can be a very significant step in one's own learning process. What is you have learnt will be reflected in what you say in the interview.
Congratulations, Anil  and thank you for your feedback  
Happy to know our material was helpful in your preparation  
Congratulations, Eric!  
Don't let anyone devalue your achievement. There are many ways to cheat in any exam. People who want to cheat, cheat and pass the exam on the first try itself. There is no dearth of "dumps". People who want to learn, use all means to learn  

Mike Simmons wrote:
Neither do methods of PrintWriter.  The constructors of both PrintStream and PrintWriter throw IOException, but the methods do not.  


You are right. I must have confused it with some other class.

Mike Simmons wrote:
Note that you can connect a PrintWriter to an OutputStream, but you can't connect a PrintStream to a Writer.  So far.


A PrintWriter is, after all, a Writer, while PrintStream is not. A Writer adds encoding logic on top of a raw byte stream, so connecting a PrintStream to a Writer would be like putting the cart before the horse.

Anil Philip wrote:I am trying to understand the difference between the PrintStream and PrintWriter.
I see that they have identical methods.


They don't have identical methods. Specifically, methods of PrintStream do not throw IOException. PrintStream is more of a utility class (a hack) that is used primarily for System.in/out/err and has methods to print everything. PrintWriter, introduced later, otoh, is proper "Writer". You will notice other differences too in the JavaDoc.

Stephan van Hulst wrote:

Paul Anilprem wrote:But even a static method can't be marked final in an interface! One can only guess why.


What would it even mean for a static interface method to be final? Static interface methods aren't inherited in the first place.



It would mean the same that it does for a class. That it can't be hidden!
While a class implementing an interface may have to redefine a default method if it inherits the same from two interfaces, there is no such issue with a static method. But even a static method can't be marked final in an interface! One can only guess why.

You can definitely use an IDE if that helps you get started quickly if you are beginner. Using an IDE does feel more exciting than using the command line.
But if you decide to prepare for any Java certification, it is advisable to spend a good amount of time in learning how to do things from the command line for reasons explained here.
3 weeks ago

Mike Simmons wrote:
With this method, how would you ever get a V instance at all?  You have a stream of T, and you have a BiFunction to take a V and a T, and return a V.  Which means you need at least one V to use that function.  That's why you need an identity V instance, to start the reduction off.  


Right. I missed that.

Mike Simmons wrote:
And for parallel processing, each worker thread will use that same identity V instance to start off processing its own subset of elements, before combining later with the combiner.  And if any of those worker threads finds there are no elements for them to process (maybe it turns out that there's a filter() method that eliminates all the elements that might have been expected) you want the worker to not freak out and throw an exception, just return the identity value unmolested, so it can still be combined with the other results safely.


Right again.
thank you!
4 weeks ago

Campbell Ritchie wrote:
Another reason, maybe, for not throwing exceptions from an empty Stream is that exceptions are supposed to respond to something abnormal, and an empty Stream is regarded as a normal occurrence.


Yes, I agree with that. It seems reasonable.

What I am not sure about now is the reason behind having the following three methods in the Stream interface (i.e. the regular Stream interface and not the primitive stream interfaces such as IntStream) :
  • Optional<T> reduce(BinaryOperator<T> accumulator)
  • T reduce(T identity, BinaryOperator<T> accumulator)
  • V reduce(V identity, BiFunction< V,? super T,V> accumulator, BinaryOperator<V> combiner)


  • but not having:

    Optional<V> reduce(BiFunction<V,? super T, V> accumulator, BinaryOperator combiner)

    1 month ago

    Paul Anilprem wrote:

    Campbell Ritchie wrote:Isn't that what happens if you use the method without the identity parameter?


    No, the one that doesn't take identity parameter takes one parameter of type BinaryOperator. A BinaryOperator restricts you to returning the same type as the type of the stream.
    In fact, now I wonder why did they not design this method to accept a BiFunction like the other reduce method.



    Because that would require a combiner, of course!
    1 month ago

    Campbell Ritchie wrote:Isn't that what happens if you use the method without the identity parameter?


    No, the one that doesn't take identity parameter takes one parameter of type BinaryOperator. A BinaryOperator restricts you to returning the same type as the type of the stream.
    In fact, now I wonder why did they not design this method to accept a BiFunction like the other reduce method.
    1 month ago

    Campbell Ritchie wrote:
    The reason for not throwing an exception is that the designers didn't want Streams to fail to complete their runs.


    Right. I should rephrase it as:
    "So, it is not entirely implausible to think that multiplying the elements of an empty set of Integers should be undefined, in which case an RTE is more appropriate returning an empty Optional is more appropriate. "

    What I am trying to get at is that returning Identity makes the method more rigid than what is warranted. It doesn't allow the the programmer to have an alternate path if there are no elements in the stream.  Given that there already are a buttload of methods, what's one more? Unless it is doesn't make sense logically.
    1 month ago


    vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
    http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |