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: |

However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.

Traders also expressed uncertainty about the situation with China Evergrande, as the indebted property company has not provided clarification about a key interest payment.In economic news, the Commerce Department reported an unexpected increase in U.S. new home sales in August.Crude oil prices climbed Friday and front-month WTI oil futures contracts saw gains for a fifth straight week amid tighter supplies. West Texas Intermediate Crude oil futures for November rose $0.68 or 0.9 percent at 73.98 a barrel. WTI Crude futures gained 2.8 percent for the week.

telegram from it


Telegram Java Developer
FROM USA