Meursault is largely indifferent to everything. After his arrest and during the course of his trial, he comes to realize that death doesn't matter.
In his jail cell, wondering if his appeal will be rejected or denied, he thinks through the consequences if it is denied. He will be executed, but he comes to the conclusion that it doesn't matter whether he dies at thirty or seventy. He notes that other people will go on living; the world will flow onward. The only thing that he has to quell is the "delicious joy" at the idea of having decades more of life. In the end, however, he concludes:
Since we're all going to die, it's obvious that when and how don't matter.
A little later, the chaplain, to Meursault's annoyance, comes to see him. He tells the chaplain that he doesn't believe in God. The chaplain argues that embracing faith could give him comfort. Meursault says that he doesn't need that comfort and tells the chaplain he is willing to face death head on, without "consolation." The chaplain tells him that he pities Meursault, but that only irritates Meursault.
As he accepts the inevitability of death, Meursault experiences freedom and a sense of happiness. He realizes that grasping attempts to hold on to life are futile and only create anxiety and the illusion that death, which is inevitable, can be avoided.