Anonymous interview question

How to access Non-static and static methods in java