PinnedModeling 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, 2019A response icon4Sep 21, 2019A response icon4
List<?> 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, 2023A response icon2Feb 2, 2023A response icon2
Encrypt 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, 2022A response icon4Nov 12, 2022A response icon4
How 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, 2022A response icon1Oct 22, 2022A response icon1
Using 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