Week 16 Day 2 - Java for C++ programmers смотреть онлайн
Today we went over the basics of the Java languages. The core language is very, very close to C++, with a few differences. In short, if you know C++, then you know most of Java. The key differences in the language are:
1) No unsigned integers and some small differences in primitive types
2) No public or private sections, but rather each member is tagged as public, private, protected or nothing (nothing means private, but public to other classes in your package)
3) Everything is in a class - no global (free) functions or variables
4) Everything is bounds checked by the Java virtual machine. You can't have a dangling pointer or go out of bounds or do a double free in Java.
5) Every class inherits from one class (if you don't specify one, it will inherit from Object, the Java superclass)
6) Every non-primitive variable is new-ed, and is a pointer. They don't look like pointers, but regular variables, but they're secretly just pointers under the hood. They can be set to null, for example.
The *biggest* difference between Java and C++ though are in the standard libraries. Instead of cout, we use System.out.println(). Instead of a vector, we use ArrayList. Instead of using the mt19937 nonsense in C++, we call Math.random(). Instead of using doing networking with sockets from the ancient C library (because C++ has no networking in the standard library), we use the Socket and ServerSocket classes. And so forth.
Basically, to do Java programming, coming from C++, you just google, "How do I do X in Java" and have at it. Takes a few minutes to get used to a slightly different workflow, but it's worth the investment.
Oh, and in C++ we talked about [[deprecated]] and [[nodiscard]] which are nice things to know.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Week 16 Day 2 - Java for C++ programmers» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.