Hi,
It's not the exactly same thing.
With NameVirtualHost you are configuring apache for name-based vhosts.
Using <VirtualHost x.x.x.x:yyyy> afterwards, you can define either name-based, ip-based or port-based vhosts (or all together), depending on the VirtualHost argument.
See
this example to understand the difference.
BTW in new apache-2.4 NameVirtualHost is no more used
Regards