no more Public Static Void Main

Поділитися
Вставка
  • Опубліковано 16 лип 2023
  • Java 21 new features are here. One of them is Unnamed Classes and Instance Main Methods which aims to simplify the main method and public static void main to help beginners learn Java without scaring them.
    Do you like this? Comment
    🧑‍💻 New Linux Course - bit.ly/44ExFUK
    Don't Forget to
    ===========================================
    💯 Subscribe to Amigoscode - bit.ly/2HpF5V8
    💯 Free Courses - amigoscode.com/courses
    💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
    🙊 Here are the goods for all my videos video 🙊
    ► Recommended Books
    ===========================================
    - Clean Code - amzn.to/2UGDPlX
    - HTTP: The Definitive Guide - amzn.to/2JDVi8s
    - Clean Architecture - amzn.to/2xOBNXW
    ► Computer and Monitor
    ===========================================
    - New Apple MacBook Pro - amzn.to/3464Mmn
    - Dell 27 INCH Ultrasharp U2719D Monitor - amzn.to/2xM3nW1
    - Double Arm Stand Desk Mount - amzn.to/3aYKKfs
    - USB C Hub Multiport Adapter - amzn.to/2Jz7NlL
    ► Camera Gear
    =============================================
    - Sony ILCE7M3B Full Frame Mirrorless Camera - amzn.to/346QIJn
    - Sigma 16 mm F1.4 DC DN - amzn.to/2wbic3Q
    - Sigma 33B965 30 mm F1.4 DC DC - amzn.to/39G37Fd
    P.S
    ===========================================
    💯 Don't forget to subscribe | bit.ly/2HpF5V8
    💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
    💯 Follow me on Instagram | bit.ly/2TSkA9w
    ❤️ Thanks for watching
  • Наука та технологія

КОМЕНТАРІ • 106

  • @hdjfjd8
    @hdjfjd8 10 місяців тому +63

    main issue is if companies will actually adopt these newer Java version's since many are still stuck using Java 8🙃

    • @marceloccnv
      @marceloccnv 10 місяців тому +14

      100 years from now and Java 8 will still be studied but engineers

    • @hdjfjd8
      @hdjfjd8 10 місяців тому +2

      @@marceloccnv true🤦‍♂️

    • @erickjhormanromero6905
      @erickjhormanromero6905 10 місяців тому +1

      Mmm I can't consider it as a issue, instead it's a good opportunity to spread the usage of Java and for that reason companies are trying to motivate the usage of the newest java version and require it for new projects.
      😅😅😅

    • @gersimuca
      @gersimuca 10 місяців тому +2

      I know some are adapting to Java 17, waiting for LTS next release

    • @marceloccnv
      @marceloccnv 10 місяців тому

      @@gersimuca That's good news but not every company can go as fast

  • @adityaparab4314
    @adityaparab4314 10 місяців тому +17

    C/C++ were my first programming languages. Then I learned python and Javascript. This year few months back I started learning java and the syntax never bothered me. I prefer it the way it is and I get what they want to do with this new version but I barely care about it. Not learning Java sooner will be my biggest regret as a coder. This programming language just made so many concepts clear. public static void main(String[ ] args) all the way!!

    • @LauwaliIsaDk
      @LauwaliIsaDk 3 місяці тому

      Hey, you're guru, that is java, it's simple for people like you that come from the very hard languages C/C++ . but beginners find java hard and hate it and go to Python

    • @adityaparab4314
      @adityaparab4314 3 місяці тому

      Trust me I am not a guru even when I started using Java it felt too long although spending time in it makes you comfortable with the syntax. I agree with you that this prevents a lot of new entry level developers from using java.@@LauwaliIsaDk

  • @Dave2kool4skool
    @Dave2kool4skool 10 місяців тому +19

    Part of the update should have been to include System.out in the default libraries. That would have had a bigger impact just having to type println("") instead of the whole thing.
    Java's greatest strength is that it so ubiquitous and can run on anything from desktop to mobile. Java's greatest weakness is that it is so ubiquitous and can run on anything causing so much general unnecessary syntax for what you want to do.

    • @Urbaez22
      @Urbaez22 6 місяців тому

      You always can use just out.println("");, by declaring PrintStream out = System.out;
      I do that all the time for basic Java use or single Class "projects"..

  • @creativeshorts9914
    @creativeshorts9914 4 місяці тому

    6:50 Answer: I really like Java in the way it is now. I think people who have a good understanding of OOP in Java won't have a problem in learning other programming languages. And Java is still one of the best programming language but for me it is no.1(perspective)

  • @xkript_padcast
    @xkript_padcast 8 місяців тому

    You motivated me to learn and understand JVM flow, thank you very much🖐

  • @edgardcz
    @edgardcz 10 місяців тому +1

    I think this is good for the Java world, it means java keeps evolving with the new trends but (and a very important BUT) it keeps the compatibility, so it doesn't break your code base even if is old. You know the saying, slow but steady wins the race!

  • @cyberman123f
    @cyberman123f 9 місяців тому

    It is really happy for me. Because, while learning java as a complete beginner, i have also thought about these features. I advise about take a look at files as well :)

  • @pulkitgirdhar3416
    @pulkitgirdhar3416 7 місяців тому

    Actually i encountered same in previous version too, I was working in VS code and it directly worked. Even my teacher was shocked to see that.

  • @huyphuoctran6645
    @huyphuoctran6645 10 місяців тому +3

    100% agreed with you, I am a fan of Java and I love the way it is. Java is Java, it's robust because of its legacy, please don't change Java to become other stupid languages.

  • @cipanmandul
    @cipanmandul 6 місяців тому

    yes. that feature is really important for someone new to programming and Java. One of the main reason for most of beginner demotivated to continue to learn Java as a tool to learn programming is because of that boilerplate. OOP is not something easy to grasp if you are a beginner.

  • @Luis-sq4vr
    @Luis-sq4vr 9 місяців тому

    Hi Nelson thanks for this tutorial, I have one question. is there the option subtitle for your courses of pay? I would like buy any course of testing with junit but my english is basic.

  • @isaac80745
    @isaac80745 10 місяців тому +1

    I think Java is ok where it is at now and still useful to create full stack apps. They can improve the speed and amount of cpu it uses up when setting an application up.

  • @DouglasWhitcomb
    @DouglasWhitcomb 10 місяців тому

    Great channel! Please let us know, which mic are you using?

  • @davidblbulyan3077
    @davidblbulyan3077 10 місяців тому +4

    This is not boilerplate for me, because I just create class and than type "psvm" and press enter

    • @lilivier
      @lilivier 10 місяців тому

      Yeah people are just too lazy to learn how to use their IDE efficiently. They prefer to lose time complaining about boilerplate code while they could just spent time learning their IDE 🙃

  • @silientlips
    @silientlips 9 місяців тому

    We have to adapt it because the only constant is change. This is similar to C#, which changed the syntax to remove boilerplate.

  • @raccoon8230
    @raccoon8230 10 місяців тому

    Hi, Nelson 👋
    I have a question about your Testing Software course. As I know it was released 3 years ago. Is it steal actual?

  • @flaviuvanca9289
    @flaviuvanca9289 9 місяців тому +1

    Im not sure how this is going to work but you still need to learn about modifiers, classes, static vs instance, parameters. My point is why not get rich flavour at the beginning than getting just a little flavour and add a bit more along the way.
    I do think it will make the students understand java easier by removing lines of code. There are a tone of courses and videos that teaches java but most are so bad created that if you complete some of them you retain very little. I had access to Oracle's java se11 and I think it was very poorely designed comparing to other courses.
    Amigoscode has some very interesting videos on youtube. I am watching this channel for ah while, I didnt purchase any of hes courses but I strongly believe they are teaching the right way, specially the java language.
    At the end of the day it's not who is teaching but how is taught 😉.

  • @jermainejackson5716
    @jermainejackson5716 10 місяців тому

    In the vid description, I see Intel mbp but in your recent videos, I see that you mention using m1. Is the link correct? Thanks

  • @jonelocker4142
    @jonelocker4142 10 місяців тому +3

    To me the old version just looks cooler. I don't see it as any game changer thing, so for me it's just a decoration. I don't want java to become kotlin. The cool thing about kotlin that it's kotlin. I want java to be java and not something else. The syntax looks really pretty and i would like it to stay that way. On the other hand progress is good too, so if java will actually evolve like a pcokmon i don't really mind.

  • @furkatlapasov5346
    @furkatlapasov5346 10 місяців тому +2

    The most anticipated feature for me is virtual threads

    • @isaac80745
      @isaac80745 10 місяців тому

      True that would be awesome to play around with. It makes it easier than before.

  • @bootcamprag
    @bootcamprag 10 місяців тому +1

    This sort of disrupts some of the concepts of OOP and access level for the static class when executing your application. Those new to the java language may not know this intuitively.

  • @im-fr0sty72
    @im-fr0sty72 10 місяців тому +2

    Damn haha never thought this day will come.. we'll see what the future holds

  • @erichhc9698
    @erichhc9698 10 місяців тому +1

    but you are talking about a change, there are going to be several changes in java 21 like virtual threads etc.

  • @jmainex
    @jmainex 6 місяців тому

    Honestly this new change wouldn’t matter , Java is still awesome

  • @narebinhaa
    @narebinhaa 10 місяців тому

    The thing that I loved in Kotlin was the way it uses getter and setter. Maybe java could do something similar to use less code without the need of lombok

  • @talatelbeick6829
    @talatelbeick6829 9 місяців тому

    It's nice to be able to define a function (method without class) yeah java developers for decades know only methods and not functions. And I don't really read about the new version but let's hope that we don't have only this function.
    Don't complain I'm OOP guy, but sometimes I need to have a simple function .

  • @Y-wx6th
    @Y-wx6th 10 місяців тому +1

    Can you create a video about Maven ?

  • @SoutParl
    @SoutParl 10 місяців тому

    I think it's a good change, despite being small.

  • @AhmadShehu-xt2gc
    @AhmadShehu-xt2gc 10 місяців тому

    Assalamu Alaykum, I want to learn spring boot, i saw your videos on it i wanted to know if what i need to learn first or which of your videos i need to start with, a syllable on what to learn first. Thanks.

    • @AhmadShehu-xt2gc
      @AhmadShehu-xt2gc 10 місяців тому

      I learnt java, not fully though. Ma assalam

  • @user-er1st4mw7b
    @user-er1st4mw7b 10 місяців тому

    Do you have a masterclass about cunccurency?

  • @martinsoluwaseunjojolola2042
    @martinsoluwaseunjojolola2042 9 місяців тому +2

    I love the old way

  • @kendrickwilson454
    @kendrickwilson454 10 місяців тому +1

    I think it is a great feature for newcomers..... It should have been around years ago.....
    One thing I don't like is the naming conventions of the past that seem to have gone by the waste side.....

  • @Dalendrion
    @Dalendrion 10 місяців тому +2

    Java before 21: "Everything is in a class."
    Java 21: "Everything is in a class, except main()..."
    If they want simplicity for students, this isn't it. It seems like a tradeoff.

  • @Techiesse
    @Techiesse 10 місяців тому

    I think there's other stuff the language can evolve that will make real difference (type inference for example).

  • @AyderRoman
    @AyderRoman 10 місяців тому +1

    Can we write our custom methods not creating class?But I think it's only allowed for the main() method because we will lose the static keyword idea

    • @julianjupiter5890
      @julianjupiter5890 5 місяців тому

      You can create instance methods other than main.

  • @anothermouth7077
    @anothermouth7077 10 місяців тому

    Now that's one favourite question less for recruiters to ask 😅

  • @rahulsingh6077
    @rahulsingh6077 10 місяців тому +5

    Ohh.. we have a new update in java (start roasting java midway)

  • @vuduong405
    @vuduong405 10 місяців тому

    Hi everyone, i'm currently have a project about create a framework in java to works with Kubernetes. However i don't know where to start. Can anybody suggest some blog or article about this problem. Thank a lot

  • @saikrishna4661
    @saikrishna4661 10 місяців тому

    why don't you create a simple weather report restAPI , that would be helpful for the beginners to kick start.

  • @dorganzo
    @dorganzo 10 місяців тому +4

    I program to learn to program :) I love java

  • @user-fo8tw5rr4d
    @user-fo8tw5rr4d 10 місяців тому

    make course about concurrency please

  • @hunnsraj
    @hunnsraj 10 місяців тому

    I recall my old C program.

  • @emmanueladama4197
    @emmanueladama4197 10 місяців тому

    Today today at the edge of our hope, at the end of our time. We chose not only to believe in ourselves but in each other. Today there's Not a not a line of code in here that's will stand alone, not today. Today we face the monsters that are at our doors and bring the fight to them. Today we are cancelling the apocalypse. 🎉🎉🎉

  • @vborovikov
    @vborovikov 9 місяців тому

    does it mean I can declare any top-level function, not only main()?

  • @guitarman813
    @guitarman813 10 місяців тому

    If Java 21 becomes the new norm, that will save a lot of time typing a main method. The method signature reminds me of C/C++.

    • @zefalien1413
      @zefalien1413 10 місяців тому +3

      In spring boot application, u have one main method (obviously)
      Real life projects are not coding assignemnts where u do each task in their own main method. You have one application with one starting point (main) and thats it.
      So what time is being saved?

  • @nightriderff1294
    @nightriderff1294 10 місяців тому

    Sir can u help me to improve my logics

  • @user-pl2rv7eh7v
    @user-pl2rv7eh7v 10 місяців тому

    can you please provide the documentation link for spring boot ***************

  • @christophernolan2181
    @christophernolan2181 10 місяців тому

  • @RicardoSilvaTripcall
    @RicardoSilvaTripcall 10 місяців тому

    Even though Java has now a shorter release pace (every 6 months) it does still slow to release new or meaningful features ... lots of features still in preview for a long time, so in the end, you still have to wait 2, 3, 4 years for the feature to be PROD ready.
    Other issue is how new features are prioritize for implementation ... like this one on the video ... as Nelson said, they are trying to turn Java into something in the middle of Kotlin and Scala ...
    With the advent of containers, the JVM per se is also becoming needless ...
    Let's see what the future holds for Java ...

    • @luismpcunha
      @luismpcunha 10 місяців тому +1

      Mostly only cloud software will run in containers, there's a lot of java in mobile devices, in fridges and other home appliances, IoT and multi-platform desktop apps. The JVM will be a necessity for a long time

  • @deepakkumarkhatri
    @deepakkumarkhatri 10 місяців тому +1

    Nigga got the point! I agree

  • @maiing1144
    @maiing1144 10 місяців тому

    alhamdullilah , thanks to Allah who has given me the opportunity to continue learning until today.

  • @valmirknasel
    @valmirknasel 10 місяців тому

    Maybe in the future Java merge with Kotlin for modernization purposes!

  • @sivakumar.s2559
    @sivakumar.s2559 10 місяців тому

    Junior dev: if java have more than 8th version
    Senior dev: Java 21 version is available for preview, ok but still using Java 8.
    Just for Fun 😄

  • @devran4169
    @devran4169 10 місяців тому

    welcome python

  • @sheltonfranciscojoaosalicu5080
    @sheltonfranciscojoaosalicu5080 10 місяців тому

    I really like the way java is structured now.
    A don't care about this changes btw😂😂😂

  • @neociber24
    @neociber24 10 місяців тому +1

    IMO for a language to grow it need to be simple that's why the beginners have been moved to Python and Javascript which also should mean more profesionals using those languages.

  • @InMemoryOfNeo
    @InMemoryOfNeo 10 місяців тому +1

    Leave java as java, leave python as python, leave kotlin as kotlin. Don't mix them with each other. Java is perfect language I think, don't touch it. It has everything already, don't modify it. Don't think about beginners, they will learn java don't worry about that. Don't, don't, don't.

  • @vedanthikarthik5926
    @vedanthikarthik5926 10 місяців тому

    Basically they just snapped all the meams build around psvm for java beginners 😂

  • @bernini47
    @bernini47 10 місяців тому

    I hope this is not the only feature update for 21 else, there was no update atall. Craziest failure since java9

  • @rs_3399
    @rs_3399 10 місяців тому

    I really like the language structured right now
    These changes are not good 😢

  • @aoxog741
    @aoxog741 10 місяців тому

    is this your beard i thought it is a mask in your thumbnail 🤣

  • @siriusleto3758
    @siriusleto3758 10 місяців тому

    Java is fat but doesn't break his leg halfway through.

  • @Naveenkumar-qc6zj
    @Naveenkumar-qc6zj 7 місяців тому

    Java is competing with JavaScript -->> Competition

  • @lucadanielionescu6653
    @lucadanielionescu6653 10 місяців тому

    I'll just stick with the old version.

  • @Ace-gw4uk
    @Ace-gw4uk 10 місяців тому

    Java mimicking C/C++ 😂🎉🎉🎉

  • @TahiruAgbanwa
    @TahiruAgbanwa 10 місяців тому

    Why do I get Dart vibes

  • @gleitonfranco1260
    @gleitonfranco1260 10 місяців тому

    The main impact of this is invalidating 90% of the Java memes 😄

  • @JoshuaT902
    @JoshuaT902 10 місяців тому

    It will take 10+ years for businesses to use Java 21 anyways. Most are still using java 8

  • @wardibald
    @wardibald 10 місяців тому

    To me this looks like a compromise towards the haters who can't stop taking their cracks at the Python (or whatever) vs Java print-your-line-to-console project, falling over each other in pointing to that Java verbosity, while probably not even realising Java needs this only once per project.
    Never compromise towards haters. They just feel vindicated and continue.
    No, this feature feels useless to me.

  • @Coll.Ove14
    @Coll.Ove14 10 місяців тому

    So you want to learn how to drive? Ok cool. two choices you have
    1.) Learn Automatic and don't bother to understand what is in your car bonnet, how to change a tyre etc.
    2.) Learn Manual, so you have a deeper understanding on how the gear works. Also learn how to change a tyre and be able to communicate what is wrong with your car to others as you know the basic level of car engines.
    Which person will excel at a profession about car mechanics if they so choose??
    I feel Java should remain as verbose, as descriptive and the least implicit of all languages. Its rough and tumble, I know. But you conquar Java, you have won 80% in other programming languages out there.

  • @nightriderff1294
    @nightriderff1294 10 місяців тому

    Aoa

  • @ahmadosama2652
    @ahmadosama2652 10 місяців тому

    I think java is little bit jealous of kotlin 😅😂

  • @friedec3622
    @friedec3622 10 місяців тому

    I don't care if Java released new version.
    Companies still using Java 8 anyway

  • @kensaitakeso
    @kensaitakeso 8 місяців тому

    if public static void main is too verbose to someone I would suggest for such person switch to Python :)

  • @mayconfrr
    @mayconfrr 10 місяців тому

    Whoever is adding these sound effects on the edit please stop overdoing it

  • @zefalien1413
    @zefalien1413 10 місяців тому +1

    This update is pure lazy bullshit... Id prefer some quality of life updates that C# alreadg added. I dont get why tf they wanted to "make it easier" for students by removing those keywords, when those exact keywords can get u deeper in understanding java under the hood, WHICH IS THE MAIN POINT right??
    I could go on and on with this ranting, but overall, really lazy update

  • @erickjhormanromero6905
    @erickjhormanromero6905 10 місяців тому

    I don't like the subtitles.
    They're annoying

  • @peterrusznak6165
    @peterrusznak6165 10 місяців тому

    Not really enthusiastic about this.

  • @ziggityfriggity
    @ziggityfriggity 10 місяців тому

    awful... i couldn't be more annoyed by this tbh... public static void main(String[ ] args) is a thing of beauty... these new architects just trying to stay relevant with the more "interpretive", less wordy and trendy languages. boiler plate or not, it belongs there.

  • @mostviewedtoks
    @mostviewedtoks 10 місяців тому

    I think Java Should focus on write less do more...

    • @lilivier
      @lilivier 10 місяців тому +3

      Focus on learning your IDE features and shortcuts and focus on using the right frameworks (like Quarkus) that save you typing lots of code

    • @mostviewedtoks
      @mostviewedtoks 10 місяців тому

      @@lilivier Ok I'll try it out

  • @_slier
    @_slier 10 місяців тому

    im not impressed .. java is an overly unnecessary verbose language ..just use better jvm language like kotlin, scala, groovy or slew of others

  • @joaoantoniocabral
    @joaoantoniocabral 10 місяців тому

    There até manu things It would help like simplify System.out.println, like File IO, WebRequests...
    Like Groovy or Kotlin simplify things, It would be great!

  • @rocketleague2136
    @rocketleague2136 10 місяців тому

    That addition was for noobs who chose language based in hello world example.