- 2
is '#' used anywhere is Java?
5 Réponses
+ 3
Yeah, if you're lazy to write HashMap
#Map
+ 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". 😜
+ 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?
+ 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
0
The only article which I got after googling for your topic "does java have # symbol? "
looks like # is not very important to Java