When should I use singleton?
No Answer is Posted For this Question
Be the First to Post Answer
Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.
posted in online test
How do you use compareto?
What is anagram of a string?
What is java abstraction with example?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
Where is the singleton class used?
What are recursive functions?
How to access arraylist elements in java?
What is the difference between interpreter and compiling ?
Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang>
12 Answers Accenture, CTS, Extensio, IBM, iFlex, PA Consulting, Symphony, Tarang,
Why is stringbuffer faster than string?