Profile cover photo
Profile photo
Munish Chandel (मुनीश चंदेल)
260 followers
260 followers
About
Communities and Collections
View all
Posts

Post has attachment
Recursion, Dynamic Programming in Java and Kotlin
Introduction to Dynamic Programming in Java and Kotlin Before starting Dynamic Programming, we must get familiar with recursion first. Recursion In recursion, we simply a complex problem by breaking it down into simpler sub-problems in a recursive manner. I...
Recursion, Dynamic Programming in Java and Kotlin
Recursion, Dynamic Programming in Java and Kotlin
crackingjavainterviews.blogspot.com
Add a comment...

Post has attachment
What is difference between sleep() and wait() method in Java?
wait()  and  notify()  are used in multi-threading programming for inter-thread communication, while sleep is used to control execution time of current thread. Table 1. Difference sleep and wait sleep() method wait() method sleep() method is part of java.la...
Add a comment...

Post has attachment
What is difference between Primary key and Unique Key?
Purpose The main purpose of a Primary key is to uniquely identifies a given record in a Table, while the Unique Key constraint is meant to prevent duplicate values in a column (with exception of null value) Mutability Primary keys are iummutable and not sup...
Add a comment...

Post has attachment
Which data type would you choose for storing Monetary Values (Currency)? What’s your opinion about Float, Double and BigDecimal?
Which data type would you choose for storing Monetary Values (i.e. currency)? What’s your opinion about Float, Double and BigDecimal? Float & Double are bad for financial (even for military use) world, never use them for monetary calculations. If precision ...
Add a comment...

Post has attachment
What is difference between Vector and ArrayList, which one shall be preferred?
What is difference between Vector and ArrayList, which one shall be preferred? General Guidance One should prefer to use ArrayList over Vector because we rarely need what vector has extra to offer. Vector is synchronized for concurrent modification. But Vec...
Add a comment...

Post has attachment
Run code on Spring Boot App Startup
Run code on Spring Boot App Startup Spring Boot provides different mechanisms to run a specific code at Application Startup: PostConstruct, CommandLineRunner and ApplicationRunner Running code on app startup is a typical requirement in many scenarios like i...
Run code on Spring Boot App Startup
Run code on Spring Boot App Startup
crackingjavainterviews.blogspot.com
Add a comment...

Post has attachment
What is ThreadLocal in Java, where will you use this class
ThreadLocal variable ThreadLocal provides a mechanism of maintaining thread confinement for a given object. which allows you to associate a per-thread value with a value-holding object. ThreadLocal Java Docs ThreadLocal class provides thread-local variables...
Add a comment...

Post has attachment
Difference between Comparable and Comparator in Java
Difference between Comparable and Comparator in Java Both comprabale and comparator are interfaces from Java Collections Framework that allow sorting of collections. But both of these interfaces are meant for different purpose. Comparable Comparator Imposes...
Difference between Comparable and Comparator in Java
Difference between Comparable and Comparator in Java
crackingjavainterviews.blogspot.com
Add a comment...

Post has attachment
How will you implement your custom threadsafe Semaphore in Java
How will you implement your custom threadsafe Semaphore in Java We can implement a custom semaphore using  ReentrantLock  and  Condition  classesprovided by Java. However this implementation is just for illustration purpose and not for production use. Condi...
Add a comment...

Post has attachment
Find missing numbers in 4 billion unique numbers with 50MB RAM
Find missing numbers in 4 billion unique numbers with 50MB RAM 4 billion numbers can not fit into 50MB RAM. Even if we take a bitset of 4 billion bits, it will need 4 GB RAM. So we need a multi-pass solution. Solution To solve this limited memory problem, w...
Add a comment...
Wait while more posts are being loaded