It means that one should never lose hope because nothing is ever completely dark, there is always something good to which we can cling.
Pip was a moderately happy, satisfied young man until he met Miss Havisham and Estella. So this transformed him by in light of the fact that this is the first occasion when anybody has ever constructed Pip mindful of the distinctions in social status and riches. He feels hurt and confounded. From this day forward, he sustains a developing abhorrence for the existence he already needed. Presently his attention is on turning into a refined man, somebody Estella will admore, regard, and maybe cherish.
Because just putting answers