Step 1: Understanding the Concept
A niche is the functional role of an organism in its habitat.
Step 2: Check each statement
(A) is true: niche is the functional role of an organism.
(B) is false: by competitive exclusion, species cannot share the same niche for long.
(C) is true: a vacant niche gets filled by other organisms.
(D) is true: niche includes the role in energy flow.
(E) is true: species in one habitat differ in their niches.
Step 3: Compare the options
The correct statements are (A), (C), (D) and (E).
Final Answer:
Statements (A), (C), (D) and (E) only are correct.
\[ \boxed{\text{(D) }\text{(A), (C), (D) and (E) only.}} \]