ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

1. How to Reverse a String in Java - Java Interview Questions (4 ways)

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ส.ค. 2024
  • Please use the following link to install the Katalon Studio:
    katalon.com/si... Check Tubebuddy Features Here:
    www.tubebuddy.... How to reverse a string in java
    1. Convert String into Character Array and use For loop.
    2. For loop with CharAt() method.
    3. Using StringBuffer Class.
    4. Using StringBuilder Class.
    Java interview questions:
    1. Difference between string stringbuffer and StringBuilder
    2. How to reverse a string without inbuilt functions
    3. Difference between string string and StringBuilder
    3. Difference between string stringbuffer and StringBuilder
    Facebook : / automationtesting2016
    LinkedIn : www.linkedin.c...
    Google+ : plus.google.co...
    Twitter : / krishnasakinala
    Website : automationtesti...

ความคิดเห็น • 29

  • @nagashreera761
    @nagashreera761 3 ปีที่แล้ว +1

    All your java program explanation series are simply superb... Please post more and more concepts on data structures, collections in java etc

  • @jonahrivera7
    @jonahrivera7 4 ปีที่แล้ว +1

    Wow! I watched multiple videos on how to reverse strings and verify if they are palindromes and none came better explained than your video. THANK YOU!!!

  • @logeshwaran1233
    @logeshwaran1233 2 ปีที่แล้ว +2

    Very nice sir 🙏🙏🙏 I can't easily understood ..... Please provide like these easiest ways to handle the coding sir ....

  • @artgeela
    @artgeela 5 ปีที่แล้ว +1

    Never really understood the int i things but you made it really clear. You are a legend

    • @KrishnaSakinala
      @KrishnaSakinala  5 ปีที่แล้ว

      Thanks for the feedback *angela*
      Please subscribe the channel and keep visiting ... :)

  • @suzy6455
    @suzy6455 3 ปีที่แล้ว +1

    Great explanation!!! Thank you very much!

  • @ahmadfayeq2381
    @ahmadfayeq2381 ปีที่แล้ว

    Clean and clear, thanks!

    • @KrishnaSakinala
      @KrishnaSakinala  ปีที่แล้ว

      Thanks *Ahmad Fayeq* for you comment.
      Please like,share the videos and subscribe to the channel to get notified for the interested content.

  • @justchillax1190
    @justchillax1190 4 ปีที่แล้ว +1

    Really I understood the all 4 ways. Useful and informative video. Thanks for doing this.

    • @KrishnaSakinala
      @KrishnaSakinala  4 ปีที่แล้ว

      Thanks for the reply *just chillax*
      Please subscribe to the channel and like the video and share the video... :)

  • @KartonDoBoZ
    @KartonDoBoZ 3 ปีที่แล้ว

    Ohh Dud. OMG I Got it. Thanks Krishna. I love Your Voice :)

  • @delowerhossen6531
    @delowerhossen6531 4 ปีที่แล้ว +1

    Excellent explanation. Thank you Sir!

    • @KrishnaSakinala
      @KrishnaSakinala  4 ปีที่แล้ว

      You are welcome! Please subscribe to the channel and keep visiting ... 😀

  • @kkalpana4327
    @kkalpana4327 4 ปีที่แล้ว +1

    Too good understood the concept thank you 😊

  • @ANJALISingh-cq6nt
    @ANJALISingh-cq6nt ปีที่แล้ว

    your java video superb sir

    • @KrishnaSakinala
      @KrishnaSakinala  ปีที่แล้ว

      Thanks *ANJALI Singh* for you comment.
      Please like,share the videos and subscribe to the channel to get notified for the interested content.

  • @pabloo7422
    @pabloo7422 ปีที่แล้ว

    thank you brother 🙏

    • @KrishnaSakinala
      @KrishnaSakinala  ปีที่แล้ว

      Thanks *pablo o* for you comment.
      Please like,share the videos and subscribe to the channel to get notified for the interested content

  • @rajeshdevan6051
    @rajeshdevan6051 5 ปีที่แล้ว +2

    Thank you sir nice explanation and please upload more interview java program for selenium automation testers.

    • @KrishnaSakinala
      @KrishnaSakinala  5 ปีที่แล้ว

      Thanks for the feedback *Rajesh devan*
      Please subscribe the channel and keep visiting ... :)
      Will do in the future more Java Interview Programs and Java Interview Questions also.

  • @tusharkhade10
    @tusharkhade10 3 ปีที่แล้ว

    Nice explanation

  • @lawrencepinto7772
    @lawrencepinto7772 3 ปีที่แล้ว

    Latest using StringBuilder
    public class reverseString {
    public static void main(String[] args) {
    //
    String name = "hello world";
    StringBuilder sb = new StringBuilder(name);
    System.out.println(sb.reverse());
    }
    }

  • @kabileshr7390
    @kabileshr7390 4 ปีที่แล้ว

    Thank u sir

  • @anujsaini8332
    @anujsaini8332 5 ปีที่แล้ว

    Thanks u sir

  • @kotichintapalli7943
    @kotichintapalli7943 3 ปีที่แล้ว

    How to reverse I/p=hello good
    O/p=olleh doog without using split method and using charat method only one for loop.

  • @nishantchauhan5151
    @nishantchauhan5151 4 ปีที่แล้ว

    sir why convert string into char type array

    • @AjayRaj-tg8uf
      @AjayRaj-tg8uf 4 ปีที่แล้ว +3

      a collection of char is string then we have to get the element one by one so we have to convert the string into the char type .........................s.charAt[i]; where s= string value, i is a index number

    • @AjayRaj-tg8uf
      @AjayRaj-tg8uf 4 ปีที่แล้ว +3

      StringBuffer and StringBulider also doing the same thing internally and they have a same method (reverse) to print the reverse string

  • @pushpamitdon
    @pushpamitdon 5 ปีที่แล้ว

    Method 2 is not feasible due to too many String Object creations.