Чашечка Java
前往频道在 Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
显示更多8 282
订阅者
-124 小时
-37 天
-7130 天
帖子存档
8 282
Faster Startup Time and Lower Memory Usage: New CRT HTTP Client in AWS SDK for Java
AWS recently announced the general availability of the Common Runtime (CRT) HTTP Client in the AWS SDK for Java 2.x. The new asynchronous client provides faster SDK startup time and a smaller memory footprint improving Lambda serverless workloads.
By Renato Losio
Read: https://www.infoq.com/news/2023/02/aws-sdk-java-crt-client/
8 282
Android 14 Brings Partial Support for OpenJDK 17, Improved Privacy and Security, and More
Google has announced the first Android 14 beta, which provides support for over 300 OpenJDK 17 classes. Additionally, it implements a number of features aimed to keep malicious apps at bay and extends support for foldable form factors, battery usage optimization, and more.
By Sergio De Simone
Read: https://www.infoq.com/news/2023/02/android-14-preview/
8 282
Docker, Maven lead the way in packages
Read: https://www.infoworld.com/article/3687747/docker-maven-lead-the-way-in-packages.html#tk.rss_java
8 282
How to send Email in Java using Spring Framework? JavaMailSenderImpl Example Tutorial
Hello guys, if you want to send emails from your Java application and looking for a Java + Spring Framework tutorial to send emails then you have come to the right place. Earlier, I have shared the free spring framework online courses, and today, I am going to share how to send Emails in the Java application using Spring Framework and JavaMailSenderImpl class which makes it really easy to send emails from Java application. Email is one of the essential function of any enterprise Java application. Your application will need Email functionality to send reminders, bills, payments, confirmations, passwords, alerts, and several other kinds of system notifications.
Java Interview questions and tutorials
Read: http://www.java67.com/2019/10/how-to-send-email-in-java-using-spring.html
8 282
Java News Roundup: JDK 20 RC1, Open Liberty, Micronaut, Helidon, Hibernate, Groovy, Grails
This week's Java roundup for February 6th, 2023 features news from OpenJDK, JDK 20, JDK 21, Open Liberty 23.0.0.1 and 23.0.0.2-beta, Helidon 3.1.1, Quarkus 2.16.2 and 3.0.0.Alpha4, Micronaut 3.8.4, Hibernate ORM 6.2, 6.1.7 and 5.6.15, Grails 5.3.0, Apache Groovy 4.0.9 and 3.0.15, Apache Camel 3.20.2, Eclipse Vert.x 4.3.8, Gradle 8.0.0-RC5, Jarviz 0.2.0, Kotlin K2 compiler and Jfokus conference.
By Michael Redlich
Read: https://www.infoq.com/news/2023/02/java-news-roundup-feb06-2023/
8 282
Мессенджеры на работе — это не прокрастинация, или как мы сделали сервис для автотестирования. Часть 2
Это вторая часть статьи «Мессенджеры на работе — это не прокрастинация, или как мы сделали сервис для автотестирования». Как и обещали, в данной статье мы расскажем о том, как масштабировали наш сервис, как развивали функциональность автотестов и как в итоге вышли за рамки обычного репорт-бота.
Читать: https://habr.com/ru/post/716694/?utm_campaign=716694
8 282
How to ArrayList of Objects by Fields in Java? Custom and Reversed Order Sorting using Comparator Example
There are a lot of examples of Sorting ArrayList in Java on the internet, but most of them use either String or Integer objects to explain sorting, which is not enough, because in real-world you may have to sort a list of custom objectslike your domain or business objects like Employee, Book, Order, Trade, etc. In order to sort an ArrayList of custom or user-defined objects, you need two things, first a class to provide ordering and a method to provide sorting. If you know about ordering and sorting in Java then you know that the Comparable and Comparator class is used to provide the ordering for objects.
Java Interview questions and tutorials
Read: http://www.java67.com/2017/07/how-to-sort-arraylist-of-objects-using.html
8 282
Лучшие библиотеки Java для тестирования в 2023 году
Большинство из нас стремятся быть более эффективными, действенными и содержательными в тестировании. И мы делаем все необходимое для этого. Лучший способ сделать это — проводить автоматизированное тестирование вместо ручного. И, конечно же, мы хотели бы знать все современные тенденции в мире автоматизации. Только так мы можем быть на вершине нашей профессии.
Читать: https://habr.com/ru/post/716444/?utm_campaign=716444
8 282
Server-Sent Events в java. От любви до ненависти…
Я работаю на проекте, цель которого это некая пост-обработка финансовых операций. Это большая система, со множеством модулей и различными интеграциями с другими системами из которых к нам и попадают эти операции. У нас есть АРМ, он же веб-версия, он же фронтенд, для пользователей, которые как раз и занимаются этой пост-обработкой. Где-то около года назад появилась потребность оповещать пользователей о появлении новых операций в системе. SSE(Server-Sent Events), в данном случае, казался самым логичным и простым вариантом. Мне выпала честь реализовывать эту фичу на стороне сервера. Как оказалось, в русскоязычном сегменте достаточно мало информации об SSE в стеке java, поэтому я решил оформить свой опыт в эту статью, в ней я постараюсь осветить процесс и особенности реализации технологии в стеке java. Итогом данной статьи будет простой MVP, который умеет работать с SSE.
Читать: https://habr.com/ru/post/716544/?utm_campaign=716544
8 282
С чего начать обучение в IT и как не потратить деньги зря на ненужные курсы?
Специально для новичков, GeekBrains откроет доступ к лекциям и практикуму из программы стоимостью 23 500 рублей.
Курс поможет бесплатно изучить основы программирования, получить базу для любой цифровой профессии и попробовать себя в топовых IT-специальностях.
Узнайте подробнее и получите доступ бесплатно прямо сейчас:
https://tprg.ru/hSpG
Реклама ООО «Гикбреинс»
8 282
Пошаговая отладка, inline-методы, JVM
В Java, как известно, inline-методов нет. Но такое понятие существует в других языках, исполняющихся на JVM. Например, в Scala или Kotlin. Во время компиляции вызов такого метода заменяется на его тело, как если бы разработчик написал этот код вручную.
Прекрасный инструмент для добавления синтаксического сахара и создания проблемно-ориентированных языков (DSL) малой ценой, но как это всё отлаживать?
С тем, какие ухищрения помогают не замечать расхождения исходного текста программы и её байткода во время отладки и предлагаю разобраться.
Читать: https://habr.com/ru/post/716426/?utm_campaign=716426
8 282
How to Delete Objects from ArrayList in Java? ArrayList.remove() method Example
Hello guys, if you are wondering how to remove an element from a given ArrayList in Java then you are at right place. Earlier, I have shared how to sort ArrayList in Java as well how to loop over ArrayList in Java and In this Java ArrayList tutorial, you will learn how to remove elements from ArrayList in Java e.g. you can remove String from ArrayList of String or Integer from ArrayList of Integers. There are actually two methods to remove an existing element from ArrayList, first by using the remove(int index) method, which removes elements with a given index, remember the index starts with zero in ArrayList.
Java Interview questions and tutorials
Read: http://www.java67.com/2015/06/how-to-remove-elements-from-arraylist.html
8 282
How to convert an ArrayList to Array in Java? Example
Hello guys, if you are wondering how to convert an ArrayList of objects to an array of Object in Java then you have come at the right place. In this article, I will show you a couple of ways to convert an ArrayList to Array in Java. For example, you can start with creating a new array and then copying elements from ArrayList to array, or you can also use use Stream to go through all elements of ArrayList and then collect result in an array. In this example, we will use Arrays.copyOf()method to convert a given ArrayList to array in Java. This method can be used to convert any ArrayList like ArrayList of Integer, String or any custom object to Array in Java.
Java Interview questions and tutorials
Read: http://www.java67.com/2012/09/java-program-to-convert-string-arraylist-to-string-array.html
8 282
ArrayList.contains(), size(), clear, asList(), subList(), toArray(), and isEmpty() Example in Java
Java ArrayList Example
ArrayList in Java is one of the most popular Collection classes. ArrayList is an implementation of the List interface via AbstractList abstract class and provides an ordered and an index-based way to store elements. Java ArrayList is analogous to an array, which is also index-based. In fact, ArrayList in Java is internally backed by an array, which allows them to get constant time performance for retrieving elements by index. Since an array is fixed length and you can not change their size, once created, Programmers, starts using ArrayList, when they need a dynamic way to store object, i.e. which can re-size itself. See the difference between Array and List for more differences.
Java Interview questions and tutorials
Read: http://www.java67.com/2013/03/java-arraylist-how-to-example-and.html
8 282
Top Java Blogs Weekly: Best of 7/2023
Best of Top Java Blogs, year 2023, week 7
Read: https://www.topjavablogs.com/news/best-of-7-2023
8 282
Срочно нужны талантливые разработчики!
18-19 февраля VK проведёт Weekend Offer для мобильных разработчиков, ML-разработчиков на Python и Java-разработчиков, которые хотят развиваться в направлении ML. Если Swift и Kotlin для вас не пустой звук, либо умеете применять Java или Python для машинного обучения, то вы знаете, как провести следующие выходные.
Участникам, получившим заслуженные офферы, предстоит заняться развитием сервисом компании в командах Дзена, Почты Mail.ru, Антиспама и Маруси.
Оставить заявку можно до 16 февраля включительно, так что не теряйте времени: https://tprg.ru/gyI2
Реклама ООО "ВКонтакте"
8 282
How to read a File line by line in Java 8 ? BufferedReader lines() + Stream Examples
Hello guy, if you are wondering how to read a file line by line in Java but not sure which class to use then you have come to the right place. Earlier, I have showed you how to read Excel file in Java using Apache POI API and in this article, I am going to tell you about a useful method from BufferedReader class, the lines() method which can be used to read a file line by line. The BufferedReader.lines() is kind of interesting, letting you turn a BufferedReader into a java.util.Stream in Java 8. This is a very powerful thing as it allows you to tread a file as a stream and then you can apply all sorts of Stream methods like map, count, flatMap, filter, distinct, etc to apply the powerful transformation. We will actually see examples of those in this article by finding out the longest line from the file and printing each line of the file.
Java Interview questions and tutorials
Read: http://www.java67.com/2020/09/bufferedreader-lines-stream-example-in-java-8.html
8 282
Difference between HashSet, TreeSet, and LinkedHashSet in Java
Hello guys, in the last article, we have learned about difference between HashMap, TreeMap, and LinkedHashMap and in this article, we are going to learn about difference between HashSet, TreeSet, and LinkedHashSet in Java, another popular Java interview questions for 1 to 2 years experienced developers. If you are doing Java development work then you know that LinkedHashSet, TreeSet, and HashSet are three of the most popular implementations of the Set interface in the Java Collection Framework. Since they implement a Set interface, they follow its contracts for not allowing duplicatesbut there is a key difference between them in terms of ordering of elements. For example,HashSet doesn't maintain any order, while TreeSet keep elements in the sorted order specified by external Comparator or comparison logic defined in the objects' natural order. Similarly, LinkedHashSet keep the elements into the order they are inserted.
Java Interview questions and tutorials
Read: http://www.java67.com/2014/01/when-to-use-linkedhashset-vs-treeset-vs-hashset-java.html
