To what value is a variable of the Boolean type
automatically initialized?
Answers were Sorted based on User's Feedback
Answer / harikrishna
a variable of the Boolean type
automatically initialized to false
Is This Answer Correct ? | 10 Yes | 0 No |
What is comparator in java?
What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config).
2 Answers Infinite Computer Solutions, TCS,
33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac
Explain about transient variables in java?
Can sleep() method causes another thread to sleep?
Is alive and join method in java?
which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None
what is the major difference between linkedlist and arraylist in java?
What is difference between path and classpath variables?
What are the 4 versions of java?
How to avoid memory leak in java?
What is the middleware?