خرید بک لینک

Vote count: 0

I've been leaing Java recently and reached the following conclusion: declaring a static nested type is a meaningless redundancy.

I was reading the answers on the below question and while I do understand the answers (and it cleared my inetial confusion - similar to the one the asker had) Can a Static Nested Class be Instantiated Multiple Times? I also concluded that the word static regarding an ier type is meaningless, for example if we didn't declare the ier type as static, we still wouldn't need to instantiate the outer type to be able to create new objects of the ier type. after all its a nested type and not a member/variable of the outer type. I just tested some code (removed static) and my assumption was right.

Is there anything I missed?

asked 36 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 26 فروردين 1395 ساعت: 4:35

صفحه بندی