What is the Difference Between below -For Creating Calc Document?

What is the Difference Between below -For Creating Calc Document ?

 1)  spreadsheet = ThisComponent.createInstance("com.sun.star.sheet.Spreadsheet")
 2)  doc = StarDesktop.loadComponentFromURL("private:factory/scalc", "_default", 0, args())

In Which Situation and where should i Use ?
Can Anyone Explain with Example and Code ?

Hallo

  1. is a instance of a single sheet (like sheet1, sheet2, ect)
  2. is a new spreadsheet-document from scratch
3 Likes

Thnaks, Karolus…