Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Dhanushanth Dhanu

Greenhorn
+ Follow
since Jul 10, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dhanushanth Dhanu

Abimaran Kugathasan wrote:

Dhanushanth Dhanu wrote:no sir i didn't see any method for that but what I'm asking is do we have any keyword for that like concat()


cancat() isn't a keyword, it's a method of String class. And have a look on this method of StringBuffer class



thank you sir.

Ankit Garg wrote:String objects are immutable i.e. they are not meant to be modified in the way you want. This is why there are StringBuffer and StringBuilder classes...


Yes sir i know that string objects are immutable.so can we do that with StringBuffer or StringBuilder classes? i mean that what i asked above

Abimaran Kugathasan wrote:Did you find any method in the String API? You should try to make your own method.


no sir i didn't see any method for that but what I'm asking is do we have any keyword for that like concat()

normally we can add any string through concat behind the text
but my question is how can we add any string in front of the text?
like i need an out put like this "break Helloworld"
please any one give me an answer.
Thanks a lot Mr.Prasad Kharkar
Hello sir thank for your reply ..
sir can please explain this with an example ...
HI all ..
i want to know why we are using return types in our coding?

i know this is a simple question but i need a full explanation ..
can any one help me for this
thank you sir it's really wonder full..............thanks a lot for your consideration.
hi guys i want to know why we are using encapsulation?
can any one give me an industrial sample for the encapsulation?
Thanks a lot Mr.phil sohar and Mr.Ankit Garg for your reply and consideration...................
Hi all of you .............i have a dought on java Encapsulation in bellow coding


here it is printing the output perfectly.....but i want to know what is happening here?
and when we remove "return Name;" why it is showing a compilation error ?
can any one please explain this..........

http://www.tutorialspoint.com/java/java_encapsulation.htm

Dhanushanth Dhanu wrote:
Here if i named all method as m() it is printing A,B........



but if i change the static inner class method name as m1() it is printing A,A.
what is happening here ........
can any one give me a explanation about this............

10 years ago

Here if i named all method as m() it is printing A,B........



but if i change the static inner class method name as m1() it is printing A,A.
what is happening here ........
can any one give me a explanation about this............
10 years ago
hi guys i have a dought according the below coding ............


here the answer is :"Printing first one"


but if we instance like above it prints :"Printing first one" & "printing second one".
i'm asking is what is happening when we instance that ...i need full explanation
10 years ago
Thanks a lot guys ..............
i'm really happy to see your reply .............