COMMAND LINE ARGUMENTS - JAVA PROGRAMMING

  Рет қаралды 93,500

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

Пікірлер: 84
@arjungautam1672
@arjungautam1672 5 жыл бұрын
Finally, you give a good concept. Thanks for sharing
@sadbhavanadas6021
@sadbhavanadas6021 4 жыл бұрын
Sir, really it's a great platform for learning Java.Can we get few list of questions for Java Programming which will be helpful to us to practice the codes
@SK-gp6cm
@SK-gp6cm 2 жыл бұрын
Bro can you send me practice programs
@devesh8537
@devesh8537 4 жыл бұрын
Woww literally shocked by your teaching very clear explanation keep rocking bro🔥🔥
@koradabhushan1548
@koradabhushan1548 3 жыл бұрын
Sir you are really great for better explaination
@ind-ram
@ind-ram 6 жыл бұрын
first view of this nice video
@azharshaikh9642
@azharshaikh9642 2 жыл бұрын
Wowww just amazing
@kogilathotavijayreddy4963
@kogilathotavijayreddy4963 2 жыл бұрын
Your videos are helpful...
@rohithbandi1652
@rohithbandi1652 3 жыл бұрын
Sir you are super❤️ , concepts are easily understandable
@anusrikamidri7299
@anusrikamidri7299 2 жыл бұрын
Ur explanation is so good sir Can u please give lecture on wrapper classes sir?
@ind-ram
@ind-ram 6 жыл бұрын
makes more videos on java programming
@virat4950
@virat4950 2 жыл бұрын
excellent sir 👍👍😍😍
@abhijitmondal9203
@abhijitmondal9203 5 жыл бұрын
What if I don't ever use any sort of command-line arguments....do I still need to mention the args[] as a parameter in main()? Because, in such case I don't see any need of this args[]. Thanks in advance!
@manaligadre6690
@manaligadre6690 4 жыл бұрын
@Sundeep sir !! Can you please answer this question.
@sundeepsaradhi
@sundeepsaradhi 4 жыл бұрын
hi even though you are not using any inputs through command line we have to pass an array args[] inside the main function. compiler will search the main with the format so we have to include this args[].
@manaligadre6690
@manaligadre6690 4 жыл бұрын
Sundeep Saradhi Kanthety Got it!! Thanks sir :)
@harinihar2468
@harinihar2468 2 жыл бұрын
Thank-you for the q&a
@SK-gp6cm
@SK-gp6cm 2 жыл бұрын
@@sundeepsaradhi sir can you plz give me notes of Java and python plz
@pdpaxpv
@pdpaxpv Жыл бұрын
Finally I understand String args[] lol...... Thanks!
@rinkykumari4470
@rinkykumari4470 4 жыл бұрын
Good explanation
@amitkoushik5504
@amitkoushik5504 2 жыл бұрын
Hello sir just a small correction at 9:41 ,we can save a java file with any name , there is no relationship between the file name and the class name consisting of the main method. The relationship is there between the public class name and file name , if a class is declared as public then only it's fine name should be the same as the class name. Thank you.
@pradeepnaidu1132
@pradeepnaidu1132 3 жыл бұрын
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Add.main(Add.java:6)
@vigneshwaran3540
@vigneshwaran3540 5 жыл бұрын
sir c is declare as integer by why you didn't write IntegerparseInt() function for variable since the system takes it as the string
@sundeepsaradhi
@sundeepsaradhi 5 жыл бұрын
hi here c is the output variable so output is addition of two integers which will always be integer so we need not go for typecasting. Hope your doubt has been clarified.Thanks for your support towards our channel.
@chandramohan9395
@chandramohan9395 4 жыл бұрын
Hi sir nice explanation I have a doubt If we give an input as 5 then the output should be five can u print this using clm??
@fenil861
@fenil861 5 жыл бұрын
Sir can we determine the size of args[] and what if we don't write the String args[] as arguments but we input numbers by scanner class. Will the program be successfully executed or there will be an error?
@navyachenna683
@navyachenna683 4 жыл бұрын
Yeah same doubt
@krishnakumar-tw7cl
@krishnakumar-tw7cl 3 жыл бұрын
But great explanation
@sundeepsaradhi
@sundeepsaradhi 3 жыл бұрын
Thank you 🙂
@ΧρυσοβαλαντηςΤασιοπουλος
@ΧρυσοβαλαντηςΤασιοπουλος 3 жыл бұрын
Excellent presentation ! So you can declare a main function inside a body of a class? In C that is not possible !!
@nishanair3925
@nishanair3925 2 жыл бұрын
sir, are these 2 arguments in main() the same String args[] and String[] args. Both are seen used
@MohamedOsman-jh6ik
@MohamedOsman-jh6ik 4 жыл бұрын
Explain command line arguments
@jeevithaswamy5741
@jeevithaswamy5741 4 жыл бұрын
Hello sir, your explanation is good,but I have a doubt that can't we write the above program without type casting?
@durgavyboina3896
@durgavyboina3896 2 жыл бұрын
Sir, please do these core java classes in telugu sir..🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@gowthamigowthu1758
@gowthamigowthu1758 3 жыл бұрын
Sir please explain lab practical programs factorial of list of numbers reading input as command line argument
@adithyasundar2017
@adithyasundar2017 4 жыл бұрын
Should we give command line arguments only in Main function
@amulbabyentertainments6818
@amulbabyentertainments6818 5 жыл бұрын
How to get many command line arguments one by one in java. Like Input : hello Output: hii Input: how r u Output: fine
@yellaadilakshmi5629
@yellaadilakshmi5629 4 жыл бұрын
@@KumaranKM Sir did you use thread concept?
@harshithareddymanazipet260
@harshithareddymanazipet260 3 жыл бұрын
sir, if we write scanner in the function what changes will be made in output and input
@pravinshinde3177
@pravinshinde3177 5 жыл бұрын
if we are not using cmd(using eclipse) then we no need to write like integer.pareseInt(arg[]) please rectify my doubt.
@sundeepsaradhi
@sundeepsaradhi 5 жыл бұрын
Hi Even though you are not using command line arguments the input is taken as string so we have convert the data type
@durgavyboina3896
@durgavyboina3896 2 жыл бұрын
Your teaching was fabulous but we can't understand in english so, please do in telugu sir..!🙏🙏🙏🙏🙏🙏
@_random__vlogs_
@_random__vlogs_ 4 жыл бұрын
What is the usage or advantage of using this buffer reader?
@sundeepsaradhi
@sundeepsaradhi 4 жыл бұрын
Hi Budferedreader is also used to take inputs from a file or keyboard
@edhisangatulu
@edhisangatulu 4 жыл бұрын
Sir please upload tutorial on c program
@ramneelavlogs
@ramneelavlogs 3 жыл бұрын
hi sir im a begginer to java (sry about my silly doubts ): The command line argument passing you are refering to : is it the console in IDE or the actual command prompt in windows for the user to pass the value.
@user-mb1gx5sb4d
@user-mb1gx5sb4d 3 жыл бұрын
Its command prompt where we compile and execute the file(typed in notepad).
@krishnakumar-tw7cl
@krishnakumar-tw7cl 3 жыл бұрын
Subtitles is good sir but it is some disturbing to program is not visible in bottom so
@saivivekkammari8851
@saivivekkammari8851 4 жыл бұрын
got an error. below is my code. Please tell me whats the mistake in my code class Add1 { public static void main( String args[2]) { int a,b,c ; a = Integer.parseInt(args[0]); b = Integer.parseInt(args[1]); c = a+b; System.out.println(c); } } #error Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at Add1.main(Add1.java:5)
@sundeepsaradhi
@sundeepsaradhi 4 жыл бұрын
Hi Vivek Not require to mention the size of argument array in main . So write public static void main(String args[ ]).
@r-39amratprajapati76
@r-39amratprajapati76 3 жыл бұрын
Sir I have problem of explanation thread main java.lang.arrayindexoutofboundsexcpetion :2 what I do?
@manaligadre6690
@manaligadre6690 4 жыл бұрын
You are my god!
@sivasiva5455
@sivasiva5455 2 жыл бұрын
Sir i am execute the program,it shows no error,but to run the program it shows ArrayIndexOutOfBound Exception can you clarify please
@pixiedust..9789
@pixiedust..9789 2 жыл бұрын
Sir, why is it a STRING ARRAY by default? Can it be int args[ ]? If not, why?
@swamyvedurupaka4236
@swamyvedurupaka4236 Жыл бұрын
Other to string conversion is easy and most of devlopers used string data type.
@pdpaxpv
@pdpaxpv Жыл бұрын
String is universal. Suppose you write: java program 56 43 abc. It will throw an exception right there, because you declared args as int. But String will receive any value and parse it into anything you want.
@backtoheaven9581
@backtoheaven9581 4 жыл бұрын
hii sir what about System.err??
@ravikumar-pw3zx
@ravikumar-pw3zx 4 жыл бұрын
Sir i have a big doubt why we use this CMD line simply we can use scanner class. ok we use this CMD then what is the advantage?
@kamaleshs537
@kamaleshs537 4 жыл бұрын
Because...the time completion to run the program is lesser than compared to Scanner class.....
@rishikasahu3319
@rishikasahu3319 4 жыл бұрын
Sir, I write the same program in TCS DRC test, but it was showing arrayIndexOutOfBound error
@srujanpalavarapu1520
@srujanpalavarapu1520 3 жыл бұрын
Same here, did you find the solution? Please explain if you got it.
@sanm3338
@sanm3338 4 жыл бұрын
thank you !
@knoorjahan226
@knoorjahan226 5 жыл бұрын
I have a doubt !! If we want to inform the user to enter valid data through commandline . How do we achieve that? Means validating user input and informing him to enter valid data if he enters valid data through commandline itself
@danieltornero5523
@danieltornero5523 5 жыл бұрын
You can use try-catch
@mohammedabrar6220
@mohammedabrar6220 Жыл бұрын
Sir why you not show the program in eclips so we can easily understand it
@jangammohankalyan8258
@jangammohankalyan8258 3 жыл бұрын
When we run that program it was showing arrayindexboundexception
@testingt9762
@testingt9762 Жыл бұрын
Sir array declaration portions missing
@jayapalselvam7838
@jayapalselvam7838 2 жыл бұрын
Sir it showing ArrayIndexOutOfBoundException
@mohitprajapati4043
@mohitprajapati4043 6 жыл бұрын
Sir , What is CMD ?
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
Hi mohit Assume the file name is saved as CMD.java Hope your doubt has been clarified. Thank you for watching our channel and share my sessions with your friends and keep following our channel
@mohitprajapati4043
@mohitprajapati4043 6 жыл бұрын
@@sundeepsaradhi Yes Sir my Doubt is clear Now Thanks for giving lectures I am sharing your Channel as much I can👍👍
@sudarshanv9797
@sudarshanv9797 3 жыл бұрын
there is one thing wrong in this video, that is we can't run .class file using java command. we can only run .jar file, because it has executable code of our program, .class file is just a compiled file, we can still read a .class file using java code editor, but we can't read a .jar file because it has bytecode in it.
@chirusetturu63
@chirusetturu63 5 жыл бұрын
Gd after noon sir ,it shows error during compilation
@kamaleshs537
@kamaleshs537 4 жыл бұрын
Yes...here you must create an object using Bufferedreader,because there we typecasting the integer values to string.................hope u understand it....🙂🤗
@pesgamer00
@pesgamer00 3 ай бұрын
Jose present
@narsibhupathi2702
@narsibhupathi2702 5 жыл бұрын
I got errors while using those type cast methods
@KeerthanaLM-u3n
@KeerthanaLM-u3n 8 ай бұрын
I am confused for what is byte code
@sriharshakamojhala4034
@sriharshakamojhala4034 5 жыл бұрын
hi sir i have doubt where did you buy your tshirt .its very good looking hot
@velumani2372
@velumani2372 2 жыл бұрын
Sir please dubbing in tamil
@walkeranil3770
@walkeranil3770 5 жыл бұрын
why did u write Intege.paseint
@knoorjahan226
@knoorjahan226 5 жыл бұрын
Whatever we enter in command line will be in the form of string to convert it to integer we use integer.parseInt();
@akhandbharat4855
@akhandbharat4855 3 жыл бұрын
@@knoorjahan226 can you have larger number program using compand line program
@twinklingstar1224
@twinklingstar1224 3 жыл бұрын
This program shows me an error
@chandramohan9395
@chandramohan9395 4 жыл бұрын
Sry cla??
TYPES OF VARIABLES - JAVA PROGRAMMING
16:52
Sundeep Saradhi Kanthety
Рет қаралды 199 М.
INPUT-OUTPUT FUNCTIONS(SCANNER CLASS) - JAVA PROGRAMMING
29:11
Sundeep Saradhi Kanthety
Рет қаралды 164 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 9 МЛН
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 13 МЛН
How to use command line arguments in Java
13:02
Gina Sprint
Рет қаралды 13 М.
Command Line Arguments in C | C Language Tutorial
10:07
Naresh i Technologies
Рет қаралды 231 М.
JAVA BUZZWORDS (FEATURES) - JAVA PROGRAMMING
17:47
Sundeep Saradhi Kanthety
Рет қаралды 209 М.
DIFFERENCES BETWEEN METHOD OVERLOADING AND OVERRIDING - JAVA PROGRAMMING
13:35
Sundeep Saradhi Kanthety
Рет қаралды 175 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 778 М.
Command Line Arguments in Java
6:21
Neso Academy
Рет қаралды 327 М.
INPUT-OUTPUT FUNCTIONS (BufferedReader CLASS) - JAVA PROGRAMMING
21:19
Sundeep Saradhi Kanthety
Рет қаралды 121 М.
STATIC VARIABLES, STATIC METHODS & STATIC BLOCK - JAVA PROGRAMMING
22:40
Sundeep Saradhi Kanthety
Рет қаралды 237 М.
ABSTRACT METHODS AND ABSTRACT CLASS - JAVA PROGRAMMING
26:44
Sundeep Saradhi Kanthety
Рет қаралды 229 М.
what is the purpose of command line arguments in java
11:31
Durga Software Solutions
Рет қаралды 58 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 9 МЛН