+ 1

Can I declare variables in interface

11th Oct 2021, 2:18 PM
maha Lakshmi
maha Lakshmi - avatar
3 Respuestas
+ 3
May contain only static final variables. https://www.sololearn.com/learn/Java/2167/?ref=app
11th Oct 2021, 2:23 PM
Stefanoo
Stefanoo - avatar
+ 3
maha Lakshmi Yes you can make static and final variable.
11th Oct 2021, 2:31 PM
A͢J
A͢J - avatar
+ 1
Thanks!
11th Oct 2021, 2:57 PM
maha Lakshmi
maha Lakshmi - avatar