#3 First Code in Java

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

For More Queries WhatsApp or Call on : +919008963671

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:
- .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.
- 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

More Learning :

Donation:
PayPal Id : navinreddy20
Рекомендации по теме
Комментарии
Автор

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

bhuvanprasathk
Автор

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

hemanthsai
Автор

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

nehaarora
Автор

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

LifeCodeGame
Автор

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 ❤!

BLAZINKONG
Автор

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.

nageshb
Автор

Weldone sir we are from Nigeria and we're always proud with u

arahmantv
Автор

how in your vs code only course file is visible
in my vs code all files desktop files are shown including the file created in desktop
it makes it look clumsy

jhansipriya
Автор

Sir I am having a doubt..for printing hello world, you said the code will be System.out.print("Hello World") in jshell. Other than vs code compiler like online programiz what will be the code??

Manohar_
Автор

i m very new to java so i dont know where you brought that telusko

luqmanraaz
Автор

Hello boss I am now downloading my setups and begin all other lessons with you

levmwpp
Автор

Sir we want more video's on spring boot for beginner

gaganv
Автор

Sir you are going to cover all the topics in java

nishantpatel
Автор

I saw many comments here about opening the terminal, if you see at 6:16 he is clicking on the terminal which is pinned to the bottom of his screen. Just that.

rrpiuck
Автор

Hey, is the name of your channel refer to the world in Telugu which means "learn"? If yes, very nice name haha

vaishanths
Автор

Sir how you are opening that new terminal .. (For j shell) in windows it's not coming can you pls explain it clearly sir

gipsondaniel
Автор

What is the difference between Vs code and eclipse

ajinmech
Автор

I am full fresher in Java
What a my luck 🤞❤️

iNeurons
Автор

please add ajava project with full use of methods overriding over loading concepts and exception concepts etc..

Naresh-rqoc
Автор

All good, but is this video cut and merge of older videos, in last video you were using windows, vscode looked different but it is mac now

CodingBirdsOnline