+ 1
when to use Colon's?
5 Answers
+ 1
colons r most use in switch cases like case 1: and semicolon is used to end a statement and in case of c++ colons r also used in inheritance
0
This link will help you
http://stackoverflow.com/questions/2399590/java-what-does-the-colon-operator-do
- 1
semi colon is used to end the statement
- 2
semi colons are used when your line of code is done. understand?