PinnedMalkeith SinghModeling a child parent relationship in the same table using JPA + Spring Boot and representing it…One way of modelling child parent relationships in a SQL database is to store it in the same table with a parent_id column which refers to…Sep 21, 20194Sep 21, 20194
Malkeith SinghA simple explanation of the LeetCode Poor Pigs problem.The question:Apr 4, 2023Apr 4, 2023
Malkeith SinghList<?> vs List<Object> ? Understanding Java Generics.What is the difference between List<?> and List<Object> ? How does List<A> differs from List<? extends A> (where A is any class)? Why…Feb 2, 20232Feb 2, 20232
Malkeith SinghEncrypt and decrypt anything (bytes/files/streams) with PGP using bouncy castle and javaPGP or Pretty Good Privacy is an encryption system that has been used widely across the internet with its main use case being encrypting…Nov 12, 20224Nov 12, 20224
Malkeith SinghHow to split any large file into multiple smaller files by size or by “number of files” using java…This is going to be more than just a “how to” blog. My intention, along with providing a thorough explaination to the question, is to clear…Oct 22, 20221Oct 22, 20221
Malkeith SinghUsing enums as implementions for an interface, how and where it can be helpful !!Interfaces help us in writing losely coupled code which is easily extendable. We all have heard the term “code to interfaces not classes”…Sep 13, 2020Sep 13, 2020