Чашечка Java
Открыть в Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
Больше8 281
Подписчики
-124 часа
-37 дней
-7130 дней
Архив постов
8 283
Gradle и нетривиальная конфигурация
Каждый из нас знакомился с новомодными библиотеками, фреймворками, инструментами по getting started статьям из документации. В них всё складывается как по полочкам, в пёстрых красках показывается как всё просто и легко. Однако зачастую картина меняется, когда в Ваш новорожденный проект требуется подключить не одну условную библиотеку, а набор. Getting started осложняются появлением инородных элементов, и в процесс приходится подключать инстинкты. Когда за плечами многолетний опыт разработки и не один поднятый с колен проект, такая задача не видится проблемной. Однако, когда Вы делаете это в первый раз, инстинкты подводят. Впоследствии оглядываясь назад, мы жалеем о том, что в начале у нас не было опыта, который есть сейчас. Да и откуда было бы его получить? Ведь в getting started о таком не пишут, а проекты, в которых мы работаем не с самого начала, уже прошли этап становления.
Читать: https://habr.com/ru/post/677826/?utm_campaign=677826
8 283
Top 20 DevOps Interview Questions with Answers
Hello guys, if you are preparing for DevOps Engineer job interview or a Developer interview then preparing DevOps questions is quite important. I have seen a couple of DevOps related questions on Java developer interview in last a couple of years. Interviewers are now expecting you to become familiar with Cloud, DevOps and essential DevOps tools like Docker, Kubernetes, Ansible, Terraform tec. If you have been moving around looking for a way which will help you pass your DevOps interview that is around the corner, you have come to the right place at the right time.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/07/devops-interview-questions-with-answers.html
8 283
Лояльность покупателей — гигантская ответственность, а не просто технологии
Всем привет. Я Игорь, тимлид в команде, которая занимается системой лояльности в CSI. Расскажу, как работают и устроены системы лояльности в ритейле, о том, как мы создали новую архитектуру системы Set Loyalty, что применяем из фреймворков и инструментов.
Читать: https://habr.com/ru/post/677792/?utm_campaign=677792
8 283
Is it Possible to add static or private methods in Java interface?
Can you add a static or private method in an interface in Java? or is it possible to add a private or static method in Java interface? or can you add a non-abstract method on an interface in Java? are a couple of popular Java interview questions which often pop up during telephonic interviews. Well, prior to Java 8, it wasn't possible to add non-abstract methods in Javabut nowadays you can add non-abstract static, default, and private methods in the Java interface. The static and default methods were supported as part of interface evolution in Java 8 and you can add private methods on an interface from Java 9 onwards.
Java Interview questions and tutorials
Read: http://www.java67.com/2019/02/can-you-add-non-abstract-method-on-interface-in-java.html
8 283
How to use PreparedStatement in Java - JDBC Example Tutorial
PreparedStatement is used to execute specific queries that are supposed to run repeatedly, for example, SELECT * from Employees WHERE EMP_ID=?. This query can be run multiple times to fetch details of different employees. If you use PreparedStatement like above then the database assists in query preparation, which is faster and more secure. Such kinds of queries are compiled, and their query plans are cached at the database side every time you execute it, you will get a faster response as opposed to using simple queries via Statement object, like SELECT * from Employees WHERE EMP_ID + emp_id.
Java Interview questions and tutorials
Read: http://www.java67.com/2019/08/how-to-use-preparedstatement-in-jdbc-java.html
8 283
How to Create and Start Multiple Threads in Java? - Example Tutorial
Hello guys, Multithreading is one of the biggest strengths of Java, which allows you to divide a task and execute faster by using more than one thread. In order to use multiple threads in Java, you need to first define the task which will be executed by those threads. In order to create those tasks, you can either use the Runnable or Callable interface. If you are just learning Java chose the Runnable interface, it's a simpler one, but if you are familiar with Java multithreading and want to leverage additional features offered by Callable like it can throw an exception and it can also return value, then go ahead and use the Callable interface. Once you have the task ready, you need to create an instance of the Thread class.
Java Interview questions and tutorials
Read: http://www.java67.com/2016/05/how-to-use-multiple-threads-in-java.html
8 283
How to use wait, notify, and notifyAll in Java? Example Tutorial
When should you use the wait() and notify method in Java is one of the many popular questions about the wait and notify methods from Java multithreading interview questions. One of the reasons for its popularity is that still a lot of Java programmers struggle to explain and write code using wait-notify methods. Many Java developer only knows some facts about the wait and notify methods like that wait() and notify() are defined in the java.lang.Object class or you cannot call wait() without synchronization, which means without a synchronized block or synchronized method but doesn't really know when and how to use them.
Java Interview questions and tutorials
Read: http://www.java67.com/2019/05/when-and-how-to-use-wait-and-notify-in-Java.html
8 283
How to find Factorial in Java using Recursion and Iteration - Example Tutorial
Hello guys, if you are looking for a Java program to calculate factorial with and without recursion then you have come to the right place. Factorial is a common programming exercise that is great to learn to code and how to program. When I teach Java to new people, I often start with coding problems like prime numbers, Fibonacci series, and factorial because they help you to develop a coding sense and teach you how to write a program initially. In order to calculate factorial, you just need to know the factorial concepts from Mathematics, and rest I will explain this simple Java programming tutorial.
Java Interview questions and tutorials
Read: http://www.java67.com/2015/09/factorial-in-java-using-recursion-and-loop.html
8 283
Стать полноценным Java-бойцом c нуля за 3 месяца возможно
OTUS запускает буткемп «Java Developer»! В основе буткемпа — методика ускоренного обучения, построенная на ежедневных вебинарах с ведущими специалистами престижных IT-компаний. А еще много-много практики.
Что вам даст буткемп?
- фундамент практических навыков для позиции Junior+;
- опыт решения реальных задачи и работы в команде;
- первый проектный опыт;
- шанс пройти оплачиваемую стажировку в IT-компании;
- практику прохождения собеседований и помощь с трудоустройством.
После обучения у вас будет достаточно навыков, чтобы претендовать на среднюю по рынку зарплату в 105 тысяч рублей.
Что нужно, чтобы участвовать?
- 8 часов, четыре дня в неделю
- три свободных месяца, начиная с 30 августа
- современный ПК с выходом в интернет, камера и Zoom
Заявка на участие по специальной цене: https://otus.pw/TFUp/
Это #партнёрский пост
8 283
Производительность: нюансы против очевидностей. JDK edition
Привет, это продолжение статьи, в которой я разбирал разные неочевидные вещи из мира производительности. В этот раз будем копать ещё глубже, хоть и начнём с относительно простых примеров. И да, в этой статье будет много интересного про строки. Да, несмотря на "Катехихис j.l.String", "The Lord of the Strings: Two Scours" и несколько моих статей (раз, два, три, четыре) там всё ещё есть куда копать :)
Читать: https://habr.com/ru/post/672146/?utm_campaign=672146
8 283
10 Examples of ArrayList in Java for Beginners
ArrayList Example in Java
In this Java ArrayList Example, we will see how to add elements in ArrayList, how to remove elements from ArrayList, ArrayList contains Example, and several other ArrayList functions which we use daily. ArrayList is one of the most popular classes from the Java Collection framework along with HashSet and HashMap and a good understanding of the ArrayList class and methods is imperative for Java developers. ArrayList is an implementation of List Collection which is ordered and allows duplicates.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/03/10-examples-of-arraylist-in-java.html
8 283
Современная серверная разработка на языке Java: 2. Архитектура серверного приложения
В этой части мы создадим работоспособный микросервис, придерживаясь правильной архитектуры, которая обеспечивает качества, важные для промышленного проекта: гибкость, простота внесения доработок и исправления ошибок, масштабируемость.
Читать: https://habr.com/ru/post/677614/?utm_campaign=677614
8 283
Функциональные интерфейсы в Java 8 → Consumer, Supplier, Predicate и Function. Что к чему и зачем нужны
Java представила поддержку функционального программирования в выпуске Java версии 8. В этой статье мы разбираем несколько функциональных интерфейсов, а именно: Потребитель (Consumer), Поставщик (Supplier), Предикат (Predicat) и Функция (Function), которые являются наиболее важными.
Читать: https://habr.com/ru/post/677610/?utm_campaign=677610
8 283
Учитесь программировать на курсе «Профессия Java-разработчик»
Всего за 9 месяцев вы пройдёте путь от новичка до junior-специалиста и сможете зарабатывать до 100 000 рублей уже в начале карьеры.
Вы с нуля освоите Java, SQL, Spring и Git. Создадите поисковый движок для портфолио и примете участие в командной стажировке — вместе с другими участниками курса и тимлидом разработаете социальную сеть.
Бонусы для участников курса:
— первые полгода — бесплатно;
— через 4 месяца сможете устроиться junior-разработчиком;
— удобная рассрочка и скидка;
— гарантия трудоустройства от Центра карьеры Skillbox. Если вы не выйдете на работу, мы вернём вам деньги за курс;
— год бесплатного английского.
Также для IT-специалистов действуют специальные плюшки от государства!
Переходите по ссылке, чтобы узнать подробности и оставить заявку на курс: https://clc.to/Rmho-A
Это #партнёрский пост
8 283
Kafka и Chronicle Queue
Хотя облачные сервисы удобны и гибки, эксплуатационные затраты на приложения, развёрнутые в облаке, иногда могут быть существенными. В этой статье мы расскажем о способе существенного снижения эксплуатационных затрат в чувствительных к задержке Java-приложений с Event-Driven Architecture (EDA) при помощи миграции с Kafka на Chronicle Queue — опенсорсной, более эффективно использующей ресурсы реализации очереди с пониженной задержкой.
Что такое EDA?
EDA-приложение — это распределённое приложение, в котором выполняется создание, распознавание и потребление событий (в виде сообщений или DTO), а также реагирование на них. «Распределённое» означает, что приложение может выполняться на разных машинах или на одной машине, но в отдельных процессах или потоках. В этой статье используется последний вариант, а сообщения сохраняются в очередях.
Читать: https://habr.com/ru/post/677454/?utm_campaign=677454
8 283
Article: Gatling vs JMeter - What to Use for Performance Testing
A performance tool with a graphical interface will probably be easier to use at the beginning, but the idea of a performance test as code is the future. Tests are readable and much easier to maintain. Many people are skeptical about Gatling because it requires learning a new programming language - Scala. However, Java is supported with the release of Gatling 3.7.
By Andrzej Ludwikowski
Read: https://www.infoq.com/articles/performance-testing/
8 283
7 reasons Java is still great
Read: https://www.infoworld.com/article/3666525/7-reasons-java-is-still-great.html#tk.rss_java
8 283
Kafka и Chronicle Queue
Хотя облачные сервисы удобны и гибки, эксплуатационные затраты на приложения, развёрнутые в облаке, иногда могут быть существенными. В этой статье мы расскажем о способе существенного снижения эксплуатационных затрат в чувствительных к задержке Java-приложений с Event-Driven Architecture (EDA) при помощи миграции с Kafka на Chronicle Queue — опенсорсной, более эффективно использующей ресурсы реализации очереди с пониженной задержкой.
Что такое EDA?
EDA-приложение — это распределённое приложение, в котором выполняется создание, распознавание и потребление событий (в виде сообщений или DTO), а также реагирование на них. «Распределённое» означает, что приложение может выполняться на разных машинах или на одной машине, но в отдельных процессах или потоках. В этой статье используется последний вариант, а сообщения сохраняются в очередях.
Читать: https://habr.com/ru/post/676804/?utm_campaign=676804
8 283
How to check If two Strings Array are equal in Java? Example Tutorial
Hello guys, if you are wondering how to check if two given String array are equal, I mean they contain same number of elements with same values and looking for solution then you have come to the right place. In the past, I have shared several coding questions on different data structures like linked list, binary tree, string, and even system design and today, we shall be working with arrays, Oh arrays are so pretty! And it’s very simple to learn. Having understood the concept of arrays the goal is to be able to check if two String arrays are equivalent.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/01/how-to-check-if-two-strings-array-are.html
8 283
How to use WeakHashMap in Java? Example Tutorial
Hello friends, we are here today again on our journey to Java. I hope everyone is fine and ready to board our train of knowledge. Today we are gonna learn something very interesting and very exciting. Today's topic will definitely be very useful in coding and programming. This topic would surely decrease your time complexity, and space requirements for any task very significantly :p So what's the wait? Let's start!
As always, we will start understanding today's topic by a scenario. But, before that, you guys must know what a HashMap is. So, go through the HashMap article before jumping on this one, and you will get a better understanding of today's article. For the guys who have already gone through HashMap before, let me give a brief intro and what a HashMap is so we all can refresh the topic easily.
Java Interview questions and tutorials
Read: http://www.java67.com/2021/10/how-to-use-weakhashmap-in-java-example.html
