- 2

is '#' used anywhere is Java?

23rd Jul 2021, 5:04 PM
Bhavik Mahalle
Bhavik Mahalle - avatar
5 Answers
+ 3
Yeah, if you're lazy to write HashMap #Map
23rd Jul 2021, 6:21 PM
Simba
Simba - avatar
+ 3
Simba I can't tell if you're being sarcastic or not. But I hope no one ever is so lazy that they would use "#Map" as a short form for referring to "HashMap". 😜
23rd Jul 2021, 8:02 PM
David Carroll
David Carroll - avatar
+ 2
Bhavik Mahalle Not that I'm aware of. Are you trying to find an equivalent of '#' in Java from using it in another language? If so, which language? Is there a reason you're asking about this specific symbol?
23rd Jul 2021, 7:59 PM
David Carroll
David Carroll - avatar
+ 1
Bhavik Mahalle David Carroll Tuomas Sorakivi wrote a brief notation on hashtags in Java Spring What are hashtags? They are database indexed words that are attached to a message. They are used to list and group messages. Hashtags are implemented in many web services. The first one who proposed hashtags was Chris Messina. Social services weren't interested in this proposal in the beginning, to add a # sign in front of a word but after services implemented searches and grouping by hashtags the custom got a higher value. Hashstags simply give more meaning to the message. There was also a brief stackoverflow question related https://softwareengineering.stackexchange.com/questions/304400/use-a-hash-character-or-a-dot-when-referring-to-methods-and-fields-in-software-d
23rd Jul 2021, 8:20 PM
BroFar
BroFar - avatar
0
The only article which I got after googling for your topic "does java have # symbol? " looks like # is not very important to Java
23rd Jul 2021, 6:10 PM
minirkk
minirkk - avatar