Wells Fargo interview question

which one will you prefer Stored procedure vs. Java code for crunching data ? and why?