Gram-positive and gram-negative bacteria are identified and differentiated on the basis of gram staining.