Demand paging is a memory management technique that allows non-contiguous allocation of physical memory by only loading pages into memory when demanded by a process, contrasting with full swapping. Advantages include reduced loading latency and better memory utilization, while disadvantages involve increased latency for initial page access and potential security risks. The technique is facilitated by a page table that maps logical to physical memory and tracks page validity.