Like DDR4 and its predecessors, DDR5 is designed to take performance and clock speeds to the next level. DDR5 RAM will also have the same number of pins (batteries) as DDR4, which means it will have 288 pins. However, the layout of the pins will be different. This means that you will not be able to plug in a DDR5 module and a DDR4 slot, but will have to properly plug it into the DDR5 slot.
DDR4 has a 16-bank structure with 4 bank groups. Meanwhile, with DDR5, it will have 32 banks allocated to 8 groups of banks. The Burst length of DDR5 is also doubled, from 8 to 16. DDDR5 is also equipped with the Same Bank Refresh function (SBRF), which allows the PC to use the remaining banks while one bank is active.