Journal Entry query

Others (7 Points)

13 June 2021  
Which entry is correct?

Salary A/c ... Dr
To Bank A/c
OR
Salary A/c .... Dr
To Salary Payable A/c
Salary Payable A/c ..... Dr
To Bank A/c

Why do we need to first Due the expense and then Pay it, for what kind of items we make the same treatment?

Please solve.