Mar Java Mit Java Blog

What is ReactJs JSX? 0

What is ReactJs JSX?

JSX essentially allows us to write HTML in JavaScript! And also allows us to use JS within that by curly braces{}. React developers urge you to use a mix of HTML and JavaScript known...

Why is HTML DOM slow? 0

Why is HTML DOM slow?

Imagine a DOM which a list of 10 items on your web page and if because of any user interaction, web page just needs to update one of them, that’s not possible. In this...

What is destructuring 0

What is destructuring

Destructuring allows you to easily extract values from Objects or Arrays and assign to new values or even assign default values to undefined properties Imagine this code : user = { name: ‘dave’, gender:...

What is a Pipeline Operator 0

What is a Pipeline Operator

Pipeline operator is still in draft stage and it might be part of next Js release. It’s a backwards-compatible way of streamlining chained function calls in a readable, functional manner let result = “hello”...

Why do we need threadlocal in Java 0

Why do we need threadlocal in Java

The ThreadLocal class in Java enables you to create variables that can only be read and written by the same thread. Thus, even if two threads are executing the same code, and the code has a...

Using Java client to interact with MongoDB 0

Using Java client to interact with MongoDB

The official MongoDB Java Driver provides both synchronous and asynchronous interaction with MongoDB. Following are the operations supported in MongoDB : Connect How to connect to a mongodb server MongoClient mongoClient = MongoClients.create(“mongodb://host1:27017”); Cluster...

What is CORS and how is it used 0

What is CORS and how is it used

Let’s say we wanted to provide a service at http://orlandotemp.net/temp that responds to AJAX GET requests from the external site example.com with a JSON object containing the current temperature in Orlando, FL. All we need to do to enable this...