What is different b/w public and static? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What is different b/w public and static?

5th Jul 2016, 4:15 AM
Ankit kumar Mishra
Ankit kumar Mishra - avatar
2 Respuestas
0
both totally different concepts......public mean you can access the method or class anywhere .....and static mean...you can use static variable,method without creating any object..........
5th Jul 2016, 6:59 AM
Ramesh Balianwal
0
@Ramesh Balianwal thankyou
6th Jul 2016, 4:23 AM
Ankit kumar Mishra
Ankit kumar Mishra - avatar