Java in 100 Seconds
HTML-код
- Опубликовано: 30 сен 2024
- Java is a programming language famous for its ability to compile to platform-independent bytecode. It powers enterprise web apps, big data pipelines, and android mobile apps.
#java #programming #100SecondsOfCode
🔗 Resources
Java Website java.com
Star7 Demo • Star7 Demo
🔥 Get More Content - Upgrade to PRO
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
🎨 My Editor Settings
Atom One Dark
vscode-icons
Fira Code Font
🔖 Topics Covered
How Java works
Java basics
History of Java
Java vs C
How to compile Java
Overview of JVM, JRE, & JDK
Ok ladies and gentlemen, I am ready to make Minecraft 2
good luck 👍🏻
Then I am going to make minecraft 2.0 with C++ (not bedrock) and beat you on performance :3
bruh. why are you literally in every comment section
verified comment
You literally went from listening to North Korean Song to this video
"public static void main" These words together are legendary.
how many times have we written those out haha
I'm not even a Java developer and whenever I read these, it immediately reminds of of Java, it's wild
@@sjn_ i mean it's exclusive to Java
@@HandledToaster2 Yes I know but if you are not a Java developer, one could not be 100% surer because the words public static void exist in C# as well. But my point of commenting this was that these words always remind me of Java even if they exist in other languages.
@@sjn_ i get the comment, I'm just saying the reason why it reminds you of Java is that this specific line of code is essential and exclusive to Java (and C#)* You wouldn't see this line in any other language
Following the "logical sequence", the next in line is Kotlin in 100 seconds
@Ivan Melnikov Unit is nothing compared to all that Kotlin has to offer. But indeed, Unit is cool, way better than void.
You mean Scala or clojure right?
Ladies and gents, he liked the comment, so this is canon.
Or Groovy maybe
Kotlin is love, Kotlin is life.
"Congratulations, you just built an enterprise grade application"
I laughed too hard at this joke.
Cannot emphasise enough to say hi to your mom.
i died
He's right. Java is kinda stupid proof.
Hi Mom!
Java is absolutely incredible. I have chosen it as my first programming language and never got past making loops.
I love it.
The Iterator class can get a tad confusing though for loops. I don't know, maybe I haven't seen something similar in other languages.
I never went past making hello world in java. No idea why I decided on it as my first PL
Try c++ and you'll never get past pointers and address arithmetic lol
@@dimitridoroshko i made my own virtual cpu (byte code interpreter) in c++. Before that i couldn't even read a file. Now i made a simple custom embeddable scripting language. Without help from ide explaining what particular function does it is very hard to program.
Same!
Correction: write once, debug everywhere.
That's what it truly means for developers. ;)
And that language is very easy to debug. It will always tell what's wrong with your code.
@@khodis2002 that's what I like about strongly typed and opiniotaded languages. You're just not allowed to make a mistake, there's no type errors, you can't even compile if a type is wrong.
I consider Java my native programming language and I've worked with it for years; thus I can wholeheartedly agree and confirm this 😂 .
@@HandledToaster2 NullPointerException
@@emir9348 that's different, I'm saying you'll never get a mistake of passing the wrong object. Null is when you have no object at all
I have been using java for ages, but still watched this video in anticipation that this brilliant soul would say something new in 100 seconds that I would have missed in years.
What did you find new?
@@souravsuman636 Its first demonstration was star7 PDA.
@@akshaymattoo You have a kashmiri surname
@@edwardspencer9397 yes i am a kashmiri.
@Edward Spencer no such thing. He's indian.
The required like count makes me think that he might not wants to do a Full Java tutorial :D
Thought the same thing, lol.
I'll tap like twice to help! Or maybe even FOUR times!
Can't blame him, learning is easier than teaching
he's just shooting for the stars.. It makes you wanna like the video though
keep it up with the 100 seconds of code series! everyone is liking it.
I dont. its not beginner friendly
@@autobot021 I disagree with this comment but I do appreciate that saying 'everyone is liking it' was bound to be incorrect anyway since humans don't think unanimously about anything lol
@@autobot021 You're not a target audience then. The series is not designed to teach, but only to show. Knowing what exist can help to do the right first steps in the decision process of a project.
@@_modiX Don't have to be condescending.
@@autobot021 I didn't mean to. All I say is objectively speaking you're not the target audience, that's it. I'm not intending to speak down on you. You are free to dislike this format and I don't think you are a bad person for doing so. I just wonder, why bother watching this format? It's called whatever in 100 seconds. Nobody should expect in depth content, since it's impossible given the short timeframe. There are good in depth channels out there, but barely good videos in this format. I'm a fan of preserving uniqueness.
Lets pump the like button and so our boi goes out of his comfort zone (JS land) 😂👌🏾
1:15 "The class is required to have a main method" - well, it may create some misconceptions, because not _every_ class is required to have a main method.
It could be rephrased to "Every program is required to have a main method in one of its classes".
A useful tip
Since Java 17, you don't need to compile the class files anymore
Just pass them directly to JVM, and it will take care of the compilation for you
Wait what
Wait what
but why would you want to
Whaaaaat
I am switching to v17
Yea I did that accidentally last week lol..and as a noob I was left wondering why the fuck was I even taught to compile in the first place😂
Java actually my preferred language to understand OOP concept
Dart is my favorite, but given it doesn't have all the features of a more mature language, then I would go with Kotlin, Swift, or C#
For me it was a disaster; going C->C++ was the way
@@OzzyTheGiant what Features does it Lack?
@@VVV.12345 I don't get how Java is so difficult? It's very simple language compared to C++ and C# as it doesn't have as many modern features like runtime generics, since it tries to be backwards compatible as much as possible
@@02orochi It lacks operator overloading, which would cut down a lot of the verbosity. And it would do better with C# style getters and setters, imo.
This will probably be the only liked Java video in my life.
I dare you to make Assembly in 100 seconds.
depends based on architecture
@@HanifHearted What feature set?
machine code in 100 seconds
Ok then, .NET / .NET Core / .NET Standard / .NET Framework / Mono in 100 seconds?
The naming alone is material for an 2 hour video.
C# is superior to Java. Just had to say it.
@Vishal Adhikari why?
.NET - the name alone gives me nightmares
Asp.net core
Do kotlin in 100 seconds next pleasseee
since a minute has 60 seconds each and this has 2:25 secondds long this video is 145 seconds long
Now that you've done Java, you set the ground for Kotlin in 100 seconds!
Kotlin is a JVM language that runs in the Java ecosystem but much more modern and safe (mostly by null-safety).
It's similar to Swift in syntax and can be used to develop mobile apps as well (Android's official language is Kotlin, Kotlin with Native compilation target can target iOS too).
Kotlin is ❤️
You just done the script, now he only have to record the syntax and thats it
you made first 20 sec script of next kotlin video...
Kotlin can also target JavaScript and native environments. Support for WebAssembly is on its way.
I just love the expressive syntax and the support for more functional programming constructs.
@@vaisakhkm783 hehehe
Java, the beginning of everything for a lot of us
true =)
Literally searched "Java in 100 Seconds fireship" yesterday, you keep making the perfect content!
Same lmao
well thats unexpected but i kid you not i was thinking: i dont think i would see fireship making a video about java
plz do C# next
I can do it in 3 seconds for you... C# is what you write when you get sued out of using what you want to.
My first programming language, absolutely love it.
It was mine's too, but I hate it
Funny, isn't it?
It's a headache though...
@@gabrielcastilho4168 if u are in big company its really fun to learn. if its ur app or startup company i cant imagine what will go on.
@@gabrielcastilho4168 Why do you hate it?
That's what she said.
Great video! C# in 100 seconds next perhaps?
Yay he did one!
C# is for posers.
Please make a video about the research you do before making the actual video. You always publish the things we need 💛
Learning java to make mincraft mods? hell yeah
The fireship 100 seconds background music sounds like a really cracked remix of skype call sound 😂
for me it reminds me of the OST from the game Taur
You set the bar pretty high to ensure you don't have to do a full tutorial on java 😂
Beyond one hundred seconds on Hadoop would be interesting though
I think he forgot that you don't need to compile(javac) anymore.
Since the latest version of the JDK, the "java" command auto-compiles + runs it for you.
Guess we will never get the full java tutorial
Java developers after learning Java for 3-4 years be like :- 😶
Should the Next be c# as java's counterpart 💯 seconds
- what words were written the most in the world?
- "i love you"?
- No, it's "publis static void main(String args...){}"
Learned this in school and then never learned it again. Looks very powerful. Amazing video as always.
Never expected to see you in fireship's video
Would love to see Java compared to .Net 6. Personally, I feel like .Net 6 stomps Java in a lot of ways.
.Net 6 which is never version with improved BCL
@@GamerAlphaInd i guess you mean newer
@@GamerAlphaInd Bcl?
Correct me if I'm wrong but BCL means "Base Class Library". Starting in .Net Core Microsoft rewrote .Net from the ground up.
I said .Net 5 but really meant .Net 6
.NET 6 can't beat the JVM when it comes to performance. Java though, is behind C# in terms of syntax and low level control
C+, C++ and C# in 100s coming soon.
meanwhile KOTLIN: let me replace you
Haha not possible, atleast not for the next 50 years
We'll have to wait for the boomers in management to die to replace it forever, but that time will surely come
"Java is both compiled and interpreted."
Oh, I see. The worst of both worlds.
^ brainlet
and the best of both! i mean, python basically does the same thing, just the bytecode isn't usually what you send to your users
@@sodiboo actually this is why java is better cus bytecode is much more optimised "compiled" code but still kindof reversible into original state (loss of certain names of variables and so on may accure) while with python you just send the code and it is supposed to run from that raw human readible code/file
It means that the code and the bytecode are portable (mostly).
The bytecode class file is JIT interpreted pretty quickly by the VM.
Not the worst of both worlds, more like the better.
Java! First programming language I learned.
I don't like java cause it's full of enforced patterns that you barely need
a lot of java programs tends to be over engineered for very simple things.
and the community is full of patterns fanatics arguing over the right way to use it.
I hate java. It has no place in iOS.
@@uselessvids6407 You mean Android? Java isn't used much on iOS.
I also used to hate java
but our company enforced us to learn it, and after building many projects, i started liking java.
Not due to platform independentcy, but because of consistency....
Debuging code is really easy
At 38 years of age I decided to transition to being a software developer and I love this video and this series. So keep it up! TBH, this 100 second clip took me over an hour to decipher. I ask the most basic of questions, like what does a "class" mean, what do the curvy braces mean, why are there no clocks in my room? Keep up the great work. The seasoning of humour is a much appreciated touch that makes it easier to digest.
Are u Armenian??
"Congratz you built minecraft!"
could you please do a c# video ?
Oh yeh that would be helpful
I used to love Java, Until I found Kotlin 😁
Who's here from the Java for haters video?
I was looking for this comment 🤣
Some wise words: "no pain no gain, public static void main" -Sun Tzu, The Art of Code
Yooo, Java got a 100 seconds video! Since that's the language I started my programming journey with, it has a special place in my heart.
Thanks for the good stuff, Fireship, I'll be waiting for a full tutorial 😊 .
java is nice
@@artebotastic8846 Are you held as a hostage?
More like "Write once, Ruin everything"
you forgot minecraft 0:21
Java is love, Java is Life.
Learn once, Run for life. ;)
Scala (or other JVM languages )would also be great
Yeah a somewhat longer video on the entire JVM would actually be really cool. Explaining the differences and use cases each language has.
@@master0fnone Full focused video on JVM sounds nice
Clojure! Clojure! Clojure!
@@coder4life I'd watch the hell out of that, the JVM is awesome
To me, "Write Once, Headache Everywhere"
But tbh maybe I'm still noob and dumb, so I can't make my progress further faster with Java programming.
Nowadays most of the main languages run just fine on any major platform, so we have lots of good options for multi-platform development.
Where’s the .NET love man
Yes! He almost never mentions .NET...
100k+, let's go! 😀 also, same deal for C#?
literally the best programming series on the youtube
Mistakes just as in the Python video. No need for the class to have the same name as the file unless it's a public class.
"Multi-Paradigm Language"
*cough cough* technically maybe *cough cough*
It has a clear preference, and despite many excellent examples when they finally realized that "functional programming" or whatever you call it is necessary to remain relevant they still managed to fuck it up repeatedly.
I despise JAVA and Python and anything else that remotely involves a garbage collector/Interpreter/virtual machine.
Ever wondered why modern software is so laggy and bloated? - Because of these overabstracted piece of bloated crap languages!
I was a Java developer but due to demand I had to move to javascript...from past 6 years didn't wrote a single line of Java 😩😩
Which JS framework/library are you using? Let me guess: Angular.
In what language is ur backend then
Java and JavaScript are blackmailing the tech industry thats all.
C# is Java, but better
3 billion devices run JAVA of all time
*C# next ?*
s/java/c#/g
I can almost feel r/ProgrammerHumor breathing heavily
yeah i am surprised by the positive youtube comments
Java in 100 seconds? You've gotta let it steep longer to get the flavor 😎
If we're doing JVM languages, Clojure next? 🤔
1:14 Eh, almost.. Any public class in a file should match the filename..
Dont use the jdk use the openjdk for constant new builds.
Love you fireship, always wanted a 'Java in 100 seconds' but was afraid to mention cuz it seemed like the community here consists of more JS fans😅
That Java mascot looking SUS..
Started in python before jumping to Java. Always been one of my favorite languages and always will be. Now I focus on JS for it's versatility on the web
Yeah I started Java then went to JS for web dev as well.
People still use that???
hahahahahaha I just wish there were enough trolls out there to get you create that tutorial :P
In all seriousness, I have a fond memory of Java, it taught me almost everything I needed regarding typed languages without the hassle of dealing with pointers.
There are literally 20 minute long tutorials that I've learned less from holy shit. Thank you Fireship, I'll one day owe my job to you.
0:16 SUS!
get help
Back after April Fool's Java Haters Video!
Great video! There is so much more in the modern java specially in the latest JDK 17 LTS and such a big ecosystem(and much more to come). Hope you explore in the near future!
K, Imma make GTA 6 now
I love how he makes java sound so short and simple 😂😂
100k likes = Full Java tutorial? Seems impossible to me
Can we normalize "Hi mom" and not "Hello world"?
It's quite impossible. The Hello World string has been ratified and sanctified by the Great Prophets Kernighan and Ritchie (RIP) in the Bible of computer programming. Don't be a heretic.
Have taken 3 college level courses on Java and forgot everything over break so here I am
@2:05 NO, get an IDE...
No, use maven... and Jenkins...
What.. I though java is only used for minecraft mods 😮
Ight people, I think "Kotlin in 100 seconds" is needed now.
Agreed
By just writing this in 100seconds? 🥴
fun main(args: Array) {
println("Hello, World!")
}
Its like a java + python, they fck together and born with Kotlin, LOL
@@dc22199x Kotlin has functions outside of classes?
Hopefully before people start using Java itself :')
@@vicca4671 The most famous game in the world disagrees.
The only video that can show JAVA as something cool! Create 40+ lessons JAVA course in this style and you get $100K easy, simply because currently everything is boring and gray at a JAVA courses landscape.
"Main methoood, where are youuu?" If you get the reference, then you know.
Durga Sir
Day 40 of asking for a Ruby/Ruby on Rails video.
Actually its just the 1st day but make it happen please!
Thanks for the video, added Java to my resume
Haskell in 100 seconds. Has it been done yet?
8 hours after posting,
83K Views already
The "100K Likes" are on their way
Coming up next: "Kotlin in 100 seconds"
Hat off for the signature at the end.
"Congratulations, you just built an entreprise grade software"
(With the Star Trek Enterprise about to jump in light speed🚀)
i think you are confusing likes and views
Public class Main { public static void main(String[] args) { System.out.print("Ja Pierdole!!!"); }}
My first programming language. I’m absolutely in love with Java
It's not just a language, it's an ECOSYSTEM :)
In the beginning, there was nothing,
and then The Lord said "public static void main(String[] args){}"
and the Java Virtual Machine said, it was good.
You could do this with C# as well. Almost the exact same thing. Maybe there's more and more syntactic sugar added to C# than java, but in general, very similar.
Enjoy having your C# code run on non Microsoft Systems. I think its getting better but yeah.
@@draftingish4833 C# is fully and officially crossplatform (and open-source) since 2016. There is absolutely no problem with running it on other OSes:
1) "dotnet new console"
2) write your code
2) "dotnet run"
4) enjoy
write once, run everywhere
untill you want to export a multiplatform jar with multiple dependencies just to get hell load of errors.
>Multi-paradigm
>Every program starts with class main
The irony is ironic.....
?
Yeah, Java is as close to pure OOP as you can get I think. It’s just been hacked and extended to “”support”” multiple paradigms. It’s lambda support is something of a band-aid since functions are not first class citizens.
@@lionel16 smalltalk? Scala and groovy? Otherwise correct tho
Video: Haxe
in 100 seconds
Me, a senior Java dev: Interesting...
me, a junior java dev: fascinating
Me, an apprentice java dev: incredible...
I learned more from this video than my 6yrs college