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

Может ли интерфейс содержать поле?

Ответ: Интерфейс в Java может содержать только поля-константы. Все поля в интерфейсе неявно считаются public static final, даже если эти модификаторы не указаны явно. Это означает, что значение должно быть задано при объявлении и не может быть изменено.

Экземплярные (не static) поля в интерфейсах невозможны, потому что интерфейсы не могут хранить состояние. Они предназначены только для описания поведения, а не данных.


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

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



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

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

Может ли интерфейс содержать поле?

Ответ: Интерфейс в Java может содержать только поля-константы. Все поля в интерфейсе неявно считаются public static final, даже если эти модификаторы не указаны явно. Это означает, что значение должно быть задано при объявлении и не может быть изменено.

Экземплярные (не 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/2831

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

NEWS: Telegram supports Facetime video calls NOW!

Secure video calling is in high demand. As an alternative to Zoom, many people are using end-to-end encrypted apps such as WhatsApp, FaceTime or Signal to speak to friends and family face-to-face since coronavirus lockdowns started to take place across the world. There’s another option—secure communications app Telegram just added video calling to its feature set, available on both iOS and Android. The new feature is also super secure—like Signal and WhatsApp and unlike Zoom (yet), video calls will be end-to-end encrypted.

Look for Channels Online

You guessed it – the internet is your friend. A good place to start looking for Telegram channels is Reddit. This is one of the biggest sites on the internet, with millions of communities, including those from Telegram.Then, you can search one of the many dedicated websites for Telegram channel searching. One of them is telegram-group.com. This website has many categories and a really simple user interface. Another great site is telegram channels.me. It has even more channels than the previous one, and an even better user experience.These are just some of the many available websites. You can look them up online if you’re not satisfied with these two. All of these sites list only public channels. If you want to join a private channel, you’ll have to ask one of its members to invite you.

telegram from ca


Telegram Java Developer
FROM USA