Enga jii irundhinga ivlo naala.. Very nice Thanks and keep rocking.
@khajazakiuddin9316 жыл бұрын
One of the best explanation for the concept of immutable. Thanks a lot Naveen. Many interviewers have asked this question,
@yojanarahangdale48626 жыл бұрын
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.
@garimayadav27903 ай бұрын
Best explanation ever for reversing the string... Thanks a lot Naveen :)
@manojannamalai7246 жыл бұрын
Good explanation about how to reverse the I have ever heard
@artimandale82869 ай бұрын
Very well explained, crystal clear . Thanks a ton, Naveen
@SurajSaini6 жыл бұрын
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 :)
@gangadharreddy4606Ай бұрын
Thank you so much for this series..... much needed for the community. tq.
@anils19933 жыл бұрын
Thank you Naveen. These program asked in interview and i cracked it.
@harshita03023 жыл бұрын
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
@anushasrinivas5644 жыл бұрын
Commenting first time in KZbin...... U r doing a great job sir 👏👏👏👏understood clearly
@naveenautomationlabs4 жыл бұрын
Appreciate your comments and feedback. Keep learning Anusha.
@anushasrinivas5644 жыл бұрын
@@naveenautomationlabs Sure Sir.... Thank you 😊Sharing the videos to my friends as well
@goaheadskinit4 жыл бұрын
Just randomly came across your channel and your videos are extremely helpful. Thank you so much🙏🏻
@saurabht093 жыл бұрын
Naveen is the king in Automation...his video gives you confidence that you can achieve everything in Automation testing..we all should thanks him for helping us👍❤️
@4sacademy4335 ай бұрын
It's the right time I found you 👍🧠👌, where you gone man!🔥
@bheemshankar_pk4 жыл бұрын
For the first I got to know this for loop logic great explanation sir thank you
@prashanthiskvl18857 жыл бұрын
This is very clear naveen. Thanks for explaining line by line
@naveenautomationlabs7 жыл бұрын
Thanks for watching :)
@harrysaini23267 жыл бұрын
thanks naveen for starting this series , make more videos on java programs and questions for selenium interview
@mdshakhawathossain72564 жыл бұрын
i wanna say u are my boss... thanks a a lot..
@nareshreddy695 жыл бұрын
Good Explanation Naveen.... :) BTW Just this line also will work for (int i=len-1;i>=0;i--) { System.out.print(s.charAt(i)); }
@sauravhateme4 жыл бұрын
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 ! 🙏🏻
@piyumigunawardana46105 жыл бұрын
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 😂😂
@oopsididitagain85725 жыл бұрын
Thanks Naveen. Again and again I have the same question "How can a human dislike this video? "
@bhaskarreddy90427 жыл бұрын
thanks naveen for starting the series , make more videos on java interview questions(logical questions ), it will be more useful
@PankajKumar-qk8oh6 жыл бұрын
Great explanation..pls upload more coding interview questions
@nitingupta825 жыл бұрын
Thank You for making it look like such a Simple program!
@naveenautomationlabs5 жыл бұрын
Thanks for watching
@nishantrajput4183 Жыл бұрын
nice, thanks for this video it helps me with my revision of String
@kirind71814 жыл бұрын
Thanks for the clear explanation! very easy to understand :)
@babitathakur9506 жыл бұрын
Hi naveen, really appreciated your hard work here. Amazing videos these are!!! I have learnt a lot. Please can you help me get get more sample java programs being asked in interviews. Thanks
@nikhilgosavi43003 жыл бұрын
Thank you for this..saved my life🥰
@arijitmohapatra1473 жыл бұрын
Thanks a lot sir 👍 really the best vdo evr ❤️❤️
@sunayanagandra71736 жыл бұрын
Thanks for helping people who are interested to learn java. Can you please post more java coding interview questions for automation
@nikhiltillu62016 жыл бұрын
Nice video, good help! Thanks
@dabbark6 жыл бұрын
Nice explanation. Thanks for the video.
@kirankumarmothukuri76604 жыл бұрын
Very good explanation bro.....Keep rocking I have subscribed your channel with this one video.
@saurabht093 жыл бұрын
Genius Naveen 👍🙏🙏
@SmartProgramming6 жыл бұрын
sir good one, keep it up 👍👍
@AKHILDS-j3v6 жыл бұрын
nicely explined...thanks naveen sir
@arpitapatil51093 жыл бұрын
Well explained sir tq
@thewildone10156 жыл бұрын
I'm glad I found you
@shreyagarg28485 жыл бұрын
Naveen, please share videos for triangle pattern. This video is super easy to understand.
@tanishasharma75426 жыл бұрын
your explanation way is simple and easy. thanks:)keep sharing more videos on java interview..can you also start sharing about puzzles ---> 2 egg problem and 011111 matrix
@sushkund41982 жыл бұрын
Hi Naveen These videos are great and I really appreciate your efforts. Thanks a lot for the great videos. Help Needed: Can you please provide C# related interview preparation videos. It helps a lot.
@Wabi2586 жыл бұрын
thanks, bro it clear my all of my confusion
@mudaseer216 жыл бұрын
Nice explanation
@soumyabohre14842 жыл бұрын
Very well explained
@jeyhunaliyev17655 жыл бұрын
great the way you explaining fantastic
@sai33274 жыл бұрын
StringBuffer S = new StringBuffer("Selenium"); System.out.println(S.reverse()); Also applies to buffer and builder a bit shorter way
@saurabht093 жыл бұрын
Second one is very simple ❤️❤️
@prakharsrivastav94162 жыл бұрын
Thank you sir I appreciate your effort
@rakesjjjjj6 жыл бұрын
naveen plz make some videos on sql used in manual testing plzz
@sarjeraosandbhor44786 жыл бұрын
Hi Naveen, Very nice & now feeling confident about Java & Automation with the help of your videos. Thanks. Can you please share a Java Program to Reverse words in a sentence. Ex. Java is so easy Ans. easy so is Java
@rockgemini3 жыл бұрын
Printing inside the loop works if we use print() instead of println(). e.g. this: for (int i=s.length()-1; i>=0; i--){ System.out.print(s.charAt(i)); }
@emilioalvarado77205 жыл бұрын
that is a perfect explenation
@sumitkumar-xz2tv11 ай бұрын
best explanation
@USP77 жыл бұрын
Currently working as Test Lead in MNC, looking forward to learn qlikview Developer course . Please suggest should I go ahead.
@santhoshthaduri8997 жыл бұрын
Thanks naveen, make a video for print dupilicate elements using recursive function
@joshuajibi42494 жыл бұрын
thanks bro awesome explanation
@இன்பதேன்வந்துபாயுதுகாதினிலே Жыл бұрын
Phenomenal
@ashwinkumarmahakul76207 жыл бұрын
HI Naveen pls release video related exception handling in java .
@seasam136 жыл бұрын
Thanks for all your Knowledge
@arunc83425 жыл бұрын
Hi Naveen, What is the difference between string builder and string buffer. We can use string builder as well to reverse the string.
@sultanatasneem17874 жыл бұрын
Thank you so much 😍
@sambhawjain22016 жыл бұрын
Hi Q - where use the static class in framework in selenium
@kollabathulasowjanya16107 жыл бұрын
Hi Naveen, even using stringbuilder class and its reverse function we can reverse a string?
@littletech58287 ай бұрын
series for only tester or developer?
@vaalibankarthick72906 жыл бұрын
Hi Naveen, Could u execute Fibonacci series
@amolnawale21776 жыл бұрын
Hi Naveen, If I want the reverse output of the String 'Hello Naveen' as 'olleH neevaN' instead of 'neevaN olleH', then how do we do that?
@vishalgaikwad8736 жыл бұрын
same here Naveen.
@jeffreysoboe6 жыл бұрын
You would have to first split the string on the " "... then reverse each individual word.
@FAyt-ov5uo5 жыл бұрын
Very helpful thank you
@poojachavan95976 жыл бұрын
Thanks Naveen sir
@sufidas94586 жыл бұрын
Hi Naveen, I like all your videos and learned a lot from your videos. I have 1 question about reverse string. Srtring=" selenium" your taking, while reversing the string I want "u" not to be printed. Can you please let me know.
@mozesong52646 жыл бұрын
use an if statement to check if the char == u then char = ""
@nikhiltillu62016 жыл бұрын
String s = "Selenium"; int len = s.length(); String rev= ""; char ch; for(int i = len -1; i>=0; i--) { ch = s.charAt(i); if(ch != 'u') { rev = rev + ch; } } System.out.println(rev);
@AjeetSingh-ti2yg3 жыл бұрын
Hi Naveen, String s= "my code is not working" hear I .... 'My and working 'should revers and 'code is not 'should be upper case but it should not revers could you please suggest me what is approch for this Thanks in advance
@venugopal5484 жыл бұрын
Please cover all these too: marshalling, transient, serialization, serialized keyword
@prakashmarketing7 жыл бұрын
class ReverseString { public static void main(String args[]) { String str="Hello World"; StringBuffer br=new StringBuffer(str); br.reverse(); System.out.print(br); } }
@shreyashikha35067 жыл бұрын
If we don't use string reverse =" "; then what will happen ?
@ozzDeveveloperOpenForWork5 жыл бұрын
great explanation thank you! but why do we need to assign an int and do length? why cant we do the for loop and just let it reverse it. Whats the concept behind taking the length of the string in int data?
@sharanyabhiram36019 ай бұрын
I have one java programming question to solve I give Input as 5 And type random binary numbers as input 1 0 1 1 1 My output should convert that binary number to decimal number 23
@ujjwalverma77876 жыл бұрын
sir, please help me i really confuse between them what is the difference between the "array.length and array.length()" some time array.length will work and some time array.length() will work. is there is any rules for is for using it? with String arr.length() will work but when we use an integer type, its work with array.length.
@sachinhodlur71936 жыл бұрын
Hi, length. It is a final variable applicable only for arrays It represents size of array For example Int[] a = new int[10]; Sop(a.length); //10 Sop(a.length()); // compile time error length(). It is a final method applicable only for String Objects It represents the number of Characters present in String For example String s ="Java"; sop(s.length()); //4 Sop(s.length); // compile time error
@sardarnijaspreetkaur427311 ай бұрын
Does this series still holds good in the market ?
@MBindu-kc2nj2 жыл бұрын
Thank you
@shindeajinkya25063 жыл бұрын
Sir i had a doubt lenght of a string is 7 then in loop condition when we minus it by 1 then it should start the printing from "U" or I'm wrong plz clear my doubt.... I am really confused in that condition 😕
@naveenautomationlabs3 жыл бұрын
You have to start with len-1. As first Index will start from zero always.
@shindeajinkya25063 жыл бұрын
@@naveenautomationlabs thank u sir I really appreciate it ❤💯
@shindeajinkya25063 жыл бұрын
Sir will u plz make a separate video on "interface - implement " and plz Don't mind me ,if I'm asking too much bcz they're asking really tougher questions on these concepts(interface,implement, inheritance, overriding etc)
@Bharath101219915 жыл бұрын
Very nice..... I can't able to watch in Mobile... The letters are very small.... Any other options to view in Mobile?
@bholasinghdhillon7857 Жыл бұрын
public static void main(String args[]) { String s = "abcd123"; char[] Array1 = s.toCharArray(); char[] Array2 = new char[Array1.length]; char digit; int j=0; for (int i = Array1.length - 1; i >= 0; i--) { digit = Array1[i]; Array2[j]=digit; if(j
@govindagupta78215 жыл бұрын
make video for the concept of subArray
@davidparker55304 жыл бұрын
I would say this solution is generally incorrect because it does not take into account the character encoding of Java (UTF-16). You should preserve the relative ordering of UTF-16 surrogate pairs, i.e. this method fails to correctly reverse a string of code points outside of the basic multilingual plane, c.f. emoji characters. In Java, the StringBuilder/StringBuffer classes already account for this if you use the reverse() method, so your "second" solution would work in this case.
@naveenautomationlabs4 жыл бұрын
Yea you are right. Emojii chars can be handled by stringbuffer.
@WriteToProfit3 жыл бұрын
Naveen sir already tested program output is still there 😜😜
@vinodkumar-yt6te6 жыл бұрын
hi naveen, this code available in github ? can share the path
@sunivana-tv5 жыл бұрын
Thanks!
@namratayadav77215 жыл бұрын
HellO how to purchase this course
@kavyak69815 жыл бұрын
how to reverse the statement Naveen ? india is my country -> o/p to be country my is india // how to do this . all your videos are understandable could you make more videos on prog on java for interview question .
@harikareddy54125 жыл бұрын
you can split the statement by spaces and store them into a string array. Then start reading the array data from last index to first using a for loop, take a new string variable and concatenate each word. By end of the for loop execution, new string variable will have the output in the format which you mentioned.
@mariabajwa86326 жыл бұрын
thanks
@krunalsathawane33372 жыл бұрын
how to reverse the string using junit
@naveenbandi45355 жыл бұрын
"Hai naveen Java" in the given string how to reverse "hai" and "java" keep "naveen" in the same order, can you please write a code for this
@ShinAkuma3 жыл бұрын
Here's a more efficient method. If you create a String object and keep adding letters to it, it will create n new string objects every time you append a new letter i.e. String rev = ""; rev += "A"; This creates a new object every time you append a letter. Better way is to convert the string into a character array and reverse the array by swapping first and last letters and moving the pointer inwards from both ends, this way you can reverse the string in O(n/2) time. static String reverse(String s) { char[] ar = s.toCharArray(); int l=0; int r=ar.length-1; while(l < r) { char t = ar[l]; ar[l] = ar[r]; ar[r] = t; ++l; --r; } return new String(ar); }
@kalyanijoshi68846 жыл бұрын
Please add prime number program too.
@jneeraj20116 жыл бұрын
Zooming could help us to see in phone..size is very small
@sai33274 жыл бұрын
String s = "Selenium"; String reverse = ""; for (int i = s.length() - 1; i >= 0; i--) { reverse += s.charAt(i); } System.out.println(reverse); why not make the code a bit shorter?
@mariashiny7309 Жыл бұрын
Words are blurred. Not able to view it clearly
@naveenautomationlabs Жыл бұрын
You need to change it to HD quality in your KZbin. No issues with the video.
@premsinghrathore96912 жыл бұрын
String s = "madam", newString = ""; for (int i = s.length() - 1; i >= 0; i--) { newString = newString + s.charAt(i); } System.out.println(newString);
@aura71176 жыл бұрын
ok
@Czarkazmx3 жыл бұрын
It is no longer StringBuffer its StringBuilder
@ashwinib50173 жыл бұрын
Both worked for me , StringBuffer and StringBuilder
@aryanpancholi83855 жыл бұрын
lol.. I made this work within 2 lines.... check it out........... for( int i=(s.length()-1);i>=0;i--){ System.out.print (s.charAt(i)); }