What is PUBLIC STATIC VOID MAIN ( STRING[] Args ) in JAVA | Most Asked interview Question

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.ค. 2022
  • public static void main(String[] args) Java main method is the entry point of any java program. Its syntax is always public static void main(String[] args) . You can only change the name of String array argument, for example you can change args to myStringArgs .
    Can we execute a java program without main method?
    Yes, we can execute a java program without a main method by using a static block.
    A static block in Java is a group of statements that gets executed only once when the class is loaded into the memory by ClassLoader, It is also known as a static initialization block, and it goes into the stack memory.
    Top Core Java Interview Questions || Core Java Interview Questions and Answers [MOST ASKED]
    Java Interview Questions and Answers | Java Tutorial | Java Online Training | Edureka
    Top 10 Java Interview Questions | Java Interview Questions And Answers | Company Question |Viva|
    Java Interview Questions And Answers | Public static void main | Java Programming Interview Questions And Answers
    Java INTERVIEW Questions for Freshers | Public static void main #javainterview What is JAVA? | Java Interview Questions and Answers what is java language what is java language in computer what is java language and its features what is java language javatpoint what is java, Public static void main

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

  • @b213videoz
    @b213videoz ปีที่แล้ว +397

    I wish I had this easy questions at my job interviews

    • @ELLIOT-uq8nc
      @ELLIOT-uq8nc 9 หลายเดือนก่อน +4

      ikr

    • @MizComplexd
      @MizComplexd 9 หลายเดือนก่อน +1

      😂

    • @firemonkey1015
      @firemonkey1015 7 หลายเดือนก่อน +2

      Lol imagine this being the challenge, the incompetency

    • @fftamilan2155
      @fftamilan2155 หลายเดือนก่อน

      🤣

  • @mystrkillz11
    @mystrkillz11 4 หลายเดือนก่อน +51

    nice description, i failed an interview on this because I was so nervous even though I use it every day. You would be surprised, once you get to an interview everything you know goes blank.

    • @FullRamenAlch3mist
      @FullRamenAlch3mist 18 วันที่ผ่านมา +3

      wishing you luck brother. You'll pass your next interview and land that job

  • @user-xc9tc3qd6z
    @user-xc9tc3qd6z 14 วันที่ผ่านมา +3

    this is a main function which store value in string arraay format and array name is Args.
    In which function
    --public is access modifiers .you can read deeeply.
    --static is modifiers which use we can use value without create object only class name.
    --void is return type which is not any return value.
    --main is function name and special function thats is called main function.

  • @mohabgamal6522
    @mohabgamal6522 ปีที่แล้ว +72

    LoL
    I thought this is a meme about long lines of Java

  • @Missalvirakhan
    @Missalvirakhan 8 หลายเดือนก่อน +9

    Thank you for Useful information,❤❤
    I'm new subscriber

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

    Great short video 🔥

  • @afifkhaja
    @afifkhaja 10 หลายเดือนก่อน +4

    Very helpful

  • @Spielerandom
    @Spielerandom 9 หลายเดือนก่อน +3

    Very good 👍🏻👍🏻👍🏻

  • @anandkumaryadav8802
    @anandkumaryadav8802 9 หลายเดือนก่อน +6

    Well it will be good for college viva.

  • @Ricky-zc8qm
    @Ricky-zc8qm ปีที่แล้ว +62

    Look how close he’s sitting to the desk and how far away she is, this man is an intimidating and dominating chad. Future CEO

  • @simransinha5298
    @simransinha5298 11 หลายเดือนก่อน +1

    Thanks 👍

  • @Meowerenchan
    @Meowerenchan 9 หลายเดือนก่อน +4

    Icse students studied this in class 9th

  • @SparshKashyap-wt2fx
    @SparshKashyap-wt2fx หลายเดือนก่อน

    Fabulous explanation ❤❤

  • @ganapathihomamayushyahomam
    @ganapathihomamayushyahomam หลายเดือนก่อน

    Thank you sir

  • @Affiliation2Code
    @Affiliation2Code 4 หลายเดือนก่อน +3

    What does "public static void main" stand for? Nowadays the answer should be: for an outdated Java version. Just "main" is enough from Java 21 onwards.

    • @ragedfalcon2397
      @ragedfalcon2397 3 หลายเดือนก่อน

      Except most programs or companies don't use Java 21

  • @brm8970
    @brm8970 ปีที่แล้ว +18

    Public is an access specifier right???

    • @samikshakamble105
      @samikshakamble105 10 หลายเดือนก่อน +7

      They both are same.

    • @brm8970
      @brm8970 10 หลายเดือนก่อน

      @@samikshakamble105 ok thanks 😊

    • @LearnJava_Programming
      @LearnJava_Programming 20 วันที่ผ่านมา

      Yes. Public, private and protected all specify the access. Public just allows us to acces it across the entire program

  • @souvikkundu
    @souvikkundu 7 หลายเดือนก่อน

    Thank you

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

    👍🏻👍🏻

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

    th-cam.com/play/PLQHqWY_g2kxI6Bo7JjJFyyX7qDR5Vb3DG.html Other Most Asked Question Covered in Playlist 1. Tell me About Yourself
    2. What are your strengths and weaknesses?
    3. Why Should I Hire You?
    4. How do you feel about working nights and weekends?
    5. Where do you see yourself in five years ?
    6. How long would you expect to work for us if hired?
    7. Do you have any questions for me?
    TECHNICAL QUESTION (JAVA)
    1. What is JAVA ?
    2. What are the features of JAVA
    3. What are the components of Java
    4. Difference between JDK JVM and JRE
    5. What is PUBLIC STATIC VOID MAIN ( STRING[] Args )
    6. What is Package in JAVA
    7. What is Primitive datatype in JAVA|
    8. Why String is not Primitive
    9.What is Literal and identifier in Java

  • @marnala.gopivinay
    @marnala.gopivinay หลายเดือนก่อน

    We can run the program with out any main method we can possible to get the output by using static block in the jdk version 1.6v until small problem is we will get runtime exception saying so such method : main
    In 1.7v if the main method is available or not main method we will get runtime exception saying can you define main method as public static void main(String[] args) first JVM will checks where the main method is available are not

  • @user-hq3vd1tt7t
    @user-hq3vd1tt7t 10 หลายเดือนก่อน +3

    bhaii yo main hota he na Main nhe first letter of method in java is small

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

    👍

  • @Meowerenchan
    @Meowerenchan 8 หลายเดือนก่อน +2

    Ye pow function kya hai
    Maine toh sirf math.pow suna tha

  • @ayushpatel5463
    @ayushpatel5463 3 หลายเดือนก่อน +1

    Corrections -
    Static variable creates intimiate relationship with var/method to the Class class Object

    • @Grehan-cf8rt
      @Grehan-cf8rt 2 หลายเดือนก่อน

      Can you elaborate about static, I asked chat gpt it says it is used to access from outside class without any instances

    • @ayushpatel5463
      @ayushpatel5463 2 หลายเดือนก่อน

      @@Grehan-cf8rt no brother... the static variables/method got bind up with class class object and instance level var/method with the instances we create with new keyword... that's the difference nothing more than that...
      that's why we can call static members with class name..
      on the other hand we call instance var/method using the instances

    • @ayushpatel5463
      @ayushpatel5463 2 หลายเดือนก่อน

      @@Grehan-cf8rt don't ask these fundamental wuestions from chatGPT... prefer tackoverflow, javatpoint,geeksForGekks

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

      ​​​@@Grehan-cf8rt in case of static we don't need to create obj of class. & if there are two different classes then we should use className to access the method.. Out side the class. If a single class then we can access method directly like this : eg: display () ;

    • @adhaverohini276
      @adhaverohini276 2 หลายเดือนก่อน

      class Test {
      static void display () {
      sop(”hii”) ;
      }
      public static void main(String[] args)
      {
      display () ;
      }
      }

  • @honu2980
    @honu2980 หลายเดือนก่อน

    this is literally the first thing you learn going into java

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

    can you pls explain why strings are immutable in java ?? with crystal clear explanation??

  • @swarnavachakraborty444
    @swarnavachakraborty444 27 วันที่ผ่านมา

    Make more hard questions, and also make videos on spring boot. Everyday morning i should get notification for small video like this.

  • @Meowerenchan
    @Meowerenchan 8 หลายเดือนก่อน +2

    57:30
    Ye kya example de diya

  • @user-lp7gr3oc9c
    @user-lp7gr3oc9c 18 วันที่ผ่านมา

    I’m just saying tho. I only know what the main method does but doesn’t know about its definition. Like I only know it’s like the core that calls on the other methods. Is this normal of me? Or I’m suppose to know it.

  • @rafaykhan-co2dr
    @rafaykhan-co2dr หลายเดือนก่อน

    main should be written in small case

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

    Work

  • @ChrithM
    @ChrithM 4 หลายเดือนก่อน

    The parentheses are supposed to be around the method parameters lol

  • @Meri_Bhakti2
    @Meri_Bhakti2 9 หลายเดือนก่อน

    So nice sir but this voice are not easily understood

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

    Great

  • @laughingbrick4824
    @laughingbrick4824 10 หลายเดือนก่อน +1

    No they don't ask such questions in Job Interview

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

    how do people know java , and think these are difficult questions

    • @Reymax164
      @Reymax164 2 หลายเดือนก่อน +3

      Sometimes, you know how to code them but doesn't know how to explain them.

  • @user-vs6kl8ph5v
    @user-vs6kl8ph5v 4 หลายเดือนก่อน +1

    i thought it was gonna be a joke video and waited for the punchline 😭

    • @gaminallthytime
      @gaminallthytime 2 หลายเดือนก่อน

      I kept thinking that sentence is wrong in both English and Java. XD

  • @Reymax164
    @Reymax164 2 หลายเดือนก่อน

    this question is for your first few months in college.

  • @suzii700
    @suzii700 4 หลายเดือนก่อน

    😢

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

    Uss pool se nhi jayenge iss pool se khuda k rishta aayenga

  • @shreyaskrishna6038
    @shreyaskrishna6038 2 หลายเดือนก่อน

    Whats the purpose of string [] args?

    • @Reymax164
      @Reymax164 2 หลายเดือนก่อน

      Idk, all I know is it's a required parameter, a String array to be precise.
      fun fact tho, it doesn't necessarily needed to be "args"
      and that you can call
      main( _arrayArgument[]_ );
      within other methods, including itself.

    • @marnala.gopivinay
      @marnala.gopivinay หลายเดือนก่อน

      The purpose of string[] args is we can't using scanner class and input class we can give the user input from the console by using command line argument the following command is to first you complie the java program is "javac file.java " and next then we should go for next step is to execute the java program is "java filename" for example javac Hello.java and next java Hello command line arguments are starting here java Hello J A V A the output will be displayed in console line by line J next line A .......❤❤❤❤❤ plz reply it will work's try

  • @overconnected9028
    @overconnected9028 5 หลายเดือนก่อน

    Gi

  • @nezhabouguerza8743
    @nezhabouguerza8743 9 หลายเดือนก่อน

    j

  • @wuerfelhusten
    @wuerfelhusten 4 หลายเดือนก่อน

    "How I make 20k a month with Shorts and AI"

  • @JethiyaChampakGada
    @JethiyaChampakGada 8 หลายเดือนก่อน

    sting args??

    • @marnala.gopivinay
      @marnala.gopivinay หลายเดือนก่อน

      It is a command line argument for example if you not using scanner class or another input method we can user input from the program by using these command is javac filename.java the the to execute the program the command is java filename the input is H E L L O it will execute line by line ❤❤❤❤

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

    Spelling mistakes

  • @GorkhaliCode
    @GorkhaliCode 11 หลายเดือนก่อน +1

    who ask this at interview ? 😂

  • @BuraiTributeKing
    @BuraiTributeKing 11 หลายเดือนก่อน +1

    An abomination