#3 First Code in Java

  Рет қаралды 409,403

Telusko

Жыл бұрын

Check out our courses:
Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : bit.ly/java-spring-cloud
Udemy Courses:
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
Java For Programmers:- bit.ly/javaProgrammers
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusko.com/
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:
-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 : github.com/navinreddy20/Javacode.git
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com

Пікірлер: 83
@bhuvanprasathk
@bhuvanprasathk Жыл бұрын
People paying 20k+ for java courses...and then there is this man! Top class teaching, interesting etc etc! Great man! 👍
@Jitendra-zeremiah
@Jitendra-zeremiah 9 ай бұрын
there are so many youtubers out there make free content on java and many other programming languages.
@deekshithd359
@deekshithd359 8 күн бұрын
@@Jitendra-zeremiah could you suggest other top java playlists..
@hemanthsai5640
@hemanthsai5640 Жыл бұрын
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
@nehaarora2441
@nehaarora2441 Жыл бұрын
I really appreciate the help you providing to common people who can't afford expenses courses. Thank you so much.
@BLAZIN77KONG
@BLAZIN77KONG 8 ай бұрын
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 ❤!
@LifeCodeGame
@LifeCodeGame Жыл бұрын
Congratulations on taking your first steps into the world of Java programming! Keep up the great work!
@Lakansha1801
@Lakansha1801 3 ай бұрын
Kis application ko download karna padhta hai
@nageshb3583
@nageshb3583 Жыл бұрын
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.
@madhu22984
@madhu22984 Жыл бұрын
Heartiest Thank you sir❤❤🥲🥲
@hibuddy911
@hibuddy911 Жыл бұрын
Sir hats off for you .
@arahmantv8584
@arahmantv8584 2 ай бұрын
Weldone sir we are from Nigeria and we're always proud with u
@user-rr6pi2uc6k
@user-rr6pi2uc6k 2 ай бұрын
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.
@user-le2vm7wp4p
@user-le2vm7wp4p 3 ай бұрын
Hello boss I am now downloading my setups and begin all other lessons with you
@alexmbani7675
@alexmbani7675 Жыл бұрын
Great teacher
@kaushik_herle
@kaushik_herle Жыл бұрын
Great Video
@iNeurons
@iNeurons Жыл бұрын
I am full fresher in Java What a my luck 🤞❤️
@gaganv8850
@gaganv8850 Жыл бұрын
Sir we want more video's on spring boot for beginner
@nishantpatel7480
@nishantpatel7480 Жыл бұрын
Sir you are going to cover all the topics in java
@Naresh-rq6oc
@Naresh-rq6oc Жыл бұрын
please add ajava project with full use of methods overriding over loading concepts and exception concepts etc..
@jayprakashjaiswal8220
@jayprakashjaiswal8220 Жыл бұрын
Sir please make new video on spring
@luqmanraaz4
@luqmanraaz4 Жыл бұрын
i m very new to java so i dont know where you brought that telusko terminal?????????????????????
@s.abhignah1728
@s.abhignah1728 Жыл бұрын
How???
@shilpareddy3360
@shilpareddy3360 9 ай бұрын
Same doubt
@vaishnavithantry2122
@vaishnavithantry2122 9 ай бұрын
Heree too
@suneela9758
@suneela9758 9 ай бұрын
his system name is telusuko. that's why it is showing like that.
@hameheroj4030
@hameheroj4030 8 ай бұрын
Good question! I needed to check in another tutorials, sad!
@manikantakantamsetti1350
@manikantakantamsetti1350 11 ай бұрын
Sir how to open a terminal
@saeednawaz2694
@saeednawaz2694 Жыл бұрын
we are waiting for upcoming videos
@jhansipriya5006
@jhansipriya5006 9 ай бұрын
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
@vaishanths3038
@vaishanths3038 Жыл бұрын
Hey, is the name of your channel refer to the world in Telugu which means "learn"? If yes, very nice name haha
@Telusko
@Telusko Жыл бұрын
Yes, correct
@ajinmech769
@ajinmech769 Жыл бұрын
What is the difference between Vs code and eclipse
@md.shabbirahmadraza9101
@md.shabbirahmadraza9101 Жыл бұрын
Great ...
@CodingBirdsOnline
@CodingBirdsOnline 11 ай бұрын
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
@Manohar_85
@Manohar_85 2 ай бұрын
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??
@varshagowda669
@varshagowda669 Ай бұрын
Ur genius...........❤️❤️❤️
@crazybadhrigamer2826
@crazybadhrigamer2826 6 күн бұрын
how did you open that terminal sir.....
@likhitasharma423
@likhitasharma423 4 ай бұрын
Why am I getting error for exit too...? 8:12
@yawanthyah3517
@yawanthyah3517 Жыл бұрын
Sir love u sir
@gipsondaniel1070
@gipsondaniel1070 9 ай бұрын
Sir how you are opening that new terminal .. (For j shell) in windows it's not coming can you pls explain it clearly sir
@poojasritandalam2470
@poojasritandalam2470 4 ай бұрын
Goto terminal and click on new terminal that's it . We can use jshell
@kaushikReddynarra
@kaushikReddynarra 8 күн бұрын
Go to Terminal > New Terminal > Enter "jshell" and press enter
@user-ll7ri5jg3e
@user-ll7ri5jg3e 4 ай бұрын
sir in command prompt java version is not showing its showing only java c version what do sir
@asifpatel6293
@asifpatel6293 4 ай бұрын
how he increase the mouse pointer for a whice at 4:30. HOW ?
@VayuEdit
@VayuEdit 7 ай бұрын
how to open jshell
@not_really9916
@not_really9916 Ай бұрын
Hello I just start this course.When I type javac Hello.java.It does not show error.
@Th3Mag1c1an
@Th3Mag1c1an 7 ай бұрын
if exit doesnt work for you in Jshell try /ex or /exit
@puramcharanreddy1744
@puramcharanreddy1744 27 күн бұрын
Anna Telugu Kuda Start Chey Anna 💗
@yogitakhot1787
@yogitakhot1787 2 ай бұрын
Your course is too good and we are getting it from company but I need it with either intellij or eclipse
@yogitakhot1787
@yogitakhot1787 2 ай бұрын
Do you have any course with eclipse or intellij
@MuhammadMaaz-fg6cs
@MuhammadMaaz-fg6cs 3 ай бұрын
unable to initialize device prn
@jkoushik3515
@jkoushik3515 10 ай бұрын
@telusko. Hi sir,One query here: jshell is possible via command prompt or terminal. Is it possible in IDE too like Eclipse and intell J. If possible may I know how can we do that??
@gipsondaniel1070
@gipsondaniel1070 9 ай бұрын
Same doubt here🤔
@shrishtigarg4674
@shrishtigarg4674 6 ай бұрын
same iI dont understand where to open jshell
@sureshbvrm1
@sureshbvrm1 6 ай бұрын
@@shrishtigarg4674 it is easy ...just type jshall in terminal then it will open jshall commands.. promet
@poojasritandalam2470
@poojasritandalam2470 4 ай бұрын
We can use it through terminal itself
@iNeurons
@iNeurons Жыл бұрын
Hello sir 👋
@brokenbeats6750
@brokenbeats6750 Жыл бұрын
How to open jshell...??
@s.abhignah1728
@s.abhignah1728 Жыл бұрын
Yes...how?
@pranathireddy7995
@pranathireddy7995 Ай бұрын
10:00 You forgot to mention how to exit Jshell. Use the command /exit
@andreas23ds41
@andreas23ds41 4 күн бұрын
At 10:06 and trying to do this step but it never works how can I do it?
@soubhagyamishra3902
@soubhagyamishra3902 11 ай бұрын
Sir its showing package in system does not exist
@kaushikReddynarra
@kaushikReddynarra 8 күн бұрын
S should be upper case in System.out.print(6);
@user-lt2tz6en3o
@user-lt2tz6en3o 3 ай бұрын
you can explain in simple but you can do more complicated
@amritkashyap4740
@amritkashyap4740 Жыл бұрын
Hello sir g
@rahulitsmyvlogs4016
@rahulitsmyvlogs4016 Жыл бұрын
👍
@Bestpests
@Bestpests Жыл бұрын
Sir why are you uploading java videos on PW skills
@nazeerahameed4406
@nazeerahameed4406 3 ай бұрын
Excuse me sir system package is not exist it shows
@nazeerahameed4406
@nazeerahameed4406 3 ай бұрын
What can I do sir
@tutturu858
@tutturu858 5 ай бұрын
How to open this terminal in 6:21
@045surajkumar2
@045surajkumar2 5 ай бұрын
hey, want complete together?
@thehubofprogrammers
@thehubofprogrammers Жыл бұрын
👍👍👍👍
@NicheNi
@NicheNi 6 ай бұрын
Kuch smj nhi aah rha… I am not getting anything in this video
@Nikhil-qi4oz
@Nikhil-qi4oz Жыл бұрын
🖖
@AntarikshRajkonwar
@AntarikshRajkonwar Ай бұрын
12/5/24
@googleuser7495
@googleuser7495 Ай бұрын
on 3rd episode , 5/24/2024 just to trace myself
@pratiknaik6676
@pratiknaik6676 Жыл бұрын
Ham First ham first
@dimpe5038
@dimpe5038 8 ай бұрын
te amo pelado
@bidhankumar8762
@bidhankumar8762 Жыл бұрын
1st view
@nazeerahameed4406
@nazeerahameed4406 2 ай бұрын
Sir when I compile the code javac hello.java it is showing my PS c/ user
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 6 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 52 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 48 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 25 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,2 МЛН
Как слушать музыку с помощью чека?
0:36
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,6 МЛН