0

Hi , can any one explain me this code
public class Howcome {
public static void main(String[] args) {
System.out.println(“Bank of America”);
https://www.bankofamerica.com
System.out.println(“Online Banking”);
}

even though https:// BofA lyin as orphan string in between this codes compiles and executes fine..???

4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by pavan146
0

Please post your code in code tags to preserve formatting and to show the real code without there being a hyperlink in the middle of it.

1

In java you can create a label to use with loops, break & continue statements. See http://www.janeg.ca/scjp/flow/labels.html for an example of how this works. The syntax for creating a label is an identifier, followed by a colon. Then remember that single-line comments in java start with //. So the code you asked about is interpreted as a label ("https:") and then a comment (//www.bankofamerica.com).

Votes + Comments
very good
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.