The ? is related to the type conversion feature offered by modern object-oriented programming languages, where the data type of an entity is changed to another. code example
Example: object oriented programming languages
Object oriented programming languages include:
Java
JavaScript
Python
C++
Visual Basic .NET
Ruby
Scala
PHP
These are just the main ones, there's much more out there.