HealthEdge Software interview question

Explain java principles and give answer example for each