String Concatenation | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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
Rohit