You get social welfare money if you have no job. There is a discussion if it is enough or not, but the state pays your rent in Germany and noone needs to die because of hunger [1].
[1] There are quite some people living on the street though - especially in larger cities - who for various reasons can't or won't claim their social welfare money.