Is Java Still Worth Learning in 2022?

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • Get your free 1st month of JetBrains Academy: jb.gg/academy/...
    Complete the 1st stage of your project to receive your 2nd month free!
    Complete your 1st project within this time to receive your 3rd month free!
    -----------------------------------------------------------------------------------
    Instagram: / keep_on_coding
    Discord: / discord
    Become a Member: www.youtube.co...
    My Gear: amazon.com/sho...
    -----------------------------------------------------------------------------------
    CodeJams is out on all major streaming platforms!
    Spotify - bit.ly/CodeJam...
    Apple Music - bit.ly/CodeJam...
    TH-cam - bit.ly/CodeJam...
    Amazon Music - bit.ly/CodeJam...
    -----------------------------------------------------------------------------------
    #keeponcoding #tech #programming

ความคิดเห็น • 1K

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

    Get your free 1st month of JetBrains Academy: jb.gg/academy/keep_on_coding

    • @user-dh8oi2mk4f
      @user-dh8oi2mk4f 3 ปีที่แล้ว +2

      Shouldn’t you pin this comment so more people see it?

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

      I'm in early stages of the Java Developer track and really like it so far. Lots of projects to choose from with different levels of difficulty. *Not* code-along style. Projects are broken up into several steps, and each step starts with a requirements document. There are a series of prerequisite lessons that teach you the things you need to complete the step, and you code your solution however you want based on what you've learned from the lessons. At the end, you have to pass all the provided unit tests to test your code meets all the requirements. You end up with an working application that's 100% your own code from your own brain (for better or worse).

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

      Can you promote my VSCode extension? And what's the price?

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

      How long before the coupon expires?

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

      Sir I completed my college and learn jdk11 what should i do now

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

    So as an aspiring Software DEveloper, I "learned" syntax and basic things from these languages: HTML CSS Python Kotlin C#. That being said I started looking for work and 4/5 job posts were specifically labeled as "Jr. Java Developer". Java is already running the world, that means companies would need to spend a whole lot of money to have everything rewritten in another language. Java isnt going anywhere. If you are like me and just starting out and have basic languages under ur belt, just learn Java. The Job market quadruples if you can write in Java.

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

      Perfect!

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

      Thanks for ur advice bro

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

      Why did you learn HTML CSS but ignore JavaScript?

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

      @@ponalvsiki2254 Good question. I'd like to hear this guy's answer as well.

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

      @@jathebest2835 yeah. Front end is getting more complex and needs more devs than Java.

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

    Learning Java, as someone who didn't know what OOP even was, was a great way to at least learn what it is, and looking at experienced Java developers' code and understanding it helped me understand how to use classes and methods efficiently.

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

    Whilst java is a great language, oracle is possibly one of the worst companies.

    • @Henrique-eu8rw
      @Henrique-eu8rw 3 ปีที่แล้ว +49

      Preach, bro. Was much better in the hands of Sun.

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

      Nestle : hold my beer

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

      @BabylonianDynamics not everyone is a native english speaker

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

      @BabylonianDynamics idk lol, if it annoys u too much I can edit the comment

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

      openjdk: bro

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

    Bro, I'm from 2030. It's still worth learning now.

    • @my_j.a.r.v.i.s.
      @my_j.a.r.v.i.s. 3 ปีที่แล้ว +12

      I'm from 2030 and now robots do Coding for us, we just need to give algorithms to them

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

      @@my_j.a.r.v.i.s. Have you seen "Back to the Future" , by that logic we should be having robots do everything for us by now

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

      Variant!

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

      Oh really? did you use Java to program your time machine?

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

      Nepali bhaye pachi guff ta dina pari halyo ni ;)

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

    I Am writing Java for 10 years. 10 years I hear "java is going to die soon". And after 10 years, not only it didn't die but recently EU made java with spring boot it's official language (with reactjs on front) .

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

      react is a cesspool

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

      @@IvnSoft lol🤣🤣

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

      actually java is so big and vast so its take time to die🤣🤣

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

      Let haters in their stupidness ,java is not just a language but a ecosystem ,java is first in anaytics,1frst in Big data ,3d in artificial ,frst in Cloud ,first in industries ,java is the best one which has innvated in the two last decades

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

      Java cannot die.

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

    Java is still widely used in enterprise. I’ve just started a job where the company’s existing platform is built in Java

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

      exactly, java is not going anywhere. corporations are not going to restructure & rewrite 100's of billions of lines of code, just to change to Kotlin.
      Because in the last decade, people have been jumping around language to language. corporations can NOT run that risk of jumping around like that,
      when they have Billions of dollars on the line......

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

      @@TwstedTV exactly, is like in my country, the banks works over Cobol that is older than Java and runs over mainframes, and the banks don't have the intention to rewrite to another language, the banks hire you and they teach you Cobol with the porpouse all the systems still working, things like that will happen with Java.

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

      @@joseantoni034 😶😳Cobol for banking app...
      I don't know Cobol, but even though such a old lang. Might have many vul. Right?
      How can they put there customers at risk???

    • @Anon-tt9rz
      @Anon-tt9rz 3 ปีที่แล้ว +7

      @@vaisakhkm783 they're not putting customers at risk, this is a false assumption. Mainfraimes are very well secured

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

      @@vaisakhkm783 like Andy said, mainframes are well secure, and the main app on Cobol is like the core, not all the apps are code with Cobol, a teacher told us that is a strong language for these purpose.

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

    I learnt the theory of programming with Java. It's a great start-up language. Now my knowledge is transferable to many languages. So if you are looking to start programming, find a language, put the theory into practice with that language and you should be okay.

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

    I hope so. I have already spent 3+ years developing in Java. Java was the first language my University taught us. I have used many other languages since such as python, html, javascript, C, etc. Still enjoy developing in java better than any other language I have tried thus far. Mainly because java has such good testing options and is not overly convoluted or complex like the C language for instance. The Java language just seems to click with me (probably because I have written most of my code in Java)

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

      Java was the first language I was taught too (when I did CS as a secondary subject in the first two years of my maths degree). However the maths department taught us Maple, Matlab, and R. Array languages, especially ones with a REPL, make the kind of numerical work I do so much easier, and nowadays I tend to use just R or Julia. The only time I've really used Java since university was when I wanted to learn a bit of game programming, and the tutorial used Java. That said, I do know people who built a Bayesian framework for doing genetics and epidemiology in Java (called "BEAST"), so it does find some use in a mathematical context.

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

      Exactly. Java just seems to click with me. Everything about it, its syntax, its flow, everything just makes sense and feels natural. I've tried other languages like Python, Javascript, Go, C#, C, C++ and most of them felt a bit **off**. C is way too manual, javascript initially seems easy but later on can get really convoluted with callbacks, and prototypes and a bunch of other things, c++ doesn't have automatic memory management, and Python feels like its abstracting almost too much away from me, c# feels nice though but it doesn't have tooling on the same level as Java...
      Java is perfect for me.

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

    Bro, I was literally thinking about this last night as a beginner, thank you.

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

    Don't ever sleep on it. Java will still be running in the next 20 years. Most of the successful infrastructures and services that makes our life better was developed and being developed with Java.

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

      and then replaced with nodeJS

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

    I'm not a Java programmer but I still think it is a great first language to learn for programmers. Once you get competent at Java you can move into any language easily.

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

      Nah, python is easier than java and the mindset of it can help you branch out to c# or c++ or even java
      The fact that you can make bots or arduinos with it makes it useful as hell

    • @funguy29
      @funguy29 ปีที่แล้ว +7

      @@deadpopcorn8523 Nah Java is good training for the beginner better than python. Python is easier and gets you thinking about concepts like OOPS right away.

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

      @@funguy29 I started with Java and to be honest I think that it's a better choice for beginners. Having to be so explicit about types/classes keeps you accountable and makes it easier to debug. Also I think it being a bit more cumbersome than Python in some aspects can make you a better programmer in the end since Python just makes everything a bit too easy/magical, so when jumping to C or C++ is harder with Python imo. C# is very very similar in the surface, in my internship I started a c# project and I swear I had never used c# and just started writing in it using intellisense and my knowledge from Java hahaahha.
      I think C++ should be the last language to learn, it's amazing but very complicated.
      I don't understand the complaints about Java code being verbose, most of this tedious code is automatically generated by IDEs nowadays.

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

      @@nicolascossio5961 Agreed. Couldnt have said it better.

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

      @@deadpopcorn8523 just because its easier it doesnt mean its the better option. If you know java, you can learn python in like a week.
      If you know python, it will take you a while to learn java

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

    Java with spring, I think the spring layer really brings along some nice abstractions and makes it easier to build applications using Java

    • @f.5528
      @f.5528 2 ปีที่แล้ว +4

      yep, java without spring is just futile in entreprise world nowadays. Thank you spring(boot).

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

      Log4j is awesome to create ramsomwares that can't be fixed for now...

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

      I love Java, Please could you teach me the nuances of The Spring Framework .

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

      no doubt the spring architecture is nice but what about so much boilerplate that java induces and it also derived from ruby on rails framework which first introduced the concept of MVC

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

    Just a couple of things: 1) in Java not everthyng is an object: there are also primitives; b) Java is slower compared to C, but faster compared to Phyton: but there are very few applications where the better performance of C is really needed.

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

      Aren’t compiled languages always faster because they’re directly translated BEFORE being ran vs translated AS it’s running?

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

      @@thedumbestdoge881 Java is in the middle since it compiles to an intermediate representation which is then interpreted or in modern implementations it uses a JIT compiler .

    • @9SMTM6
      @9SMTM6 3 ปีที่แล้ว +19

      Actually where performance matters Python is faster than Java, because it can fall back to C Implementations as it has a C compatible FFI
      The same isnt nearly as easy for Java or other JVM applications.
      Thats the very reason Python is used for Scientific computing and also btw why Java is horrible for proper 3D games.

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

      Also often it's less about the Performance of the code as it's performance reliability, as well as the needs for the runtime environment.
      Even Go, which is a good bit faster than Java, has similar issues because of its Garbage collector.
      And Java just isn't ever going to be a real thing for embedded programming where the JVMs requirements and memory hunger is problematic. That btw is also a thing for Python, Micropython is okay for beginner projects and some tinkering but real products will always use something else with a very slim runtime.

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

      @snow Is it slow though? Applications are faster than ever regardless of the language. We’ve made such huge bounds in hardware that companies can justify the use of more abstract languages which ultimately leads to a quicker development process ($$$)

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

    Java will always be a important part of coding and in back-end Java is outstanding (Maybe that´s because i´m javadeveloper) but it´s also a good start for anyone is pretty easy to learn the concept of Java and when you know it then the world is open for you, you can easy and quick learn Rust, Ruby, Python, Kotlin and so on. You forgot in the video the "DRY"(Don´t repeat yourself) where you use classes and heritage with superclasses and subclasses. So a clean code is important in all coding but in Java you will learn this from the beginning. But i liked the video :)

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

    Glad to hear what the comments said below. I just started learning Java weeks ago as the Python course of my school are full and am annoyed to write so many codes to do so few things. Yet, after hearing you guys said I feel more comfortable.

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

      if you want to get into other languages like c,c++,c# etc java is better to start of with as things like if(condition1)
      {dosomething;} will already be familiar to you so your knowledge is more universal compared to python which whilst beeing easier to start with is harder to transfer to other languages

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

    Java is so pleasant to work with. There is everything u can think of built in, its ridiculous and my lazyass loves it

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

    Java is my favourite programming language

    • @user-fq2ty
      @user-fq2ty 3 ปีที่แล้ว +3

      no

    • @Mersal-uj5nh
      @Mersal-uj5nh 3 ปีที่แล้ว

      Nice , but nowadays I hear people talk a lot about Go Lang, any comments on it .

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

      same here, screw Go its trash

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

      why? any specific reason or just coz its the first language you learnt?

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

      @@Mersal-uj5nh You can ask me whatever you want about Golang. Overall, Golang is very behind Java.

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

    Java being my first language really helped me understand programming and now I can learn any language with ease.

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

    For new programmers, Java is more of a medimum than the destination. It helps to smooth the learning curve from Python to C++/Go or whatever.

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

      I wouldn't compare C++ and Go, there's a world of difference between the two, and Go lacks a lot of feature you won't find outside other Enterprise supported languages like Java, here I'm thinking transaction management, support for various types of callstacks like older SOAP Webservices and so forth.

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

      Go is great for almost all situations. C++ with a competent coder or team is also great for enterprise.

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

    Reversing a string in java, even using a StringBuilder looks like this:
    class Main {
    public static void main(String[] args) {
    StringBuilder sb = new StringBuilder("Hello world");
    System.out.println(sb.reverse());
    }
    }
    So I don't know why you showed that example

    • @NB-ph6cv
      @NB-ph6cv 3 ปีที่แล้ว +2

      @@jaredroussel chicken scratch ghetto LMAO :D

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

      Yeah he said it was an exagerrated form

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

      this is kind of an unfair example though, in a real application you would not have to create a class Main, every time so in reality the code needed to reverse a string is just:
      String reversed = new StringBuilder("Hello world").reverse()
      Which is not that bad

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

      yeah they always use this example to compare java and python. But lets ask them to refactor variable name in a 1 million line codebase. I bet java and intellij will have a field day compared to python and any smart IDE(pycharm, vscode or any other paid ones as well).

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

      @@blasttrash I didn't understand, which IDE would be better at refactoring?

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

    The Java code at 6:06 would not run. the parameter past into the reverse method is called "str" but in the for loop they use a variable called "hello" which is not defined. Also StringBuilder has a reverse method, so you don't need the for loop at all. The Java example is over complicated. I could write this with 6 lines of code and it would be readable. Still 4 lines more than python though

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

      hahaha yeah

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

    The graph at 5:19 is comparing language use by all users on the left to language use by professional developers on the right.

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

    6:15 Java is not slow. **Disclaimer**, I program in embedded C for ARM cortex M3 (specifically the STM32F103RCT6 chip), and not much more. I am a hobbyist and not a professional so take this with a grain of salt.
    Java requires a runtime (written in C/C++) and is simply too large and too much overhead for effective embedded solutions. Embedded C is unbelievably faster than Java could ever be on an embedded chip. It compiles to straight machine code, and you really have to understand the chip's core architecture to program it properly (don't avoid malloc. Use it properly)
    When used, encapsulated within an operating system, Java is actually wicked fast. Way faster than VB or Python. The JDK has so many libraries and tools, it's really amazing to use. I hate the "everything is an object" style of Java but I refuse to discredit it by calling it slow.
    At work I don't have a C or C++ compiler, so I am forced to use Java to perform tasks. There's no feasible argument over Java VS C when it comes to speed, but Java is by no means a slow language. It has a huge developer toolkit, it is counterintuitive to write with but easy to understand (coming from C), and aside from embedded it is ultra portable. I'd argue it is the absolute fastest portable language.
    Java will never go away until it is replaced by another ultra portable, faster, and easier to use language. Anybody who understands compilers and languages will most likely agree that it is not possible as long as computer architecture remains the same.
    All that being said, Java is used on x86 arch and I only really know RISC stuff so I might be completely wrong, but I wholeheartedly think at this time that Java is here to stay and can't really be replaced.

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

    Simple answer: yes. Many businesses use it. It has powerful frameworks that connect in with it. If you know C# it is similar.

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

    the reason why Java dropped down from that chart is mostly from the rise of web developers.
    big enterprises developers still mainly use java and some other new language , thats why u see only a small % down from java

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

      I agree. PHP shows up in the top 10 languages all the time because of wordpress.

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

    Learning Java right now! I will say it can be tedious but after doing a small python class Java seems like a better starting point. I can learn the logic in Java and later can pick up other languages easier it seems!

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

      did you learn java?

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

      @@gawk494 yes

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

      @@adrothemaster1568 was it your first language? and where did you learn from

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

      @@gawk494 yes first language and now graduating from a boot camp. cydeo teaches java, selenium, cucumber, sql, jdbc, restapi, apachipoi. good school and well priced!!!

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

      Guys what is the best platform for Core java that teaches concepts through coding problems?

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

    i am not a coder or anything, but I have studied programming theory and fundamentals, and everything he
    explained makes sense to me. basically he went down the basics that a book taught me to help people
    understand the scope of programming languages and programming altogether.

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

    I think you accidentally said that "embraces OOP" and "garbage collector" are good things.
    Embraces OOP
    1. Allows people to write bad OO-code easily
    2. Promises re-usability but never delivers. OOP reusability needs to be earned, so components are basically just as reusable as in C (at best).
    GC
    1. Says programmers to stop worrying about memory leaks, just causes people not think about ownership of their objects (which means bad OOP-code)
    2. Releasing dynamic memory still needs to be done typically somehow(you stop referencing to it)
    3. If you need to release memory, you just need to hope that GC will do it.
    4. Inability to write destructor is maddening, but having GC prevents this
    5. Reusing resources is really difficult, though, as we already threw any hope for performance out, perhaps this is moot point.
    But gotta say, I really like Java virtual machine. If you are not allowed to distribute your source code and want to run on multiple platforms easily, Java might be way to go.

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

    I build java videogames on my channel. It is one of the best languages to learn in my opinion. I learned it when I was 14 and my college taught it for their CS degree. I got credited/skipped many of these classes because I was so far ahead and knew everything already because Java taught me when I was young.

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

    Java isn't a beautiful written language, but it's definitely an undying language.

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

      New word?? "Undying"😂

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

      Java developer 😂😂

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

      @@vaisakhkm783 he is mean Undead like Arthas The Knight :)

  • @pee-buddy
    @pee-buddy 3 ปีที่แล้ว +34

    Any programing language compared to C or C++ is slow.
    Java is pretty fast compared to Python and JavaScript.

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

      @GOWTHAM G I'm pretty sure that Go is still considered slower, although by a smaller margin compared to Java. If I'm not mistaken, C/C++, Go and Rust are some of the faster languages, but C/C++ is still considered the fastest.

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

      Actually the java jit compiler makes java applications in many cases just as fast or faster than c/c++ applications. Performance can be inconsistent, but very high

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

      @@oleposchl2384 Yeah but the inconsistency is the only reason why one will never say "Java is fast"...

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

      @@prannayagupta8657 no i dont think so, i think people say its slow because they read it in social media, there are too many "java is slow" memes. Depending on the problem, you have to deeply know what you are doing to achieve faster results in c than with simple java

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

      @@oleposchl2384 Oh ok, that's interesting.

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

    Bro I lost it on the you vs the guy she tells you not to worry about meme lmfao.

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

    You should've mentioned abstract classes and single-inheritance as pros. These are very powerful features that are not fully appreciated by many people. Java can also be compiled for a hardware target. Java is good for DB connectivity and has lots of solutions for persistence. It's good for server-side tasks like web-services with the use of Tomcat.

  • @JoseVargas-dx7wz
    @JoseVargas-dx7wz 3 ปีที่แล้ว +10

    Ok, Great topic! I agree with the strengths and flaws of JAVA. It's difficult , nowadays, to understand why a languaje get used and rise in popularity. Of course the people backing them it's important, support for multiple platforms it's a factor, but what I think account more for that is the shape of the learning curve. Seems to be that the learning curve of python it's really fast compared to C# or JAVA. Kotlin and Go also are advertised as lean languajes, but we all know for experience that when doing something real, the amount of code will pile up like crazy in any languaje. said this, I'm still undicided on weather I should learn JAVA, comming from C#, I better join a JavaScript based stack like Node.Js.

  • @johndoe-el6ko
    @johndoe-el6ko 3 ปีที่แล้ว +10

    A language that improves gradually and withstands the test of time. so yeah. Plus Java/Spring/IntelliJ is a match made in heaven.

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

    I've never encountered an "operating" performance problem in Java, the difference to C++ everyone is always comparing is within few percents. And in this range, it is just cheaper to either add native C++ routines for critical parts (very common), or just buy 10% faster hardware. Though I myself, even though Java was my first language 15 years ago, am drifting away from it. When I first seriously touched Python like 5 years ago, I can just never go back to that verboseness, which I ironically found as an advantage a long time ago. This is, what discourages me from catching up with all the new features (and lots of my friends too) - I just cant imagine myself to write all that stuff again to express simple things. Even though I find a Java ecosystem a lot more enterprise-ready than the Python one.

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

    Can people stop saying Java is slow. Please. We have an awesome JIT compiler with years of work put into it and even graalvm-nativeimage now. Yes, it's slower than C, obviously, but stop saying it's slow. You can easily make games with it or whatever you want.

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

    Thanks for the free trial. Just the resource I was looking for learning JAVA

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

    HTML/CSS in a top programming languages...

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

      It's THE top programming language

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

      For web development not software development

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

      @@maruf7956 html/css aren't programming languages

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

      Exactly, dude

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

      These are my favorite languages, i hacked google with them 😎

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

    Java is evergreen 🌲

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

    As much as I don’t like Java , it’s not gonna die , it’s probably one of the most in demand languages

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

    6:08 for that a little change to StringUtils would do the job, so I guess constant updates would help Java in that problem

  • @hellelo.5840
    @hellelo.5840 3 ปีที่แล้ว +2

    I would say:
    If you're a freelance, Single Developer, go with: Javascript, Python....and the interpreter is your team, ( Save You A Lot Of Time - Cross Platform )
    If you want want to work for a large company go with a compiled language and aim for a specific role.
    It depends on the value you want to deliver.

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

    Starting out with python will make you a script kiddy for life. Sure you may have some success in the start because its easier......but down along the road when projects get way more advanced and integrated or even reach hardware level the majority gets toast fast.
    Incoming roasts bring em :

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

      Agreed 💯

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

      languages are just tools... pick the right tool for the right task and you've already covered 20% of the work. Also, python is great for statistics, machine learning and as a glue language. When you need more control over hardware, use C/C++. For the rest use python. Thats how a lot of large projects are done.

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

    my university taught me Java but I find it odd that they never got into the actually application of it.
    We learned nothing about Java in back-end development, Spring, and didn’t do a single project in Java. Only exams/quizzes.

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

    Even if its 2050 the answer is YES if its in your Semester syllabus!

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

    'You vs the guy she tells you not to worry about' = amazing demotivational poster

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

    Not sure if it is worth learning or not , but after learning java as my first language I find other prog languages like python or JS very very very easy to work with .
    So , for a beginner i highly recommend to learn Java as it will setup a solid base .

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

      Or if you are a true masochist, start with x86 assembly, then learn C, and then Python. You will feel like a god when learning Python at that point.

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

      @@tobiasbergkvist4520 true logic in your comment

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

    I work with Java since 2001. Got an SCJP in 2004 and have worked for many companies like IBM, Accenture, Santander Bank, etc and well... Java for sure is one of the main languages and platforms to learn and invest your time/money for sure.

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

      how much are you making per year?

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

    I just discovered you

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

      He has good content

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

      @@userpiero5359 Yea

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

    Verbose doesn't mean declarative. In fact, it's the opposite. Verbose is usually imperative.

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

    Even without the performance indicator, for anyone who has programmed in both C++ and Java, it should be pretty obvious that C++ is far (and I mean FAR) superior in almost every aspect.

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

      ok

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

      lol what? :D were you high when writing your comment, Ric? :D

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

      @@bdkamil95 do you even code son, that you should come up with a childish reply like that?

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

      @@ric8248 oh yeah I do. And that’s why I commented your childish statement in such way. You have to be newbie or some dogmatic maniac to say what you said.
      Btw - what’s that “son” style about? Did you have tough childhood or something?

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

      @@bdkamil95 nothing wrong, just putting you in your place after your gratuitious, nasty comment, kid

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

    Java was the language that helped me get into IT, relocate to other country and it payed the bills for several years :)
    For those who like Java and not afraid of it weird verbosity I started working on a playlist with Java interview Q&A: th-cam.com/video/LeqNBbFi6Z0/w-d-xo.html

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

    Me:
    "You should declare similar variables pn the same line"
    Everyone:
    "He's out of line, but he is right"

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

    6:08 verbosity of Java is quite exaggerated in this example. This code below reverses a string in java.
    public class Main {
    public static void main(String[] args) {
    System.out.println(new StringBuilder("Hello, World!").reverse().toString());
    }
    Granted it's more verbose than the python alternative but I would argue it makes it easier to understand. It's very clear from reading it that that we are building a new string using StringBuilder, reversing it using reverse() and converting it to String using toString(). With python, it's hard to parse out what's happening with hello[::-1] if you don't know python.

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

    Is this video still relevant in 2021? Nope. Lots of cliche about Java. Doesn't mention anything has happened in the ecosystem in the past ten years.

    • @pee-buddy
      @pee-buddy 3 ปีที่แล้ว

      Seasoned pros like yourself are an endangered species these days.
      The ecosystem is overrun by script warriors.

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

    this is the EXACT video I needed
    thanks a lot!

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

    6:15 "Java is pretty slow"
    So are Python and JavaScript, which have gained more popularity than Java. And Kotlin, which also runs on JVM (not talking about Kotlin native).

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

      Python is the king of slowness among the big languages. Java is good for high speed performance. C/C++ is the fastest.

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

      @@akin242002 Actually, Python can be fast when you need it - since you can easily write C/C++ extensions. Numpy is a good example of this. Working with numpy arrays in Python is likely going to give you better performance than Java/JavaScript etc.

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

      Java was slow more than 10years ago. Nowadays it’s 1.5 times slower than cpp on average. Python is 20 times slower than cpp.

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

      @@tobiasbergkvist4520 you can also write native c/cpp and use it from Java - but is it Java programming?

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

      speed is not the only factor to make one lang superior to other

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

    C++ is better when it's used like C with classes.

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

      Well... yeah...

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

      I mean, it's better than it would be if you wrote straight C++ style code for some implementations, but it isn't better than any given coding language. I would say that it utterly depends on need. I use C++ in my C-style code specifically to enable encapsulation and to make altering multiple important values easier.

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

      I mean it really depends. Java has the garbage collector which makes it a better introduction to coding and leads to less memory leaks.

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

      @@alexmehta6070 you could make a good argument for C++ being a better intro because of just how hard it is to use. It really does make everything else easier

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

      @@ITSecurityNerd ah yes you want to learn how to solve integrals before addition. Yes it makes things easier if you actually end up understanding before you give up.

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

    java is the leader in enterprise, spring cloud is the base for micro-service, one of the most used architecture currently, and spring is powerfull and easy to learn, this is like a, is php dying, is ruby on rails dying

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

    java/C++ dev can learn any language, coz they just replace their bunch of code with a simple construct in their minds. It isn’t that seamless the other way around. Though I hate the fact that I need to write the code to calculate nCr and nPr in java just for a single calculation

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

      Yeap thats whats going on, i started off in python. But i moved to java, than i got pretty good at it now i can pretty much understand most languages C, python, javascript. The pattern kinda just seems to get clearer

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

      @@russeldioneo5187 yes. My reason is close to yours. Java looks like a well explained code. This builds your understanding more on the concepts you are implementing. Also Big tech companies still rely on java.

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

      Try learning Haskell or APL with a Java background

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

    the java example at 6:09 could have been done in 2 lines too (ignoring the main declaration): System.out.println(new StringBuilder(hello).reverse().toString())

    • @nguyenduy-sb4ue
      @nguyenduy-sb4ue 2 ปีที่แล้ว +2

      Clearly this meme is created by someone who hate java

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

    I love when people say "JAVA is slow". You are so wrong my friend. Java is as fast as native code thanks to the ability to be compiled at runtime for the platform specifics along with the tonts of optimization the JIT compiler has. If there is one thing that many benchmarks have proven, it's that the JVM is amazingly fast. In fact, it turns out that the JVM is so fast that only very carefully crafted benchmarks can illustrate any noticeable performance advantages for any other language.

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

      Source?

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

      @@KeepOnCoding our internal benchmarks at Google show over and over that Java and Go, for instance, have similar performance most of the time. There are only certain type of problems where native is slightly faster. However, for most people and most application that neither true nor required. Most modern applications don't use CPU that much, most of the time is spent on IO call/cycle. The JIT compiler and the hotspot are extremely well crafted pieces of software that are able to optimize the bytecode on the flight for the specific platform being target. Go/C++ compilers normally don't do this at all.
      I think it is very wrongly to say java slower than native code, that is 99% of time wrong. Yes, there is again certain classes of problems where native is faster, but that is not the norm. Notice I am not saying native is bad, it is actually good too, and it is used when it is needed, everything depends on the problem on hand. However, learning Java in 2021, hell yeah, you should, the jvm is used everywhere with great success. The language has evolved quite a bit with the introduction of functional patterns and higher constructs. Verbosity is found on any language, as in some of our internal Go code today.

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

      Java is very fast, but not as fast as native

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

      Professionally I have used C#, F# for Windows apps, objective C for iOS, Java, Scala, Groovy, Python. C and C++ for devices. Pascal for competitive programming, SQL (make sure u learn sql!!!). Also Go once I joined Google. The point is that you will be constantly learning something new if you really want to be a software engineer. I will be surprised if you don’t have to touch Java ever, you probably will, so learn it, in fact, learn everything u can

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

      @Jamie Walkerdine it really sounds like the source is his and his company's experiments and observations working with the language itself.
      So, essentially *he is the source*

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

    It is worth learning if you’re watching this now, they are approaching a more data oriented programming design where they try to use for instance Optional in standard libraries more and more. Additionally in the light of several projects such as loom and valhalla which aim to increase performance for Java systems by allowing developers to use “light weight”-usermode threads for instance. Yes the drawbacks of Java is its garbage collector from time to time as well as nullability. However the language is still used so it might be worth to take a look at :3

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

    actually...why did you stop making java tutorials?!

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

    This comment section is cancer. You guys like to bash people because people started with Python, and think you are superior (for some weird reason), but honestly you are not. Switching from a language to another language, is always going to be easy, no matter the language. Only parts where you have a problem will be if the language has its own gimmicks, (which every language has), after you learn that you are set to go again. Python to C++, just learn memory, pointers and such, that is literally it. You dont need to restart from nothing.
    Programming is mostly just using loops and simple operations to do big things, its not about language. Rationale and thought process makes a good programmer. Languages are just a tool.

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

    1st year ComSci student here, and currently learning Java(from senior high school to 1st year college). Our instructor told us why we're studying java is because our alumni said Java programming is highly on demand

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

    Embracing OOP is actually a con if you ask me. Functional programming is just way more reusable, more polymorphic, less verbose, easier to refactor, easier to test, easier to optimize, easier to understand, has less bugs in general - and is more predictable.
    The best way of understanding code is to know what other systems it is talking to, and what the datastructures look like. Functional programming places the emphasis on which IO-operations your program is doing (by pulling these to the top of your code), and what the data structures looks like.

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

      In OOP you just write soooooo much to do simple tasks. I, myself, am very fond of the functional paradigm too. Shorter, clearer and very reusable.

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

    In my opinon Java is worth learning.Why?Even tho I am new to Java and I just started learning 9 months ago, I chose it because there are lots of jobs out there that require you to know Java.It's true that if there weren't so many jobs that require Java i would have definetely chosen C++.I must be honest and say that it was really hard to learn it in the beginning but once you start working on some projects it is actually kind of fun :D.Therefore i would definetely recommend Java to any begginers (at least in my area).By the way that discord channel is really cool :D.

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

      Do you often find yourself writing generic methods and generic types when designing/building your projects?

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

      @@thatoneuser8600 Well I think that there's not a single project where I haven't used them where I needed them even tho I am not working as a software developer yet.I'm hoping that i'll get my first job in the IT industry soon.

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

      What are you using java for? what's your title?

    • @David-fv3lb
      @David-fv3lb 3 ปีที่แล้ว +1

      @@yadullahkurt2189 I'm using Java for automation testing with Selenium/ Testng/Cucumber

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

      @@David-fv3lb thanks mate!

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

    Learning Java at the university was the most depressing days in my life , I never looked back at it once I finished my uni exams.
    Reading the code after writing it is painful and the numerous curly braces aren't helping

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

    Sure, java is still worth learning. Although it's a old language, there are A LOT of huge applications which use Java, and obviously many job opportunities for Java developers.
    At last, remember about a point: despite that many recent languages, probably Java won't lose relevance in the next years, specially because those most important applications wouldn't change their whole structure overnight (it would be really difficult)

  • @Jamie-kf2vf
    @Jamie-kf2vf 3 ปีที่แล้ว +2

    I did Java for 7 years before ditching for React + Node. Java is still widely used, but who wants to work on legacy enterprise systems with old code? Not me. Startups here go for Node, Python and even .NET, and I'd much rather found or work at a startup with the latest exciting tech the market demands than something like Java which is clearly in decline and used in legacy systems. Moving to React + Node was the best decision I ever made. Java is worth learning though (if you want to work in the enterprise), but be careful what you wish for.

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

      Hey there Jamie: excellent comment and very well said! Last thing I want for my life is working on some big corporation's verbose legacy software! Do you have any tips or know of any good videos for learning react? I'm also contemplating C# and .net core... So not sure if I should focus and pour my energy into React or C# and .net core? (Was also looking at Kotlin for Android.. but... ya... I kinda just hate the whole Java/Kotlin world for some reason).

  • @jan-lukas
    @jan-lukas 3 ปีที่แล้ว +10

    "The GC only takes a fraction of a second"
    Running the GC in Minecraft: 2 seconds freeze
    (during normal operation it uses the incremental GC or whatever it was called, but I modified the code)

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

    Java is not slow even compared to C++, ppl who say this haven't compared lately or haven't pushed Java. Java gonna be around for a while, since it's basically what's powering most of today's big Corp financial systems and there isn't a big challenger to replace it so far.

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

    Started learning Java because of APCS and really enjoyed using it, until I discovered shorter languages like go, typescript, kotlin.

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

    when i hear people talk about whether java will survive is kinda funny... it's just like saying will oxygen survive the number of people around breathing oxygen... if you check out the updates in java you will see what's going on with that language...

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

      People are crazy, a friend of mine was saying the other day that Java is not worth it because it is an old technology and I should learn flutter, and I told him the C language was created in 1969 (almost a half century ago) and C is still king in low-level programming.

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

    C++ is not C with classes. They are completely two different languages now.

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

      I mean he probably meant it as "At the time". And he technically isn't wrong, but now, yes, it is very different.

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

      @@GaBY031000 Do a try catch block in C and tell me how that works out 😂😂😂

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

      @@kraljict ? Dude did you not read carefully? I agreed with you 😂 I said that yes they are, especially now, very different. But he obviously oversimplified it for the sake of the argument that Java at the time was built from the ground up with objects in mind.

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

      @@GaBY031000 I know xD I am just saying though ( not arguing with you)

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

      @@kraljict In C, a function that can fail returns a status code, rather than a value. Typically, you use goto to deal with cleanup when an error occurs in C.
      int my_procedure(char* result) {
      int status;
      int return_code = 0;
      char* result1 = NULL;
      char* result2 = NULL;
      if ((status = subprocedure1(&result1)) != 0) {
      return_code = 1;
      goto cleanup;
      }
      if ((status = subprocedure2(&result2)) != 0) {
      return_code = 2;
      goto cleanup;
      }
      if ((status = combine(&result, &result1, &result2)) != 0) {
      return_code = 3;
      goto cleanup;
      }
      cleanup:
      free(result1);
      free(result2);
      return return_code;
      }

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

    To be honest in our school we learn Java/C/C++ and basic python. We discussed this. It is best language to start-off programming even though it has a lot of cons.

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

      what about python? I'd say to get started its a lot easier...

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

      @@virusblitzSure python is easy to learn but if you're planning on venturing in Java or C++ development after learning python, you're in for some pain.

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

      @@virusblitz Python is a really good programming language. You can literally do everything. But if you really want to learn Computer Science, programming etc.
      It's not a good start at all. I am one in one of the top schools in my country and top schools in my country don't really teach Python just basics we did like 4 projects on Python and that's all.
      My personal opinion is that Python is not a programming language LMAO kidding...
      Python the language itself codes for you, you are not the one coding :D

  • @VS-vs8xo
    @VS-vs8xo 3 ปีที่แล้ว +4

    Yes with Java is more coating but in example with reverse, there is a method which is more obvious 'StringBuffer sbf = new StringBuffer("Hello world"); System.out.println(sbf.reverse); ' and it seems not so complicated

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

    I'm from the future. It is now 2721 and Java rules this world. Humanity survives with its last bit of strength, until one day in the ruined ruins of Harvard we found the legendary IBM 704 that FORTRAN brought us and with the help of it we defeated the JVM. But then he came ... T-800
    I'll be back ...

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

    I’m in financial industry specifically in core banking and fund services. Majority of the applications are in java based applications. Sure, new technologies emerge but Java seamlessly integrate to it. Frameworks like Spring Book and Quarkus are still famous for developing production level applications. I would still recommend Java to beginners along with new emerging technologies like cloud, containers, etc.

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

    It totally depends on what are you looking for. Example: If you are a developer who wants to learn the concepts of oop, I think it's a very good choice.

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

      Yeah I've been learning python for a few months and just wanted to develop an Android app and have been struggling for weeks now to grasp OOP because it seems absolutely necessary in order to develop for Android using python and things like kivy.
      So after struggling for a while I've decided to just learn Java and create a native app and finally fully grasp OOP. I've watched countless tutorials on OOP and python but still don't quite get how to accomplish my goal using objects.
      I started learning to program in C about a year ago and after a few months I decided to jump to python to grasp the fundamentals. I was able to complete a few programming challenges in C before switching on the solo learn app but just the really basic ones.
      I thought about kotlin but it seems that kotlin is more similar to python and a scripting language more than an actual programming language.
      I was delighted to see that java looks very similar to C and C++ so I've decided to just go all in with Java. At least it won't be a far jump from Java to C or C++.

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

    Quick question: how prevalent is Java in 2021? I know Google's API uses Java, but do most applications use Java to program their APIs?
    (Sorry I don't know much about programming. I'm learning about Google vs. Oracle and trying to understand APIs)

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

      Majority of enterprises today have Java in some shape or form within them, so I'd say it is very much relevant in 2021 and atleast for next couple of decades

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

    what is it actually used for?

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

    6:07 Couldn’t you just pass the string as a parameter of the StringBuilder, call the reverse() and toString() methods and return that?

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

      Exactly what I thought. But i think the idea was to show how much extra code has to be written to do a simple task.

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

      @@aaqibjavedz2569 Thought so, I’m just a coding nerd :)

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

    I love jetbrains, they are probably the best programming environment thingy, this is not a bot or smthing but its a genuine complement

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

    Sam..can't get enough of your videos..thank you 😊

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

    If you are based in India, and you want an SDE job, then ya you have to learn either Java or C++, there is no other way, the rest of the languages are either not accepted by the platforms or are not preferred by interviewers. So definitely go for Java.

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

    I loved learning java and I had to learn it when I was 15 for FRC. It's a awesome robotics platform that my highschool competed in

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

    Java licensing costs are so high it makes Java a limited use case or legacy product. For new projects I would much rather go for something open source.

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

    Java in backend is ❤️ .. thanks to Spring boot ❤️❤️ .. spring boot fits to the cloud native & microservive architecture so well , most / new microservices are written using spring boot

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

      spring boot was copied/inspired from ruby on rails framework and ruby is the language of backend

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

    it's obvious the answer is yes, when you compare it to languages older than it. If you simply compared it to C#...

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

    Java was my first programming language. And I still love it. 😍
    The cons "Java is slow" is not a big deal if you compare it to things like JavaScript. Java is definetly slower than C++ or Rust, but I think it still is a good choice.
    And yeah Java is verbose, but at least you understand what you're doing. A private field needs to have the private keyword in its declaration, it makes sense to me.

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

      Js can be as fast or even faster than java using V8.

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

      @@realtechhacks No it can’t. Rarely even while comparing single core performances. Involving multicore perf. Java will blow away JS day and night.

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

      @@OverG88 It usually depends on how well or badly written code is tbh. It was honestly stupid of me to say that any language is objectively as fast as another. That said, java is almost always faster, but often not in a meaningful way. One important thing though, is that JavaScript's way of doing things is often very well optimized for writing asynchronous code, and thus encourages you to write code that's fast for async programming.

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

      @@OverG88 and blow up your cpu with so much threads running imo nodeJS is better with async operations in a single thread and javascript is getting better day by day, lol just look at your Java's homepage it looks so old and trash nobody cared to update it cuz it is used in legacy projects, it doesn't even support graphql out of the box like nodeJS or ruby it has no capabilities of getting better due to boilerplate hell.... public static void blah blah blah....

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

    Good points overall but Java being slow is completely false. The JVM has been constantly tweaked for over 20 years and at times is more performant than general c++ due to how optimised it has been. This is one of the reasons why the JVM is still the go to when developing applications.

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

      What the fuck????
      C runs on bare metal with no runtime and less cpu resources,
      Java is just safer,
      Rust is faster than Java,
      No matter how buffed the jvm gets, Java would still be handicapped, because it needs to allocate extra resources to run,

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

    If i'm already getting the hang of python, is Java still worth learning?

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

      Probably not

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

      Just learn both, couldn't hurt really. I think if Python is your only language currently, then you should definitely learn a strong type language, it'll help you a lot. And well if you ever need some Java, you'll know what to do. Idk how much experience you have, if it's just a few months to a year, I'd probably continue using Python for now. If you're experienced in Python and you know what you're doing, then you can pick up Java relatively easy, honestly just knowing how to install it and run a program is worth something. You'll at least know what Java is and you won't feel completely clueless as to how Java files are created and ran. From there just build something small, doesn't really have to be anything great, just doing a text based RPG is easy enough and will get you used to Java syntax. I think having some experience in Java imo is always valuable, even if its' minimal, just knowing the syntax and knowing you can do it is helpful. And if you ever need to use it at your job, you can just Google how to do certain things if you don't know :).

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

      @@pear4576 Thank you for the advice, appreciate it. Currently Python & R are my strong languages, picked up JS recently.

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

      I recommend learning at least two languages, (e.g. python & java) that are pretty far in their applications, because you could greatly expand the field of things you can do. When you notice python getting to slow, you could use Java (or even C, if you really need every millisecond). Also, it would do great on your portfolio(when you want to code professionally) or just impress people even more (Wow, you can code in two languages?)

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

      *pretty far AWAY in their applications

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

    doesn't answer the question, asks the audience the same question

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

    I skipped watching this video completely, just came in here based on title to say that java will always be worth learning

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

    May be that Analyse is a bit too simple.market usage is still huge and often not a developer decision. Rewriting or migrating code to another platform comes with huge cost, compare cool,Smalltalk,...

  • @pee-buddy
    @pee-buddy 3 ปีที่แล้ว +5

    Java is slow? Obviously Google somehow missed that memo. Their search engine, big data and AI infrastructure is built on Java.

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

      I thought that the search engine was built on python

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

      no, nobody uses java for Ai and a simple googling would show you that Google search engine & Ai infrastructure is built on python and also they are migrating from C++ to golang on their performance-critical services.