Telegram Group & Telegram Channel
Вопрос с собеседования

Может ли класс быть static?

Ответ: static может быть только вложенный класс, то есть объявленный внутри другого класса. Такой класс создаётся без экземпляра внешнего класса и не имеет доступа к его нестатическим полям и методам. Внешний класс объявлять static нельзя — это синтаксически запрещено.

tags: #собеседование

📱 Java Developer  | Чат
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/java_tg/2849
Create:
Last Update:

Вопрос с собеседования

Может ли класс быть static?

Ответ: static может быть только вложенный класс, то есть объявленный внутри другого класса. Такой класс создаётся без экземпляра внешнего класса и не имеет доступа к его нестатическим полям и методам. Внешний класс объявлять static нельзя — это синтаксически запрещено.

tags: #собеседование

📱 Java Developer  | Чат

BY Java Developer


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_tg/2849

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

The STAR Market, as is implied by the name, is heavily geared toward smaller innovative tech companies, in particular those engaged in strategically important fields, such as biopharmaceuticals, 5G technology, semiconductors, and new energy. The STAR Market currently has 340 listed securities. The STAR Market is seen as important for China’s high-tech and emerging industries, providing a space for smaller companies to raise capital in China. This is especially significant for technology companies that may be viewed with suspicion on overseas stock exchanges.

The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.

telegram from jp


Telegram Java Developer
FROM USA