Can property files have any file extension

file-extension, java, properties-file

Solution

Yes, you can give property files any name.

The benefit of using a recognized file type is that humans and computers have an idea of the contents will be without looking at the actual content.

Problem

Can property files have any file extension, like `.txt`? Or will they only work properly with `.properties`? Can I use a custom file extension, like `.foo`?

Original source