How to write Specific DataConverter

Is it possible to write a specific data converter for few objects?

For all other objects, I will use the default converter provided by temporal, for some of the objects I need to write DataConverter.

Is it possible?

Yes, you write the custom PayloadConverter that deals with those objects and configure the DefaultDataConverter with the list of converters that includes your custom PayloadConverter.

Thanks, I have created my own converter,
how to add my PayLoadConverter in DefaultDataConverter. I can see there is a List of converters in DefaultDataConverter but there is no setter for it to update and it is final.

Do I need to extend the DefaultDataConverter and pass it via the constructor?

Create a new converter through DefaultDataConverter.withPayloadConverterOverrides. And then register it with the WorkflowClient through WorkflowClientOptions.DataConverter.