When do we use synchronized methods in java?
ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ System.out.println("integer"); } public static void JavaHungry(Exception e){ System.out.println("string"); } public static void JavaHungry(ArithmeticException ae){ System.out.println("object"); } public static void main(String[] args) { JavaHungry(null); }
Explain the difference between jvm and jre?
What is Servlet?
What is identifier in java?
What is procedure overloading?
Which method is used to find that the object is exited or not?
Why do we need main method to execute a java program?
What is difference between printf and scanf?
If a method is declared as protected, where may the method be accessed?
Explain about fail safe iterators in java?
How we can execute any code even before main method?
can we overload main method?