From an SEO perspective subdirectories are considered better than subdomains because subdirectories help the ranking of the primary domain better than subdomains.
If you want the overall ranking of www.example.com to improve, use www.example.com/producta and www.example.com/product, not producta.example.com and productb.example.com.
I use subdirectories.