Example of Subring is commutative whereas whole ring is not commutative??
sure.
let R = the ring of all 2x2 matrices with integer entries. this is clearly a non-commutative ring (for example, the matrices:
do not commute).
but the matrices of the form:
form a sub-ring of R isomorphic to the integers, which is thus commutative.