Java In Depth

Wednesday, 24 June 2020

Power of Lambda - II

›
There is a very common interview question or you can say common requirement in our daily coding life we come across. "Write a Java prog...
Wednesday, 7 August 2019

Best practices while parsing downstream response with enum value

›
Enums are always been the contract between the API (service) and its client(s). But if at all it is required to enhance the enum (add a new...
Tuesday, 16 July 2019

Toggleable Enum in Java

›
I came across this below code in my code base where we just want to toggle the enum value. If it is DEBIT return CREDIT, if CREDIT return DE...
Friday, 7 September 2018

Your Java method should warn about NPE while coding itself

›
Define your method is such way that, any IDE or Static Code Analyzer can sense the billion-dollar mistake , aka NullPointerException while...
Thursday, 16 February 2017

Do You Really Understand java.lang.String.split(regex) Method ?

›
You are in surprise that why this post is here under "secretsinjava.blogspot.com"? What is the secret here? But believe me, the s...
›
Home
View web version

About Me

Prabhat
View my complete profile
Powered by Blogger.