Which type of paper is best for computer science, journal or conference? Paper submissions always put weight on our resume, specifically for students who are applying for a Ph.D.  Conference papers are different from journal papers, at least in few cases.  Which one puts more weight on our resume? For example, if two students have same level of qualifications except one student has a journal paper and the other one has a conference paper, which one gets higher priority?

I'm a computer science graduate, very much interested in publishing a paper. I just wanted to know the pros and cons of paper submission, and more specifically the advantages of journal paper vs. conference paper.
Computer science is a bit of a special case, in that high-profile conferences can be even better than high-profile journals.
Here's an in-depth discussion.

But it's still important to get journal publications because the rest of the scientific community (including perhaps the chair of your department) tends to believe they're better.

Now this distinction is only important once you have a few publications already. 

Also, one of the advantages of conferences is that they have set deadlines and processing times, constrained by the conference dates, whereas journal submissions can take months and months to be processed.