Yes the persistent UDFs feature is included in 5.8.0. Also, Java UDFs require a special syntax to make them persistent. You can find examples here.
Regular way of creating Impala Java UDFs, will wipe them off from the Catalog after a restart. This is done so to be consistent with Hive.