Apache POI Creating MS Word
To create a new Microsoft word file, Apache POI provides XWPFDocument class. This class is used in Java program to handle the word document.
See, in this following example, we are creating a word file Javatpoint.docx.
Apache POI Creating MS Word Example
This example creates a .doc extension file having name Javatpoint.docx.