Are the 2 cameras of the iPhone 4S of the same quality? I wonder if the 2 cameras inside an iphone 4S are of the same type?
No, as noted in Apple's specifications, the front camera is VGA (640x480), whereas the rear camera does 5 MP stills and 1080p video. This is confirmed in iFixit's teardown of the 4S.