How to Reverse a String - Java Interview Question -1

preview_player
Показать описание
How to Reverse a String:
1. using for loop and charAt() method
2. using StringBuffer class and reverse function

Interview Questions:
//Reverse a String
//Difference between String and StringBuffer
//Do we have reverse function in String?

====================================================
Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion:

-~-~~-~~~-~~-~-
========================================================
Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
-~-~~-~~~-~~-~- Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
-------------------------------

✔️SOCIAL NETWORKS
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
-------------------------------

✔️SOCIAL NETWORKS
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة
Рекомендации по теме
Комментарии
Автор

Enga jii irundhinga ivlo naala.. Very nice Thanks and keep rocking.

naturegallery
Автор

One of the best explanation for the concept of immutable. Thanks a lot Naveen. Many interviewers have asked this question,

khajazakiuddin
Автор

Good explanation about how to reverse the I have ever heard

manojannamalai
Автор

Hi, Naveen your all videos are very helpful. Thanks a lot, I cleared many interviews and many interviewers ask the questions which are covered by you.

yojanarahangdale
Автор

Best explanation ever for reversing the string... Thanks a lot Naveen :)

garimayadav
Автор

in fact i did say, 'yes' when the interviewer said 'we can use reverse function, right?' now i know, why i wasnt selected from it 😂😂

piyumigunawardana
Автор

Very well explained, crystal clear . Thanks a ton, Naveen

artimandale
Автор

Thanks Naveen. Again and again I have the same question "How can a human dislike this video? "

oopsididitagain
Автор

Your every line in every video is true, in one interview some one ask this question, I told her, we can use reverse method, after that she told me u can wait outside HR will give feedback :(
but now I can give proper answer :)

SurajSaini
Автор

Thank you Naveen. These program asked in interview and i cracked it.

anils
Автор

Just randomly came across your channel and your videos are extremely helpful. Thank you so much🙏🏻

goaheadskinit
Автор

For the first I got to know this for loop logic great explanation sir thank you

bheemshankar_pk
Автор

It's the right time I found you 👍🧠👌, where you gone man!🔥

sacademy
Автор

Good Explanation Naveen.... :) BTW Just this line also will work
for (int i=len-1;i>=0;i--)
{

}

nareshreddy
Автор

StringBuffer S = new StringBuffer("Selenium");

Also applies to buffer and builder a bit shorter way

sai
Автор

Commenting first time in U r doing a great job sir 👏👏👏👏understood clearly

anushasrinivas
Автор

Currently working as Test Lead in MNC, looking forward to learn qlikview Developer course . Please suggest should I go ahead.

USP
Автор

Sir I am big fan of your explanation.I would say that you are god of testing and your approach towards concept explanation is impeccable

harshita
Автор

For reversing a string i always use recursion, because recursion utilizes stack data structure to save every characters.
We just need to pop, the last chracters coming out and print the chars.
I love these concepts!! @naveen ! 🙏🏻

sauravhateme
Автор

Naveen, please share videos for triangle pattern. This video is super easy to understand.

shreyagarg