which class to use when concatenating
strings in a loop.
Answers were Sorted based on User's Feedback
we any use the both classes String and StringBuffer.
but if we use StringBuffer it would be advatagebecase we
are going to create only one Object.if we use the String
class it is going to create the one for each itration.now
it up to you which one to use
Is This Answer Correct ? | 4 Yes | 4 No |
Why Over riding is Run Time Polymorphism?
Explain OOPs concept.
How to print nodes of a Binary tree?
What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose.
2 Answers Infosys, Tech Mahindra,
Can we use catch statement for checked exceptions?
Does printwriter create a file?
What is static keyword?
How to sort array in descending order in java?
as we know a static method could access static data and static method only. then how could main method call the object of aclass which is not static and other non static data
how to handle exceptions in core applications?
Which is dependent variable?
What are advantages of exception handling in java?