For which statements we use a label?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
for the looping or iterative statements we have to make use
of labels inorder to distinguish between outer and inner loops
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / sasanka
for Jump Statements like 'break' we can use label.
| Is This Answer Correct ? | 5 Yes | 0 No |
Is list thread safe in java?
Does java have a compiler?
What are the difference between string, string builder, and string buffer in java?
Explain what pure virtual function is?
real time example for deadlock,starvation,livelock
What is the return type of the main method?
Can I extend singleton class in java?
IN java collections we have both interfaces and classes. instead of using interfaces why we can't use classes only like that why we can't use interfaces only. why we need two things interface and class.
What is jrmp?
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); }
Differentiate between vector and array list.
In Java, what are this() and super(), and where are you required to use them?