public class Demo { public static void main(String[] args) { NewClass a = new NewClass(); // Put a break here a.method3(); } }