If system.exit (0); is written at the end of the try block, will the finally block still execute?
No Answer is Posted For this Question
Be the First to Post Answer
What modifiers are used with a top level class?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
Can a class be private or protected in java?
How do I know if java is installed?
What is boolean used for?
what are the boundaries of jdk and jre?
What is the length of a string?
Why are global variables used?
What is substring in java?
How objects of a class are created if no constructor is defined in the class?
Discuss different types of errors that generally occur while programming.
How to add and remove nodes in Jtree?