Methods Kya Hai? Types of Methods in Java | Method Tutorial for Beginners

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • In this video, learn Methods Kya Hai? Types of Methods in Java | Method Tutorial for Beginners. Find all the videos of the Android Course in this playlist: • Android 📱App Developme...
    💎 Get Access to Premium Videos and Live Streams: / @wscubetech
    WsCube Tech is a leading Web, Mobile App & Digital Marketing company, and institute in India.
    We help businesses of all sizes to build their online presence, grow their business, and reach new heights.
    👉For Digital Marketing services (Brand Building, SEO, SMO, PPC, SEM, Content Writing), Web Development and App Development solutions, visit our website: www.wscubetech...
    👉Want to learn new skills and improve existing ones with in-depth and practical sessions? Enroll in our advanced online courses now and make yourself job-ready: courses.wscube...
    All the courses are job-oriented, up-to-date with the latest algorithms and modules, fully practical, and provide you hands-on projects.
    👉 Want to learn and acquire skills in English? Visit WsCube Tech English channel: bit.ly/2M3oYOs
    📞 For more info about the courses, call us: +91-9024244886, +91-9269698122
    ✅ CONNECT WITH THE FOUNDER (Mr. Kushagra Bhatia) -
    👉 Instagram - / kushagrabhatiaofficial
    👉 LinkedIn - / kushagra-bhatia
    Connect with WsCube Tech on social media for the latest offers, promos, job vacancies, and much more:
    ► Subscribe: bit.ly/wscubech...
    ► Facebook: / wsubetech.india
    ► Twitter: / wscubetechindia
    ► Instagram: / wscubetechindia
    ► LinkedIn : / wscubetechindia
    ► CZcams: / wscubetechjodhpur
    ► Website: wscubetech.com
    -------------------------------------| Thanks |--------------------------
    #AndroidCourse #MethodsKyaHai

Komentáře • 33

  • @wscubetech
    @wscubetech  Před 2 lety +3

    😎Hey, thanks for watching! We’d love to know your thoughts/doubts here in the comments.
    🔴 To learn Android App Development online with regular LIVE CLASSES, enroll now: forms.gle/qvhLEnfeUo8NadJM8
    👉For professional self-paced certification courses (pre-recorded), visit: bit.ly/Pre-Recorded-Course
    👉Don’t forget to SUBSCRIBE our channel for more such videos & valuable content: bit.ly/CZcams-WsCubeTech

    • @mr.mallick9492
      @mr.mallick9492 Před 2 měsíci

      Please add static "public static int Add(int a, int b){". otherwise it is showing error.
      public class sum_function{

      public static void main(String[] args){
      int sum = Add(100,200);
      System.out.println("The sum is: "+ sum);
      }
      public static int Add(int a, int b){
      int sum = a+b;
      return sum;
      }
      }

  • @ashwanikumarkaushik2531
    @ashwanikumarkaushik2531 Před rokem +6

    If you get static error.
    public static int Add(int a, int b){
    Write static as above.

  • @ashwanikumarkaushik2531
    @ashwanikumarkaushik2531 Před rokem +1

    One of the best tutorials available.

  • @vssbstream6886
    @vssbstream6886 Před 2 lety +5

    Sir please ye sare programme Android Studio me kijiye jis se jyada samaj me aayega hame 🙏

    • @codingforjob4909
      @codingforjob4909 Před 2 lety +2

      Bhai ye pre-recorded cource hai ek bar phle b isi channel p upload ho chuka hai

  • @aihtishamarfi6489
    @aihtishamarfi6489 Před rokem +4

    Beautiful way to give lecture

  • @sushilkhot4738
    @sushilkhot4738 Před 8 měsíci +2

    here is the actual code which is working
    public class sum_function{
    public static void main(String[] args){
    int sum = Add(100,200);
    System.out.println("The sum is: "+ sum);
    }
    public static int Add(int a, int b){
    int sum = a+b;
    return sum;
    }
    }

  • @rkrk5378
    @rkrk5378 Před 9 měsíci +1

    You answered some questions here which took me 2-3 years to understand

  • @swapnilkulkarni717
    @swapnilkulkarni717 Před 2 lety +4

    Sir I am using eclipse, but at the time of writing method that time I have need to write "static" in method

  • @shiv1888
    @shiv1888 Před 2 lety +4

    If you are getting error while running please write static with your method name

    • @sahildhamija926
      @sahildhamija926 Před 2 lety

      thank you yaar

    • @srynolwl3405
      @srynolwl3405 Před 2 lety

      Why to write static

    • @tusharbharti732
      @tusharbharti732 Před rokem

      @@srynolwl3405 because you are calling it inside main method which is of static type.
      So your called method should also be static.

    • @mayurikale297
      @mayurikale297 Před rokem

      @@tusharbharti732 ur info is correct , but u can use it only when u r creating a method in the same main class and not in the other class. Cause static methods will work only in same class , it's accessibility is only within the class , otherwise it will throws an runtime error 🙂

    • @42_debadritaaichsarkar36
      @42_debadritaaichsarkar36 Před rokem

      Thank you mamuuu

  • @hikmatshinwari1647
    @hikmatshinwari1647 Před 2 lety +1

    best explanation

  • @SahidulIslam-tz6tm
    @SahidulIslam-tz6tm Před rokem +3

    Sir, you are calling a non static method from a static context and still not getting any error, how?

  • @codingforjob4909
    @codingforjob4909 Před 2 lety

    Sir jo aapne ye samjhaya hai isme add nonstatic method hai aapne main m kese call kar diya bina object create kiye

    • @amritchauhan7037
      @amritchauhan7037 Před 2 lety +2

      bhai yehi problem aari h mujhe bhi mere islea error aara h... or mujhe bhai pta bhi ni kaise kaise krna h , i'm a beginner.

    • @deepkkaushik1238
      @deepkkaushik1238 Před rokem

      @@amritchauhan7037 same here bro

    • @deepkkaushik1238
      @deepkkaushik1238 Před rokem

      @@amritchauhan7037 solve hui problem fir

  • @coderbipin1407
    @coderbipin1407 Před 2 lety

    👍👍👍👍👍👍👍

  • @k-98-Head-short
    @k-98-Head-short Před rokem

    sir android complete course karna hai mujha paid wala

    • @wscubetech
      @wscubetech  Před rokem

      Please Visit: courses.wscubetech.com/s/store/courses

  • @TrkAziz
    @TrkAziz Před rokem

    How to solve error?
    🥲

  • @sheelamunduiya1070
    @sheelamunduiya1070 Před rokem

    First aid çod