Question: What's the difference between / / and in Java? There is no difference. / / is an escape character for the forwardslash in a

What's the difference between // and \ in Java?
There is no difference.
// is an escape character for the forwardslash in a string.
11 marks a comment line.
One is for windows file paths, the other is for Linux/Unix/Mac OS file paths.
// marks a comment line.
II is an escape character for the backslash in a string.
 What's the difference between // and \ in Java? There is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!