This question already has an answer here:
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
I am the way and the truth and the life. No one comes to the Father except through me.
Combining the passages of Romans 10:9 and John 14:6 it can be interpreted that the only way to heaven is by knowing of Christ Jesus, confessing that He is Lord and believing in the Resurrection. If this is indeed the case, what of all those who have never heard of Jesus or simply don't understand who Christ really is? Without first knowing a Christ has indeed lived, died and been resurrected, how can someone make such a confession and believe in something they haven't first heard of or truly understood. I know the year we live in, and I understand how it might, to some, seem unlikely that there are actually people who have never heard anything about Christianity. But there really are people who haven't heard the whole Gospel and some who wouldn't know what the word Gospel meant. What is to be of these people? Some of "these" people rake the neighbors leaves in the fall just to be nice, call you up to watch a game when your dog dies, talk you up when you didn't think you had it in you to meet your future wife etc etc.