#17 While Loop in Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • Check out our courses:
    Enterprise Java Spring Microservices: go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : go.telusko.com...
    Coupon: TELUSKO20 (20% Discount)
    For More Queries WhatsApp or Call on : +919008963671
    Udemy Courses:
    Spring: go.telusko.com...
    Java:- go.telusko.com...
    Java Spring:- go.telusko.com...
    Java For Programmers:- go.telusko.com...
    Python : go.telusko.com...
    Git : go.telusko.com...
    Docker : go.telusko.com...
    website : courses.telusk...
    In this lecture we will learn:
    - While loop in Java
    - When to use the while loop?
    - Syntax of while loop
    - Nested loops
    Loops can be used when we have to repeat something.
    #1
    While loop:-
    - While loop is used with a condition. We need to provide a condition inside the while loop.
    - If we will give the condition as true inside the while loop then it will infinite times.
    -If we do not provide any condition inside the while loop then it is known as an empty loop.
    - We require an iterator inside the loop to execute the statements.
    -- We use plus opertaor(+) for concatenation. When we have to concatenate or join two things, we simply use plus operator.
    - We need to put the condition inside the while loop for executing statements. We run the loop until the condition gets false.
    - When the condition inside the while loops get false, then after that it will not execute the statement of the block and the iterator directly jumps out of the block.
    - The while loop is used when the number of iterations is unknown but the terminating condition is known.
    - While loop is also an entry-controlled loop as the condition is checked before entering the loop. The test condition is checked first and then the control goes inside the loop.
    Syntax of while loop:-
    while(condition)
    {
    statements;
    }
    #2
    Nested loops:-
    - We can also use a loop inside another loop statement. A loop inside another loop is known as a nested loop.
    - There can be any number of inner loops inside an outer loop.
    Github repo : github.com/nav...
    Java:- bit.ly/JavaUde...
    Spring:- bit.ly/SpringU...
    More Learning :
    Java :- bit.ly/3x6rr0N
    Python :- bit.ly/3GRc7JX
    Django :- bit.ly/3MmoJK6
    JavaScript :- bit.ly/3tiAlHo
    Node JS :- bit.ly/3GT4liq
    Rest Api :-bit.ly/3MjhZwt
    Servlet :- bit.ly/3Q7eA7k
    Spring Framework :- bit.ly/3xi7buh
    Design Patterns in Java :- bit.ly/3MocXiq
    Docker :- bit.ly/3xjWzLA
    Blockchain Tutorial :- bit.ly/3NSbOkc
    Corda Tutorial:- bit.ly/3thbUKa
    Hyperledger Fabric :- bit.ly/38RZCRB
    NoSQL Tutorial :- bit.ly/3aJpRuc
    Mysql Tutorial :- bit.ly/3thpr4L
    Data Structures using Java :- bit.ly/3MuJa7S
    Git Tutorial :- bit.ly/3NXyCPu
    Donation:
    PayPal Id : navinreddy20
    www.telusko.com

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

  • @skshareena5013
    @skshareena5013 10 หลายเดือนก่อน +10

    Thanks for helping sir, salute for your hardworking to encouraging to us 😇

  • @hubbylife2561
    @hubbylife2561 7 วันที่ผ่านมา +1

    Great explanation ❤

  • @anil_roy858
    @anil_roy858 6 หลายเดือนก่อน +4

    I learned c first, now Java is very easy for me to understand 😊

    • @attitude-zd2kb
      @attitude-zd2kb 2 วันที่ผ่านมา

      Where did u learn c ? Online or offline

  • @ayodhyarode4522
    @ayodhyarode4522 7 หลายเดือนก่อน +2

    Thank you so much sir for this wonderful and amazing java series 😊

  • @tanishqyadavofficial5993
    @tanishqyadavofficial5993 วันที่ผ่านมา

    Great explanation sir ❤

  • @sankaranarayanan901
    @sankaranarayanan901 ปีที่แล้ว +6

    It extremely helpful.

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

    Sir, Apache Kafka, Dockar aur elastic search in topic pe bhi tutorial bana dijiye

  • @shivarajpujari5050
    @shivarajpujari5050 หลายเดือนก่อน

    Wonderful session 👍

  • @ViralVideos-d6d
    @ViralVideos-d6d 10 หลายเดือนก่อน +2

    Thank you so much✨❤‍🩹

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

    perfect😃Thank you ..

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

    Life me Frist java padhne aya tah channel par 🤔Ab mujhe chakkar aa raha hai 😇😇 ak satha ak din me itna video upload ho gaya kaise padhunga 🤣🤣🤣
    Hey Teluska Prabhu 🙏🙏😂

  • @sahanahd3445
    @sahanahd3445 9 หลายเดือนก่อน +1

    We can perform a cancatination on only string ( if both in string ) we can perform it but in this video i saw " hi " + i but how it is possible sir

    • @LuqmanSulayman-n9o
      @LuqmanSulayman-n9o หลายเดือนก่อน

      We can also perform concatenation operation on a string and a number and on two or more strings its possible .

  • @AbhaySingh-ts9gt
    @AbhaySingh-ts9gt 2 หลายเดือนก่อน

    sir mine just stopped at 124 and i thought may be beacuse of the bits value it may happen , am i correct ?

  • @singersairammanthena1919
    @singersairammanthena1919 10 หลายเดือนก่อน +2

    answer is : Bye 4

  • @youknowwho9846
    @youknowwho9846 8 หลายเดือนก่อน

    10:28 HAHHAHAH LOVE IT

  • @nagaj_nahskar
    @nagaj_nahskar 6 หลายเดือนก่อน +1

    "with bye, we got five, you know why?"

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

    Hi 5

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

    Please think about me 🤣🤣🤣🙏

  • @BenDover67894
    @BenDover67894 11 หลายเดือนก่อน +3

    man i just realised how slow my computer is
    it took my pc a minute to even cross 1 lakh mark while in yours it happened within 5 secs

    • @ag-user
      @ag-user 10 หลายเดือนก่อน

      lol

  • @Aaron_Patrick_2004
    @Aaron_Patrick_2004 9 หลายเดือนก่อน

    Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday Sunday i've already mentioned 😂

  • @vamsimora8333
    @vamsimora8333 8 หลายเดือนก่อน

    Tried an infinite loop but doesn't know how to stop the loop, ok my bad.

  • @AbhaySingh-ts9gt
    @AbhaySingh-ts9gt 2 หลายเดือนก่อน

    int i = 3 ;
    while(i

    • @bharathc16
      @bharathc16 หลายเดือนก่อน

      int i=1 ;
      while(i