Whoa! so much information in such a small video. Here are the points which I liked the most: 1. Real values are treated as double by default. We have to explicitly specify float value. (Ex.: double d = 5.6 --> no error ; float f = 5.6 --> error) 2. Only 'true' and 'false' are treated as boolean. (Ex.: if(true) --> no error ; if(1) --> error) Thanks Navin for the info :)
Why does the mac allow the float f = 5.6 and windows only accepts float = 5.6? I can not find this on Google and this course is hard to follow when I am playing follow the leader to a T.
Keypoints: 1. default: double (8bytes) not float 2. char datatype: only one character and single quotes are allowed 3. write f at the end of float, l at the end of long 4. byte range: [-128 , 127]
thank you for this amazing series sir, i am coming from python in hope of learning Java and this is helping me a lot. i have a minor suggestion, the video on variables could be after data types so you can show more about variables for example float.
I wrote this code and cant get what is wrong with it class Hello { public static void main(String a[]) { Char c = ‘k’; System.out.print(c); } } when i compile it , it shows these errors Hello.java:5: error: illegal character: '\u00b4' Char c = ┬┤k┬┤; ^ Hello.java:5: error: illegal character: '\u00b4' Char c = ┬┤k┬┤; ^ Hello.java:5: error: not a statement Char c = ┬┤k┬┤; ^ 3 errors How to resolve?
First he types "javac" to compile the problem and if the program is compiled successfully without any errors then he types the program name. For example "Hello".
Here is a total code class Hello{ public static void main(String args[]){ char c = 'k'; System.out.print(c); } } After you write this Do this in your Terminal javac Hello.java java Hello Then your output will come.
Whoa! so much information in such a small video. Here are the points which I liked the most:
1. Real values are treated as double by default. We have to explicitly specify float value.
(Ex.: double d = 5.6 --> no error ; float f = 5.6 --> error)
2. Only 'true' and 'false' are treated as boolean.
(Ex.: if(true) --> no error ; if(1) --> error)
Thanks Navin for the info :)
Why does the mac allow the float f = 5.6 and windows only accepts float = 5.6? I can not find this on Google and this course is hard to follow when I am playing follow the leader to a T.
Thanks a lot! I will watch whole series to refresh my java skills :D
Keypoints:
1. default: double (8bytes) not float
2. char datatype: only one character and single quotes are allowed
3. write f at the end of float, l at the end of long
4. byte range: [-128 , 127]
sir where were u......got a diamond in search of gold♥
Enduku bro...antha show 😊
thank you for this amazing series sir, i am coming from python in hope of learning Java and this is helping me a lot. i have a minor suggestion, the video on variables could be after data types so you can show more about variables for example float.
Thank you sir very nice gide & very nice best java in data type teaching information video..👍
May you please make a video series on making a 3d Game Engine with Java
Please update when you do
Thank you sir Please Try To upload Servlet, JSP And Spring Videos Also In 2023
Sick series to watch in 2023^
What do u mean?
@@AnuragRawat01aq
Lq
Thanks ,great explanation in detail and in a simple way to understand
Thank you Sir...............Excellent Explanation
thank you so much sir...superb explanation..
really helpful, thanks !
GOOD EXPLATIONS
when ur printing input output is not print syout how u get output
Sir ek baar main hi sare video daal diye aapne 😅
Hi do you have C# tutorial?
Sir i have one question if u all the content of topic is covered in such a small times
Thank You Sir ❤
quality content 🙌
I wrote this code and cant get what is wrong with it
class Hello
{
public static void main(String a[])
{
Char c = ‘k’;
System.out.print(c);
}
}
when i compile it , it shows these errors
Hello.java:5: error: illegal character: '\u00b4'
Char c = ┬┤k┬┤;
^
Hello.java:5: error: illegal character: '\u00b4'
Char c = ┬┤k┬┤;
^
Hello.java:5: error: not a statement
Char c = ┬┤k┬┤;
^
3 errors
How to resolve?
C of char should be small, not capital
it is System.out.println, not print
@@bethesuper4500 println just means print on new line, so that isn't major issue. but it is easier with println.
Same I'm getting continuous errors don't know why 😢😢😢
C in char must be small not capital
Thank you
i my self i face issues with using bool instead of boolean and also forgeting the semicolon haha
why can you put only one character/letter/number in the char variable?
It's vry helpful👍💯
i am searching for advanced java can u help me??
what you are typing to compile in terminal . i'm not getting you there
First he types "javac" to compile the problem and if the program is compiled successfully without any errors then he types the program name. For example "Hello".
Here is a total code
class Hello{
public static void main(String args[]){
char c = 'k';
System.out.print(c);
}
}
After you write this
Do this in your Terminal
javac Hello.java
java Hello
Then your output will come.
class Hello
{
public static void main(String a[])
{
System.out.println(3 + 5);
}
}
for this code i get this "Hello world"
You have to run the code first then you will get the result
where i will find notes???
Im getting error constantly says
Could not find pr load main class Hello
Class not found what should i do??
Save the file
@@the_hollow518 okay thanks
where is reference data types
1:11 1:12 you are speaking so fast.
In #class 6 i got an error
Int num1 = 9;
Error: the value of local variable num1 is not used
same
I am first viewer on this video
Awesome
12/5/24