COMMAND LINE ARGUMENTS - JAVA PROGRAMMING

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2024

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

  • @arjungautam1672
    @arjungautam1672 5 ปีที่แล้ว +14

    Finally, you give a good concept. Thanks for sharing

  • @sadbhavanadas6021
    @sadbhavanadas6021 4 ปีที่แล้ว +29

    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 ปีที่แล้ว +3

    Woww literally shocked by your teaching very clear explanation keep rocking bro🔥🔥

  • @azharshaikh9642
    @azharshaikh9642 2 ปีที่แล้ว

    Wowww just amazing

  • @koradabhushan1548
    @koradabhushan1548 3 ปีที่แล้ว

    Sir you are really great for better explaination

  • @kogilathotavijayreddy4963
    @kogilathotavijayreddy4963 2 ปีที่แล้ว

    Your videos are helpful...

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

    Ur explanation is so good sir
    Can u please give lecture on wrapper classes sir?

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

    Sir you are super❤️ , concepts are easily understandable

  • @ind-ram
    @ind-ram 5 ปีที่แล้ว +6

    makes more videos on java programming

  • @ind-ram
    @ind-ram 5 ปีที่แล้ว +4

    first view of this nice video

  • @virat4950
    @virat4950 2 ปีที่แล้ว

    excellent sir 👍👍😍😍

  • @pdpaxpv
    @pdpaxpv ปีที่แล้ว

    Finally I understand String args[] lol...... Thanks!

  • @rinkykumari4470
    @rinkykumari4470 4 ปีที่แล้ว

    Good explanation

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

    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
    at Add.main(Add.java:6)

  • @ΧρυσοβαλαντηςΤασιοπουλος

    Excellent presentation ! So you can declare a main function inside a body of a class? In C that is not possible !!

  • @abhijitmondal9203
    @abhijitmondal9203 4 ปีที่แล้ว +11

    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 ปีที่แล้ว +4

      @Sundeep sir !! Can you please answer this question.

    • @sundeepsaradhi
      @sundeepsaradhi  4 ปีที่แล้ว +9

      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 ปีที่แล้ว +2

      Sundeep Saradhi Kanthety Got it!! Thanks sir :)

    • @harinihar2468
      @harinihar2468 2 ปีที่แล้ว

      Thank-you for the q&a

    • @SK-gp6cm
      @SK-gp6cm 2 ปีที่แล้ว +1

      @@sundeepsaradhi sir can you plz give me notes of Java and python plz

  • @durgavyboina3896
    @durgavyboina3896 2 ปีที่แล้ว

    Your teaching was fabulous but we can't understand in english so, please do in telugu sir..!🙏🙏🙏🙏🙏🙏

  • @durgavyboina3896
    @durgavyboina3896 2 ปีที่แล้ว

    Sir, please do these core java classes in telugu sir..🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @krishnakumar-tw7cl
    @krishnakumar-tw7cl 3 ปีที่แล้ว

    But great explanation

  • @MohamedOsman-jh6ik
    @MohamedOsman-jh6ik 4 ปีที่แล้ว

    Explain command line arguments

  • @amulbabyentertainments6818
    @amulbabyentertainments6818 5 ปีที่แล้ว +1

    How to get many command line arguments one by one in java. Like
    Input : hello
    Output: hii
    Input: how r u
    Output: fine

  • @gowthamigowthu1758
    @gowthamigowthu1758 3 ปีที่แล้ว

    Sir please explain lab practical programs factorial of list of numbers reading input as command line argument

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

    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??

  • @adithyasundar2017
    @adithyasundar2017 4 ปีที่แล้ว

    Should we give command line arguments only in Main function

  • @nishanair3925
    @nishanair3925 2 ปีที่แล้ว

    sir, are these 2 arguments in main() the same String args[] and String[] args. Both are seen used

  • @vigneshwaran3540
    @vigneshwaran3540 5 ปีที่แล้ว +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 ปีที่แล้ว +13

      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.

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

    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?

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

    Hello sir, your explanation is good,but I have a doubt that can't we write the above program without type casting?

  • @harshithareddymanazipet260
    @harshithareddymanazipet260 3 ปีที่แล้ว

    sir, if we write scanner in the function what changes will be made in output and input

  • @krishnakumar-tw7cl
    @krishnakumar-tw7cl 3 ปีที่แล้ว +1

    Subtitles is good sir but it is some disturbing to program is not visible in bottom so

  • @manaligadre6690
    @manaligadre6690 4 ปีที่แล้ว

    You are my god!

  • @edhisangatulu
    @edhisangatulu 4 ปีที่แล้ว

    Sir please upload tutorial on c program

  • @_random__vlogs_
    @_random__vlogs_ 4 ปีที่แล้ว +1

    What is the usage or advantage of using this buffer reader?

    • @sundeepsaradhi
      @sundeepsaradhi  4 ปีที่แล้ว +1

      Hi
      Budferedreader is also used to take inputs from a file or keyboard

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

    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.

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

    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 ปีที่แล้ว +3

      Hi
      Even though you are not using command line arguments the input is taken as string so we have convert the data type

  • @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).

  • @jangammohankalyan8258
    @jangammohankalyan8258 3 ปีที่แล้ว

    When we run that program it was showing arrayindexboundexception

  • @pesgamer00
    @pesgamer00 2 หลายเดือนก่อน +1

    Jose present

  • @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.

  • @mohammedabrar6220
    @mohammedabrar6220 ปีที่แล้ว

    Sir why you not show the program in eclips so we can easily understand it

  • @r-39amratprajapati76
    @r-39amratprajapati76 3 ปีที่แล้ว

    Sir I have problem of explanation thread main java.lang.arrayindexoutofboundsexcpetion :2 what I do?

  • @sanm3338
    @sanm3338 4 ปีที่แล้ว

    thank you !

  • @jayapalselvam7838
    @jayapalselvam7838 2 ปีที่แล้ว

    Sir it showing ArrayIndexOutOfBoundException

  • @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

  • @backtoheaven9581
    @backtoheaven9581 4 ปีที่แล้ว

    hii sir
    what about System.err??

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

    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 ปีที่แล้ว +2

      Hi Vivek
      Not require to mention the size of argument array in main . So write
      public static void main(String args[ ]).

  • @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.

  • @testingt9762
    @testingt9762 ปีที่แล้ว

    Sir array declaration portions missing

  • @rishikasahu3319
    @rishikasahu3319 4 ปีที่แล้ว +1

    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.

  • @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 ปีที่แล้ว +2

      Because...the time completion to run the program is lesser than compared to Scanner class.....

  • @knoorjahan226
    @knoorjahan226 5 ปีที่แล้ว +1

    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

  • @KeerthanaLM-u3n
    @KeerthanaLM-u3n 7 หลายเดือนก่อน

    I am confused for what is byte code

  • @narsibhupathi2702
    @narsibhupathi2702 4 ปีที่แล้ว +1

    I got errors while using those type cast methods

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

    Gd after noon sir ,it shows error during compilation

    • @kamaleshs537
      @kamaleshs537 4 ปีที่แล้ว +1

      Yes...here you must create an object using Bufferedreader,because there we typecasting the integer values to string.................hope u understand it....🙂🤗

  • @velumani2372
    @velumani2372 2 ปีที่แล้ว

    Sir please dubbing in tamil

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

    Sir , What is CMD ?

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

      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 5 ปีที่แล้ว +3

      @@sundeepsaradhi
      Yes Sir my Doubt is clear Now Thanks for giving lectures I am sharing your Channel as much I can👍👍

  • @twinklingstar1224
    @twinklingstar1224 3 ปีที่แล้ว

    This program shows me an error

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

    hi sir i have doubt where did you buy your tshirt .its very good looking hot

  • @chandramohan9395
    @chandramohan9395 4 ปีที่แล้ว

    Sry cla??

  • @walkeranil3770
    @walkeranil3770 5 ปีที่แล้ว

    why did u write Intege.paseint

    • @knoorjahan226
      @knoorjahan226 5 ปีที่แล้ว +1

      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