Correlation measures the strength and direction of a relationship between two variables, while hypothesis testing determines if this relationship is statistically significant.
The correlation method looks for the relationship between x and y in the table analyses. and the hypothesis testing method is designed to examine the relationship between the independent variable and the dependent one in the hypothesis.