79650220

Date: 2025-06-02 19:25:56
Score: 0.5
Natty:
Report link

Java packages are folders too. If you mark a directory of folder as sources root then folders inside (subdirectories) will be treated as packages. Currently it is not supported in IntelliJ-IDEA that folders inside a sources root will be treated as normal folders rather than packages.

Furthermore you can add resources like images or other files inside a Java Package but it isn't encouraged practice. There is dedicated resources folder for that purpose. Also note that there is no such thing as bot modules in Java.

A helpful blog: Read File from resources folder

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Yasin Ahmed