Tricky Java Interview Questions and Answers for Experienced Developer | Code Decode | Part – 1



Tricky Java Interview Questions and Answers for Experienced Developer | Code Decode | Part – 1

Tricky Java Interview Questions and Answers for Experienced Developer | Code Decode | Part - 1

In this video of code decode we have explained tricky java interview questions asked to experienced java developer

Udemy Course Link :
https://www.udemy.com/course/master-spring-boot-microservice-angular-with-k8s-cicd-aws/?couponCode=100KCODEDECODE

Course Description Video :
https://youtu.be/eLnaBn6s0KE

How is WeakHashMap differs from other HashMap?

WeakHashMap is a HashMap, with keys that are of a WeakReference type.

An entry in a WeakHashMap will automatically be removed when its key is no longer in ordinary use, meaning that there is no single Reference that point to that key. When the garbage collection (GC) process discards a key, its entry is effectively removed from the map, even though it is associated with WeakHashMap. i.e Garbage Collector dominates over WeakHashMap.

In HashMap, even if key is not having any reference which points to that key (is eligible for GC) is In reality not eligible for garbage collection because its associated with the entry object added in a bucket of hashMap. This means that the HashMap has dominance over the garbage collector.

What Is ElasticSearch?
Elasticsearch is a NoSQL database.
ElasticSearch is an open source Search Engine based on Apache Lucene as inverted Text Data structure and it is built with RESTful APIS.

We use it for Storing, searching and Managing
Logs
Search Backend with terrific speed and flexibility.

It mainly consist of
Indexes – similar to Database in relational Terms
Documents – Rows – JSON objects
Fields – Columns

It mainly has Read and write operation. you need to update this as soon as you update the main Database and Read it when FE needs Autocomplete feature.

What is Kafka
Apache Kafka is publish-subscribe based fault tolerant messaging system. It is fast, scalable and distributed by design.

It was initially thought of as a message queue and open-sourced by LinkedIn in 2011. Its community evolved Kafka to provide key capabilities:
Publish and Subscribe to streams of records, like a message queue.
Storage system so messages can be consumed asynchronously. Kafka writes data to a scalable disk structure and replicates for fault-tolerance. Producers can wait for write acknowledgments.
Stream processing with Kafka Streams API, enables complex aggregations or joins of input streams onto an output stream of processed data.

Traditional messaging models are queue and publish-subscribe. In a queue, each record goes to one consumer. In publish-subscribe, the record is received by all consumers.

Most Asked Core Java Interview Questions and Answers: https://youtube.com/playlist?list=PLyHJZXNdCXscoyL5XEZoHHZ86_6h3GWE1
Advance Java Interview Questions and Answers: https://youtube.com/playlist?list=PLyHJZXNdCXsexOO1VQ4vs-BM2-8CKrixd

Java 8 Interview Questions and Answers: https://youtube.com/playlist?list=PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy

Hibernate Interview Questions and Answers:
https://youtube.com/playlist?list=PLyHJZXNdCXsdC-p2186C6NO4FpadnCC_q

Spring Boot Interview Questions and Answers:
https://youtube.com/playlist?list=PLyHJZXNdCXsexOO1VQ4vs-BM2-8CKrixd

Angular Playlist: https://www.youtube.com/watch?v=CAl7RQSdq2Q&list=PLyHJZXNdCXsfxRtDwtGkDD_lLfTWc1g0i
SQL Playlist: https://www.youtube.com/playlist?list=PLyHJZXNdCXse86eLuwy5uZohd_bddE9Ni

GIT: https://youtube.com/playlist?list=PLyHJZXNdCXscpl6pxOnL2lRWJlzvzjyZE

Subscriber and Follow Code Decode
Subscriber Code Decode: https://www.youtube.com/c/CodeDecode?sub_confirmation=1
LinkedIn : https://www.linkedin.com/in/codedecodeyoutube/
Instagram: https://www.instagram.com/codedecode25/

#giveaway #100k #codedecode

Comments are closed.