Navigate Select ESC Close

#3 First Code in Java

2023-01-16 Science & Technology
990.7k
8.0k
143
Telusko
Telusko
2.8m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Check out our courses: Industry-Ready Java Spring Boot, React & Gen AI -Live: https://go.telusko.com/industry-ready-course Coupon: TELUSKO10 (10% Discount) AI-Powered DevOps with AWS- Live V3: https://go.telusko.com/ai-powered-devops-with-AWS-v3 Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Java Spring:- https://go.telusko.com/Udemyjavaspring Java:- https://go.telusko.com/udemyteluskojava Spring: https://go.telusko.com/udemyteluskospring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 WhatsApp : https://go.telusko.com/whatsapp TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : https://discord.gg/D8hWe9BqfF In this lecture we will learn: - Using the VsCode IDE - How to start VsCode? - How do we create a project? - Creating the first java code - Use of JShell to run small codes - Steps to compile a code in the terminal #1 We will start doing coding in the VsCode. - VsCode includes Explorer, Search, Run and Debug, and Add Extension options in it. - You can add an extension if you want as per the VsCode recommendation like Extension Pack for Java. - We will create a project in Explorer. - VsCode itself has a terminal where you can run commands. java --version - used to check the version of java javac --version - used to check the version of java compiler - java command is used to run the code while the javac command is used to compile the code. :- How do we create a project? Project is a very broad term that is used when we create some files and merge these files with libraries. - We will create a new folder where we store all the files of our course. :- Creating a first Java file: -You can create the first java file in a folder like Hello.java. - .java is an extension of Java files. #2 Creating our first Java Code to print "Hello World" : JShell:- - We have a concept of JShell that is introduced in Java 9 where you can create small codes and perform operations. - Print is an inbuilt method in Java that is used to print anything and it uses with System.out like: System.out.print(6); System.out.print("hello world"); - double quotes are used to print any text. - a semicolon is required after every statement in Java as per the syntax. -JShell can't be used for doing projects, it is only useful for experiments or learning concepts. Two steps to compile any code: 1. Compile the code using the javac command. javac filename 2. Run the code using the java command. java classname Github repo : https://github.com/navinreddy20/Javacode.git More Learning : Java :- https://bit.ly/3x6rr0N Python :- https://bit.ly/3GRc7JX Django :- https://bit.ly/3MmoJK6 JavaScript :- https://bit.ly/3tiAlHo Node JS :- https://bit.ly/3GT4liq Rest Api :-https://bit.ly/3MjhZwt Servlet :- https://bit.ly/3Q7eA7k Spring Framework :- https://bit.ly/3xi7buh Design Patterns in Java :- https://bit.ly/3MocXiq Docker :- https://bit.ly/3xjWzLA Blockchain Tutorial :- https://bit.ly/3NSbOkc Corda Tutorial:- https://bit.ly/3thbUKa Hyperledger Fabric :- https://bit.ly/38RZCRB NoSQL Tutorial :- https://bit.ly/3aJpRuc Mysql Tutorial :- https://bit.ly/3thpr4L Data Structures using Java :- https://bit.ly/3MuJa7S Git Tutorial :- https://bit.ly/3NXyCPu Donation: PayPal Id : navinreddy20 https://www.telusko.com

Top Comments (10)

@bhuvanprasathk 2023-01-23

People paying 20k+ for java courses...and then there is this man! Top class teaching, interesting etc etc! Great man! 👍

214 3 replies
@hemanthsai5640 2023-03-09

Thank u so much naveen sir beacuse of your videos i got a job in mphasis comapny and thanks a lot so I will cherish this moment in my life and finally thank u so much

98
@LifeCodeGame 2023-01-16

Congratulations on taking your first steps into the world of Java programming! Keep up the great work!

33 2 replies
@akshay.one1 2023-10-21

Hey, I watched the first two videos and gained motivation to learn Java. Thanks you teach free and its probably better than paid courses! Love from India ❤!

27
@nehaarora2441 2023-01-16

I really appreciate the help you providing to common people who can't afford expenses courses. Thank you so much.

19
@nageshb3583 2023-01-17

I am Nagesh B from bangalore. Almost more than 200 my students I have subscribed. Really lot of the things I have learned. Better start doing videos on small projects using core java.

12
@madhu22984 2023-03-26

Heartiest Thank you sir❤❤🥲🥲

6
@thiru-o5b 2025-07-27

Sir iam new to java but your teaching Looks better sir

2
@dhammajagrutifoundation5032 2025-10-18

Error is very important in programming life.....! Nice statement. Nice teaching. Thanks a lot.

1
@H.r.y.029 2025-01-13

лучший курс по Java на ютуб

1

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot