TestNG Parameterization – what are different approaches

TestNG Parameterization:Approach

1: feed inputparameters via TestNGand receive using@Parameters annotationat the target methodApproach

2: use Dataproviderwhen complex parameterslike data from database, xls,property file, arraylist etc