Judges don't specialize. The same judges that hear commercial cases also hear criminal cases. In most provinces, the Provincial Court deals with lesser criminal cases, some family cases, and small claims civil cases, (I understand that Ontario has separated small claims) and the same judges hear all of them. The superior courts hear serious criminal cases, family cases, and large claims civil cases, as well as a variety of other oddities.