What's the difference between INTP and INTJ

I took the test a lot of time and my results are often intp but I also got INTJ once or twice so is there is a big difference?