00:03 Java development process and required tools. 01:39 Software is built to solve real-world problems using virtual solutions 03:13 Data can be stored temporarily in variables during processing. 04:33 Java variables are used to store data 06:03 Integers are used to store whole numbers, including negative values 07:27 Using 'print Ln' in Java to print on new lines 08:53 Create variables and assign values in Java 10:18 We can create variables to store and manipulate values.
U r a gem dude, u should be in IIT's. Remembering all the stuff from college days. U r better then many lectures & professors ( It's not mean they are not worthy, but u r next level in explanation) It's very easy to understand and remember more stuff in simple way.
= is a Assignment operator Assignment operator takes value from Right Hand side and it will assign it to the left hand side. Syntax of Declaring a Variable Variabletype variablename = value 2) Every Statement must end with a Semi colon.
For anyone who have the issue "Error: Could not find or load main class Hello Caused by: java.lang.ClassNotFoundException". I solved this by: 1 Save my project, 2 Type "javac Hello.java" in terminal "push" "enter", 3 Type "java "(classname)" in terminal "push" "enter" This made it calculate for me. I have no coding experience or how you use the symbole language so I hope you can follow the steps.
what is happening when we are not storing values in the variable ,where the data is storing now? like S.O.P(2+3) do 2 require space and do 3 require space and the 5 require space if yes then where it is actually getting stored.
The data is stored in ram anyways... but it cannot be retrievable for later use... so it makes sense... if you are not gonna use a value more than once... don't save it in a variable
The literals 2 and 3 are constant values, and the result 5 is computed and stored temporarily in the stack before being printed. The JVM efficiently handles this without permanent storage
println() is method right and we are sending operations as arguments to that method. How println() taking those as arguments. Ex: whether it taking as string , its taking as string you need to mention those in "" right.
Actually There are multiple variations of println() available which takes int, float, long, String as arguments. Like println(String x), println(int x).... etc.
even though i changed the "Hello World" with (3 + 5) i could not get 8 instead again i am getting Hello World in terminal (ANY SOLUTION FOR THIS PLEASE REPLY QUICK)
Please help me how fix PS C:\Users\devar\.vscode\Java\myprog> javac Hello.java error: file not found: Hello.java Usage: javac use --help for a list of possible options PS C:\Users\devar\.vscode\Java\myprog>
I do not have JavaC show up when I type java -version. How do I get that installed in my system? Everytime I try to run anything, like the basic sample above, I get "missing package" and/or "system" not resolved errors. What is missing? Libraries not found? How do I correct this?
So following this lesson, i wanted to create a VARIABLE for text. So I created this code 1 class Hello 2 { 3 public static void main(String a[]) 4 { 5 String name = Martina; 6 System.out.print(name); 7 } 8 } When i compile it , it shows these errors Hello.java:5: error: cannot find symbol String name = Martina; ^ symbol: variable Martina location: class Hello 1 error Anyone knows why ?
hii i am facing a problem when i tried to compile the code, it was printing the earlier code i.e. Hello World. what can i do for that? how can i solve the problem? please help me
sir when I do changes in my code and compile it it shows the old result not the new why it is happening?? like when we added 3+5 and 8+7 it gives output only 8
1 save the code by using CTRL+S or by clicking on File --> Save on top left of the screen. 2 compile the new code by writing on the terminal "javac Hello.java" 3 run it with "java Hello" In this way it should work.. anytime you change the code before compiling it you have to save the changes then compile it and then run it.
Am facing an error of which (Error: Could not find or load main class Hello Caused by: java.lang.ClassNotFoundException:) can anyone help me out please.
make sure you are in the correct directory when you run the command. if you used a package go to the location and run the command from there. javac /packagename/classname.java then java /packagename/classname
Your content is better than most professors I’ve had in college! Great explanation and content!
00:03 Java development process and required tools.
01:39 Software is built to solve real-world problems using virtual solutions
03:13 Data can be stored temporarily in variables during processing.
04:33 Java variables are used to store data
06:03 Integers are used to store whole numbers, including negative values
07:27 Using 'print Ln' in Java to print on new lines
08:53 Create variables and assign values in Java
10:18 We can create variables to store and manipulate values.
you are a life saver of many students sir.....
That is a fantastic explanation, happy I got this course and had understanding about java.
U r a gem dude, u should be in IIT's.
Remembering all the stuff from college days.
U r better then many lectures & professors ( It's not mean they are not worthy, but u r next level in explanation)
It's very easy to understand and remember more stuff in simple way.
Your content is well explained here, I never understood Java until I have watched your videos.
thanks so much for this great explanation.
= is a Assignment operator
Assignment operator takes value from Right Hand side and it will assign it to the left hand side.
Syntax of Declaring a Variable
Variabletype variablename = value
2) Every Statement must end with a Semi colon.
For anyone who have the issue "Error: Could not find or load main class Hello
Caused by: java.lang.ClassNotFoundException".
I solved this by:
1 Save my project,
2 Type "javac Hello.java" in terminal "push" "enter",
3 Type "java "(classname)" in terminal "push" "enter"
This made it calculate for me. I have no coding experience or how you use the symbole language so I hope you can follow the steps.
i got it thanks
Thanks bro i was suffering from past 15 min from this 🤌🏻😩
Bro isn't there a way were i dont have to save program everytime...if you could help 😅
I'm so glad I've found your videos! Super interesting! Thank you so much!
Great work sir,
It will helpful for infinity of students ✨.
sir, can you please speak slowly from upcoming videos!?
Enjoy your Content, Your content is great kudos 👏👏👏👏
what is happening when we are not storing values in the variable ,where the data is storing now? like S.O.P(2+3) do 2 require space and do 3 require space and the 5 require space if yes then where it is actually getting stored.
It's not getting stored anywhere.. simply giving the result by jvm
The data is stored in ram anyways... but it cannot be retrievable for later use... so it makes sense... if you are not gonna use a value more than once... don't save it in a variable
The literals 2 and 3 are constant values, and the result 5 is computed and stored temporarily in the stack before being printed. The JVM efficiently handles this without permanent storage
Thank you for this Full Java course Sir.
class Hello
{
public static void main(String a[])
{
System.out.println(3 + 5);
}
}
for this code what i get is "Hello world" even after complier
Once try again I got the answer
first save the code by cntrl+s then try
Bro it's not working @@ritikraj6523
@@ritikraj6523 thanks
@@ritikraj6523 thanks bro ❤
"Could not find or load main class Hello" - Any fix for this?
Click on (Run without Debugging) at the top of the editor or right click on the code and choose the run Java option.
println() is method right and we are sending operations as arguments to that method.
How println() taking those as arguments.
Ex: whether it taking as string , its taking as string you need to mention those in "" right.
Actually There are multiple variations of println() available which takes int, float, long, String as arguments. Like println(String x), println(int x).... etc.
I am fresher, sir please send me the Java important questions
Thank you anna
Thanku for this type of content sir ❤️🙏
i love this you are great lecturer
bro any extensions for java syntexes ??
Thank you so much brother
even though i changed the "Hello World" with (3 + 5) i could not get 8 instead again i am getting Hello World in terminal
(ANY SOLUTION FOR THIS PLEASE REPLY QUICK)
compile it first and then run it
compiled it and it still didnt change?@@Failure5292
Save it and then compile and run
thanks you really saved me!!!
@@sunmethasunmetha3502
Very helpful
Guys when I try it and use javac it makes and new byte bode instead of saving in the first file and when I want to run it error happens
Please help me how fix
PS C:\Users\devar\.vscode\Java\myprog> javac Hello.java
error: file not found: Hello.java
Usage: javac
use --help for a list of possible options
PS C:\Users\devar\.vscode\Java\myprog>
I do not have JavaC show up when I type java -version. How do I get that installed in my system?
Everytime I try to run anything, like the basic sample above, I get "missing package" and/or "system" not resolved errors.
What is missing? Libraries not found? How do I correct this?
When you download and unzip JDK and add the path of the bin folder inside to the "path" system environment variable, it should work.
You are qualified to become a professor in IIT
So following this lesson, i wanted to create a VARIABLE for text. So I created this code
1 class Hello
2 {
3 public static void main(String a[])
4 {
5 String name = Martina;
6 System.out.print(name);
7 }
8 }
When i compile it , it shows these errors
Hello.java:5: error: cannot find symbol
String name = Martina;
^
symbol: variable Martina
location: class Hello
1 error
Anyone knows why ?
String values should be stored in double quotes(" ") : String name = "Martina"
" "
Sir whick jvm are you using to run java
while i am executing the code i am getting an error called class was not found even though i create class name hello
Why coming error
What is the error
Everyone seems to be getting the same error and I did as well. Just delete the code runner extension in VS code. This should fix the error
my code is not working,, when i put 3+5 ,, and run the output comes same 3+5 ,,, not 8
You gave semi colon bro
I have recompliled and even deleted the old one but still wasn't getting 8 as an answer still getting hello world any clue to fix this.
Save the code and then compile and run
thx
@@eternalexplorer4471
❤@@eternalexplorer4471
hii
i am facing a problem
when i tried to compile the code, it was printing the earlier code i.e. Hello World.
what can i do for that?
how can i solve the problem?
please help me
Firstly you have to save the code and then run
i was facing the same problem , what i have done is right click on file name in vs studio and click on run java .
sir when I do changes in my code and compile it it shows the old result not the new why it is happening?? like when we added 3+5 and 8+7 it gives output only 8
1 save the code by using CTRL+S or by clicking on File --> Save on top left of the screen.
2 compile the new code by writing on the terminal "javac Hello.java"
3 run it with "java Hello"
In this way it should work.. anytime you change the code before compiling it you have to save the changes then compile it and then run it.
@@martinamillo969 you're actually too helpful thank you
Hi, i want code hhhhhhhh, ehere is code i can see that can you show me
i compiled it and ran still its showing hello world instead of 8 any solution to this
same is there any solution you know of?
Nice sir
Nice
video lambi boht kartaha itu
Am facing an error of which (Error: Could not find or load main class Hello
Caused by: java.lang.ClassNotFoundException:) can anyone help me out please.
Instead of typing the file name you created, type the class name.( For ex: java Hello).... this is name of the class here, not the file name you edit
same problem how did u solved it
@@gopalkrishnan474 bro im having the same problem could u explain it more specificly
@@dreadhunter7114 Dont type the name of the file, but the class name you created
make sure you are in the correct directory when you run the command. if you used a package go to the location and run the command from there.
javac /packagename/classname.java
then
java /packagename/classname
hi
5:37
12/5/24
👍
is possible to run the code without compiling ? java hello.java
no
yes its possible
Thank you sir.