Methods Kya Hai? Types of Methods in Java | Method Tutorial for Beginners
ฝัง
- เผยแพร่เมื่อ 16 ก.ย. 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
► TH-cam: / wscubetechjodhpur
► Website: wscubetech.com
-------------------------------------| Thanks |--------------------------
#AndroidCourse #MethodsKyaHai
😎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/TH-cam-WsCubeTech
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;
}
}
If you get static error.
public static int Add(int a, int b){
Write static as above.
Beautiful way to give lecture
how to solve error
You answered some questions here which took me 2-3 years to understand
Sir please ye sare programme Android Studio me kijiye jis se jyada samaj me aayega hame 🙏
Bhai ye pre-recorded cource hai ek bar phle b isi channel p upload ho chuka hai
One of the best tutorials available.
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;
}
}
thanx bro
Love u bro
Yes, it is correct. Thanks a lot.
Sir I am using eclipse, but at the time of writing method that time I have need to write "static" in method
If you are getting error while running please write static with your method name
thank you yaar
Why to write static
@@srynolwl3405 because you are calling it inside main method which is of static type.
So your called method should also be static.
@@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 🙂
Thank you mamuuu
best explanation
Sir, you are calling a non static method from a static context and still not getting any error, how?
same problem bro
kitna shikh liye ho bro
👍👍👍👍👍👍👍
Sir jo aapne ye samjhaya hai isme add nonstatic method hai aapne main m kese call kar diya bina object create kiye
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.
@@amritchauhan7037 same here bro
@@amritchauhan7037 solve hui problem fir
sir android complete course karna hai mujha paid wala
Please Visit: courses.wscubetech.com/s/store/courses
How to solve error?
🥲
First aid çod