Some C and Java questions