    

 ## On this page

  

 

 # getFileExtension

 Last update: 16.07.2025 

public [getFileExtension](get-file-extension.md)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)

gets the extension used for the file (used to associate the file with an application).

#### Return

the file extension, e.g. ".xls"

#### Throws

[ModelCenterException](../-model-center-exception/index.md)