+ 9

String Concatenation

String firstName, lastName; firstName = "David"; lastName = "Williams"; System.out.println("My name is " + firstName +" "+lastName); Why we write String firstname, lastname???

28th Aug 2020, 10:57 AM
Mohammad Hasan
Mohammad Hasan - avatar
12 odpowiedzi
+ 3
that defines the type of the variables firstName and lastName as a String. in java you have to specify the type of variables unlike python.
28th Aug 2020, 11:20 AM
Bahhaⵣ
Bahhaⵣ - avatar
+ 9
Thank you🙏 Bahha🐧
28th Aug 2020, 11:34 AM
Mohammad Hasan
Mohammad Hasan - avatar
+ 7
One question My Python Tutorial was 12 lessons but now its 10 lessons😐 Why?:/
28th Aug 2020, 11:43 AM
Mohammad Hasan
Mohammad Hasan - avatar
+ 7
No It was like this: 1/12=Welcome to Python 2/12=your first program I'm writing Python in Farsi in my notebook😔
28th Aug 2020, 12:03 PM
Mohammad Hasan
Mohammad Hasan - avatar
+ 6
Maybe😭 👕----👎 👖 👞
28th Aug 2020, 12:06 PM
Mohammad Hasan
Mohammad Hasan - avatar
+ 6
Thank you🙏 RKK
28th Aug 2020, 2:28 PM
Mohammad Hasan
Mohammad Hasan - avatar
+ 4
Bahha🐧 is right! Java and Python are two very different languages! So, don't learn both of them at the same time according to me
28th Aug 2020, 11:35 AM
Namit Jain
Namit Jain - avatar
+ 4
In Java you need to specify Whether a variable is a String, boolean or any...other
29th Aug 2020, 7:44 AM
KARTHIK
KARTHIK - avatar
+ 4
String in Java is a class In python every variable is an object itself types of data are automatically implemented ☕☕☕
30th Aug 2020, 5:55 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 3
Mohammad Hasan It was 10 only 😌 And there are 9 chapters
28th Aug 2020, 11:45 AM
Namit Jain
Namit Jain - avatar
+ 3
Mohammad Hasan omgg Maybe with the new update, some of the lessons are shifted to the second chapter
28th Aug 2020, 12:05 PM
Namit Jain
Namit Jain - avatar
28th Aug 2020, 2:02 PM
minirkk
minirkk - avatar