While going through the web3j docs in most of the places below deploy method is used.
YourSmartContract contract = YourSmartContract.deploy(
<web3j>, <credentials>,
GAS_PRICE, GAS_LIMIT,
<param1>, ..., <paramN>).send(); // constructor params
This method is deprecated in latest web3j library and instead of this we should use below method is docs.
YourSmartContract contract = YourSmartContract.deploy(
<web3j>, <credentials>,
<contractGasProvider>,
<param1>, ..., <paramN>).send(); // constructor params