No video

public static void main(String[] args) - Hindi

  Рет қаралды 34,755

GagMansa- Learn Java

GagMansa- Learn Java

Күн бұрын

Learn public static void main(String[] args) in detail.
1. Why we use main method?
2. What if we don’t write main method in a class? Will it get compiled with no error?
3. Explain syntax of main method.
4. Why main method is public?
5. Why main method is static?
6. Why return type of main method is void?
Related Video:
Class and Object - Hindi
• Class and Object - Hin...
Objects in Java - Hindi
• Objects in Java - Hindi
Command Line Arguments/ String[] args - Hindi
• Command Line Arguments...
can we change main method with no error? - Hindi
• can we change main met...
Explain System.out.println(); in detail- Hindi
• Explain System.out.pri...
Please feel free to put your doubts and queries in comment box.
Please LIKE and SHARE if you find it useful.
Please SUBSCRIBE to get new videos of java tutorials.

Пікірлер: 52
@vijaykumaryadav3417
@vijaykumaryadav3417 Жыл бұрын
Thank you so much you cleared all my doubt ..i learning java from 4 month i searched lots on google but explaination given by you i didn't find it .. ❤️
@mayankjoshi6604
@mayankjoshi6604 2 жыл бұрын
One of the best lecture in youtube. Thank you
@mostviewedvideoRam
@mostviewedvideoRam 5 ай бұрын
There is one thing more we change in main method that is we can change the sequence of public and static....check static public void main(.... It's work.....
@gagmansa
@gagmansa 5 ай бұрын
kzfaq.info/get/bejne/hrNlq6poq5a2qZc.html
@nishaleader8313
@nishaleader8313 5 ай бұрын
Bestest video 🎉
@Nishant12375
@Nishant12375 4 жыл бұрын
One of best video on KZfaq
@CricketIndiaOfficialIn
@CricketIndiaOfficialIn Жыл бұрын
what an explanation mam........really a nice vdo
@abdulmatin9957
@abdulmatin9957 Жыл бұрын
Very well explained by You!!!
@orionbelt2266
@orionbelt2266 4 жыл бұрын
u r doing a great job. keep it up.
@ankushshirsath5024
@ankushshirsath5024 4 жыл бұрын
Very good excellent
@satishatugade9378
@satishatugade9378 3 жыл бұрын
Thanku so kuch mam mera concept clear karne ke liye
@arpancs
@arpancs 2 жыл бұрын
Thankyou so much you have cleared my all doubts 😊
@hemagogawale6225
@hemagogawale6225 2 жыл бұрын
main method kuch bhi return kyu nahi karega? agar hum return karna chahate hai to kya hum void ki jagah int ya char write kar sakate hai kya
@justgetit5931
@justgetit5931 3 жыл бұрын
Thank You so Much Mam God bless you
@MOHITSHARMA-qz9lo
@MOHITSHARMA-qz9lo 5 жыл бұрын
Nice explanation
@pragyagupta7536
@pragyagupta7536 3 жыл бұрын
Really great Like really! Thank you
@mrpankajrajput2744
@mrpankajrajput2744 Жыл бұрын
nice
@tanveeralam1572
@tanveeralam1572 2 жыл бұрын
Thnkyu so mch
@rushikarangale4754
@rushikarangale4754 2 жыл бұрын
Good explained 👍
@kundansrivastava2716
@kundansrivastava2716 2 жыл бұрын
Well explained 👍
@anamikamishra444
@anamikamishra444 2 жыл бұрын
Thankyou
@mesmerizeart663
@mesmerizeart663 Жыл бұрын
Static access modifire nehin hai O ek memory hai
@parth.....2905
@parth.....2905 2 жыл бұрын
Is Static is a access modifeir , as u told mam ?
@gagmansa
@gagmansa 2 жыл бұрын
static is a predefined keyword... It is a modifier but a non-access modifier... ...
@sunilsuni7008
@sunilsuni7008 3 жыл бұрын
Helpful
@GovindDabhi-rs2gg
@GovindDabhi-rs2gg 4 жыл бұрын
Nice video
@GovindDabhi-rs2gg
@GovindDabhi-rs2gg 4 жыл бұрын
New videos banake dijiye Addvance java ka programme
@jingibodra3031
@jingibodra3031 5 жыл бұрын
Thank uuu
@tejaschaudhari9377
@tejaschaudhari9377 4 жыл бұрын
Great
@sachinmishra9181
@sachinmishra9181 2 жыл бұрын
Mam...can there be more than one main methods within a program?
@gagmansa
@gagmansa 2 жыл бұрын
yes.. but with different parameters... just like method overloading here is your answer kzfaq.info/get/bejne/hdmEp7aH2J7akZc.html
@sachinmishra9181
@sachinmishra9181 2 жыл бұрын
@@gagmansa ...thank you mam...
@nikhilramkrus56
@nikhilramkrus56 2 жыл бұрын
Can we over ride main method???
@gagmansa
@gagmansa 2 жыл бұрын
i will post video soon regarding this
@nuturelifestyle
@nuturelifestyle 4 жыл бұрын
Q. - private static void main(Strong arg[]) { } is true or false?
@rajeshsutar6797
@rajeshsutar6797 2 жыл бұрын
Mam please provide notes
@tejaschaudhari9377
@tejaschaudhari9377 4 жыл бұрын
Can we call String as a data type
@gagmansa
@gagmansa 4 жыл бұрын
Yes, String is a non primitive data type. Data types in java kzfaq.info/get/bejne/jsCJna2GvNXVqXk.html
@tejaschaudhari9377
@tejaschaudhari9377 4 жыл бұрын
@@gagmansa Thank you
@CYBERSEC
@CYBERSEC 4 жыл бұрын
sav kuch theek hai but eak aur video bnaaye , ye concept clear nai hua mera , jase aap bole void return type hai , but kya return , kya return nai krega JVM ko.
@gagmansa
@gagmansa 4 жыл бұрын
method bnate time hme return type likhna hi pdta hai.. agat method kuch return nhi krta to void likhte h for example, school me attendance lagti hi hai chahe students aaye ya naa aaye. student nhi aaya to absent lag jati h.. void means absent.
@CYBERSEC
@CYBERSEC 4 жыл бұрын
@@gagmansa samajh mai aagay , kya gajav ka example diya aapne 😂 really appreciate.
@CYBERSEC
@CYBERSEC 4 жыл бұрын
@@gagmansa eak aur help chaye -> java mai token mai ye sav rahta [operator , seperator , punctuator , identfier , literal , assignement ] , toh operator mai bitwise operator mai eak complement rahta hai jisko es symbol se denote karte hai --> ~ , toh es ka matlab kya hota hai.
@gagmansa
@gagmansa 4 жыл бұрын
it is Bitwise Complement Operator. It returns one's complement by converting '0' to '1' and '1' to '0' example: input 10011001 after this operator you will get 01100110
@AtoZMovies
@AtoZMovies 4 жыл бұрын
O madam according to u main method ko public isiliye bnate h coz program E drive me h. Or jvm c drive me. Now the question is. Agr me main method ko private kr du or C drive me save kr du to kya ye chal jayega. Dnt make a fool of ur subscribers.
@gagmansa
@gagmansa 4 жыл бұрын
Mind your tone first.. And listen again and again if u don't get it. Program e drive me HAI nhi HO SKTA hai and kahin bhi HO SKTA hai... U don't go to main method everytime and explain that u hv saved ur program in c drive or e drive. And now the question u hv asked... U can write with pen, pencil, chalk etc.. But college me exam me Cryon colors se likhoge to chal jayega kya? If u still have issues FEEL FREE TO UNSUBSCRIBE ANYTIME.
@AtoZMovies
@AtoZMovies 4 жыл бұрын
Madam let suppose program in E drive. I knw program can be saved anywhere. But i want to ask one question if i make main method private and save it into c drive. So it will work?
@gagmansa
@gagmansa 4 жыл бұрын
Try to run your program after making main private.. U will get your ans.
@AtoZMovies
@AtoZMovies 4 жыл бұрын
I already try it. But i want to ask u
@pocketshorts5731
@pocketshorts5731 4 жыл бұрын
See brother , variable and method made with public access specifier can be accessed from out side of that particular class , means to say JVM call the main method from outside the class that's why it's written in that way.
@surajshah2275
@surajshah2275 5 жыл бұрын
Nice video
@knowledgeyatra1316
@knowledgeyatra1316 5 жыл бұрын
Fantastic
can we change main method with no error? - Hindi
15:59
GagMansa- Learn Java
Рет қаралды 3 М.
Explain about public static void main(String[] args); ( PART- I )
28:14
DURGA EDUCATION
Рет қаралды 668 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,8 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 16 МЛН
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 532 М.
Should you learn C++ in 2023?
8:06
Dreams of Code
Рет қаралды 54 М.
#3 Explain Prototype of main Method in Java Hindi
12:21
MySirG.com
Рет қаралды 17 М.
Java Main Method Explained - What Does All That Stuff Mean?
7:10
Coding with John
Рет қаралды 227 М.
Objects in Java - Hindi
11:49
GagMansa- Learn Java
Рет қаралды 35 М.
MAIN METHOD EXPLANATION - JAVA PROGRAMMING
7:46
Sundeep Saradhi Kanthety
Рет қаралды 170 М.
Programming vs Coding - What's the difference?
5:59
Aaron Jack
Рет қаралды 1,9 МЛН
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 612 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,8 МЛН