Posts
Showing posts from October, 2017
HashMap & ConcurrentHashMap Implementation
- Get link
- X
- Other Apps
ConcurrentHashMap ConcurrentHashMap is the Threadsafe. Default size is 16. It is Bucket level lock for read /update. N thread can access for read operations. But only 16 threads can perform the update or write operation in Concurrent HashMap. Each bucket has one lock is Bucket/Segment Lock. Hence It increase the performance. concurrency Level -> Total map divide into n number of blocks. Concurrency level need not be the same as bucket size. For example: Bucket size is 16 but concurrency level is 8 only. Then each two bucket have one lock. ConcurrentHashMap map = new ConcurrentHashMap(int intialcapacity, int loadfactor, int concurrentLevel); Methods map.put(101,”A”); map.putIfAbsent(103,”c”); map.remove(101,”d”); map.replace(101, “B”, “E”);
BitBucket
- Get link
- X
- Other Apps
BitBucket BitBucket is collaborative tool use your git repositories for your team. If you are working on open source project, people use Github to put their open source code. BitBucket have the private repositories for free. Atlassian is created this tool. Unlimited project with private repositories. You no need to expose to anybody else. You expose within your team. Feature to add a team member. It is free for 5 users only. BITBUCKET provides the BITBUCKET server. You can deploy your own BitBucket instance. You can create a BitBucket instance and deploy your project in the BitBucket server. BITBUCKET pipelines used for continous delivery in cloud. BITBUCKET pipelines are used for Continous integration & deployment (ci/cd) in the docker containers same as BITBUCKET introduces a pipelines. Build, test and deploy. Setup pipelines -> enable pipelines Jenkins. copy the sample configuration and create a YAML file as a sample configuration. You can create expose within
Java/J2EE Interview question
- Get link
- X
- Other Apps
What are the components of OOPS? Explain the types of polymorphism What is StringBuilder and StringBuffer? Equals and == concept? Explain Collections? What is the internal implementation of HashMap? What is ConcurrentHashMap? Hash Map vs Hash Table and Hash Map vs Tree Map Can you write the code for to achieve the IOC. What is Reflection? Explain with example What is Recursion? Explain with example Class Person { // override only for hashCode() like below Public int hashCode() { return 4 } } For the above class ,I have created 100 objects and add it in the map(of the type Map<Person ,String>() ); After adding 100th object what will be the size of the map. Explain Spring IOC with example? How we can achieve IOC without Spring? How will store table data in a Collection? What is $() in JQuery? Java oops concept. Explain Polymorphism and types of polymorphism(Overloading and Riding) Explain Overloading sample program and expla
4 Practical Technique to Improve concentration
- Get link
- X
- Other Apps
4 Practical Technique to Improve concentration Technique 1. Observe the seconds movments in clock for 2 minutes Technique 2. Observe the candle light for 2 minutes Technique 3. Draw in note like line or curve and observe the line from the begining for 2 minutes Technique 4. Breathing exercise. Slowly Inhale, hold the breath longly and exhale for 2 minutes
September Month Postive quotes
- Get link
- X
- Other Apps
September Month Postive quotes Once you replace negative thoughts with positive ones, you will start having positive results. Love yourself. It is import to stay positive because beauty comes from the inside out. You cannot believe in God until you believe in yourself. Winning doesn't come cheaply, you have to pay a big price. Let’s be Realistic, Try the Impossible – Che Guevara Excellence is a continuous process and not an accident – A.P.J. Abdul Kalam The Week can never forgive. Forgiveness is the attribute of the strong – Mahatma Gandhi We are what our thoughts have made us;so take care about what you think. Words are secondary. Thoughts live; they travel far. – Swami Vivekananda Always do your best. What you plant now, you will harvest later Only I can change my life. No one can do it for me. You may find the worst enemy or best friend in yourself “Keep your face always toward the sunshine - and shadows will fall behind you.” It does not matter how