Profile cover photo
Profile photo
jay thakkar
62 followers
62 followers
About
jay's posts

Post has attachment
Differences between CyclicBarrier and CountDownLatch
Here are main differences between CyclicBarrier and CountDownLatch  concurrency  utils in Java : 1) CyclicBarrier is resulable, CountDownLatch is not. 2) Both CyclicBarrier and CountDownLatch wait for fixed number of threads. 3) CountDownLatch is advanceabl...

Post has attachment
Autowire Logger Object In Spring
You could do it with a  @Qualifier  annotation. Of course that means that you have added  Logger objects to your application context already. Importing this config into your application context would allow you to do that: @Configuration public class LoggerC...

Post has attachment
Java Basic Quiz -1
Java Basic Quiz -1 Please select atleast one option Which one is thread safe ? ArrayList HashTable HashMap How many public class created in one java file ? 1 2 3 If you have any doubt mail me : jpt112233@gmail.com

Post has attachment
Integer wrapper objects share the same instances only within the value 127
Since Java 5, wrapper class caching was introduced. The following is an examination of the cache created by an inner class, IntegerCache, located in the Integer cache. For example, the following code will create a cache: Integer myNumber = 10 or Integer myN...

Post has attachment
How to Retrieve Automatically Generated Keys in JDBC?
You can retrieve automatically generated keys (also called auto-generated keys or auto increment) from a table using JDBC 3.0 methods  getGeneratedKeys() . The  getGeneratedKeys() provide a standard way to make auto-generated or identity column values avail...

Post has attachment
Java Test
http://www.quizbox.com/builder/demo/editor.aspx My Quiz My Quiz Please select atleast one option Which one is thread safe ? ArrayList HashTable HashMap If you have any doubt mail me : jpt112233@gmail.com

Post has attachment
Java Test
My Quiz My Quiz Please select atleast one option Which one is thread safe ? ArrayList HashTable HashMap If you have any doubt mail me : jpt112233@gmail.com

Post has attachment
Java : String date One format to another format


Post has attachment
Split string on the first white space occurence
   If you only care about the space character (and not tabs or other
whitespace characters) and only care about everything before the first
space and everything after the first space, you can do it without a
regular expression like this: var str = "Hello...

Post has attachment
How to reset <input type = “file”>
You can just clone it and replace it with itself, with all events still attached: <input type = "file" id = "control" > and var input = $ ( "#control" ); function something_happens () { input . replaceWith ( input . val ( '' ). clone ( true )); };
Wait while more posts are being loaded