Чашечка Java
Открыть в Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
Больше8 552
Подписчики
-224 часа
-227 дней
-2630 день
Архив постов
8 552
Oracle Introduces a New Java SE Universal Subscription
Oracle has introduced the new Java SE Universal subscription and pricing, replacing the now legacy Java SE and Java SE Desktop subscriptions as of January 2023. According to the FAQ released by Oracle, this new change should simplify tracking and management of licensed environments since the permitted use is universal across desktops, servers, and third-party clouds.
By Shaaf Syed
Read: https://www.infoq.com/news/2023/03/new-java-licensing-by-oracle/
8 552
Java News Roundup: JDK 20 Released, Spring Releases, Quarkus, Helidon, Micronaut, Open Liberty
This week's Java roundup for March 20th, 2023 features news from OpenJDK, JDK 20, JDK 21, Amazon Corretto 20, BellSoft Liberica JDK 20, multiple Spring milestone and point releases, Quarkus 3.0.0.Beta1 and 2.16.5, Helidon 3.2.0, Open Liberty 23.0.0.3-beta, Micronaut 4.0.0-M1, Camel Quarkus 3.0.0-M1, JBang 0.105.1, Failsafe 3.3.1, Maven 3.9.1 and Gradle 8.1-RC1.
By Michael Redlich
Read: https://www.infoq.com/news/2023/03/java-news-roundup-mar20-2023/
8 552
How to setup Request timeout in Spring Boot REST API? Example Tutorial
Hello guys, if you are wondering how to setup request timeout in your REST API using Spring boot then you have come to the right place. First thing first, when you make a request to another API in production, you must add timeout as there is no guarantee that you will receive response in time. Today we are going to take a look at setting up request timeout in Spring Boot Rest API. Before making it into the topic. Let’s first understand a few terms here. What is a Request timeout? A Request timeout is a deadline for services to respond to requests. It ended up returning an error with status 504 if the request fail to respond within the specified time.Request timeouts can help prevent a bad user experience, especially when a request is taking a long to respond to. There are various ways to set request timeout in Spring Boot.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/03/how-to-setup-request-timeout-in-spring.html
8 552
Top 40 Core Java Interview Questions Answers from Telephonic Round [UPDATED]
Hello guys, here is another post about preparing for Java Interviews, this time we will take a look at 40 core Java questions from the telephonic roundof Java Programming interviews. Phone interviews are usually the first step to screen a candidate after selecting his resume. Since it's easy to call a candidate than to schedule a face-to-face interview, book rooms, and arrange for a meeting, a telephonic round of interviews is quite popular nowadays. There were days only one telephonic round of interviews was enough but nowadays, it's almost two and three rounds of phone interviews with different team members before you get a chance for face-to-face interviews.
Java Interview questions and tutorials
Read: http://www.java67.com/2015/03/top-40-core-java-interview-questions-answers-telephonic-round.html
8 552
Difference between Abstraction and Encapsulation in Java and Object Oriented Programming? [Answer]
The difference between Abstraction and Encapsulation in Java is a common question in Java interviews for Beginners to check their understanding of Object-Oriented Programming and their ability to use them. Abstraction and Encapsulation in Java are two important Object-oriented programming concepts and they are completely different from each other. The only similarity between Abstraction and Encapsulation is that they are OOP concepts, other than that they mean two different things, but there is a confusing thing, both hide details to simplify things but for different reasons.
Java Interview questions and tutorials
Read: http://www.java67.com/2012/08/difference-between-abstraction-and-encapsulation-java-oops.html
8 552
Как запустить Java-приложение с помощью CRaC в контейнере Docker
CRaC (Coordinated Restore at Checkpoint) — это проект OpenJDK, разработанный Azul для решения проблемы «медленного» запуска виртуальной машины Java в микросервисной среде.
Когда JVM запускает код вашего приложения, она выполняет такие действия, как интерпретация, компиляция и оптимизация кода, чтобы ваше приложение работало как можно быстрее при заданной рабочей нагрузке. Это здорово, но может занять некоторое время, и особенно при запуске короткоживущих микросервисов, вы не хотите ждать, пока JVM создаст наиболее оптимизированный код.
В механизме восстановления контрольной точки (checkpoint-restore) нет ничего нового, и большинство из вас уже знают и используют его ежедневно.
Если вы работаете на ноутбуке и закрываете крышку, операционная система обнаруживает это и сохраняет текущее состояние на диск. Как только вы снова открываете крышку, операционная система восстанавливает сохраненное состояние с диска.
CRaC предоставляет тот же механизм, но для JVM и вашего запущенного приложения.
Вы запускаете свое приложение, применяете к нему некоторую рабочую нагрузку (чтобы убедиться, что важные части вашего кода будут затронуты и оптимизированы JVM), а затем создаете контрольную точку. Это приведет к закрытию всех открытых ресурсов, таких как открытые файлы и сокетные соединения, а затем сохранит состояние JVM, включая ваше приложение, на диск.
После этого вы сможете восстанавливать состояние JVM, включая состояние вашего приложения, из этой сохраненной контрольной точки так часто, как вам захочется.
Таким образом, CRaC не только решает проблему времени запуска, но и может решить проблему времени разогрева приложения, поскольку вы можете создавать контрольную точку в любое время.
Читать: https://habr.com/ru/post/719522/?utm_campaign=719522
8 552
31 марта МТС собирает крупнейшую в России IT-конференцию TRUE TECH DAY
Почему сейчас? Потому что давно пора показать, что скрывают «под капотом» топовые продукты продвинутых технологичных компаний. Каждый участник конференции протестит на себе true-технологии и испытает новые впечатления, меняющие мир пользователей.
Что будет:
— 7 треков: AI, Main Track, Big Data, Architecture, Cybersecurity, Leading Change, Product Manager;
— 50+ мировых спикеров с топовыми темами без воды и лирики;
— 10 часов нетворкинга и обмена опытом в Москве, Дубае, Тбилиси и Астане;
— много интерактивных и цифровых зон;
— а после — грандиозная вечеринка со звездным лайн-апом.
Участие бесплатно. Узнайте подробнее о спикерах, темах и регистрируйтесь на True Tech Day: https://tprg.ru/y7En
Это #партнёрский пост
8 552
4 Ways to Check if String is Integer in Java
Read: https://www.thejavaprogrammer.com/check-if-string-is-integer-in-java/
8 552
Top 40 Binary Tree Coding Interview Questions for Programmers
Hello guys, if you are preparing for coding interviews and want to master tree-based questions then you have come to the right place. A tree is one of the most important data structures because it allows you to store hierarchical data as opposed to an array and linked list which allows storing linear data. That's why knowledge of tree data structure is very important from an interview point of view. A lot of programmers and my readers have been asking me to share some binary tree-based coding interview questions, just like I have done for the array, linked list, string, software design, patterns, hash table, and data structure in general.
Java Interview questions and tutorials
Read: http://www.java67.com/2020/02/top-40-binary-tree-interview-questions.html
8 552
Top Java Blogs Weekly: Best of 13/2023
Best of Top Java Blogs, year 2023, week 13
Read: https://www.topjavablogs.com/news/best-of-13-2023
8 552
Differences Between JPA, Hibernate, and MyBatis
Hello guys Are you tired of using plain old SQL to access your database? Are you looking for a better way to manage your database interactions in Java? Well, you're in luck because JPA, Hibernate, and MyBatis are here to save the day! If you're a Java developer, you've likely come across the terms JPA, Hibernate, and MyBatis when working with databases. While they all deal with object-relational mapping (ORM), they have their own distinct approaches and features. Understanding the differences between them can help you make informed decisions when choosing which one to use for your projects.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/03/differences-between-jpa-hibernate-and.html
8 552
Честный обмен: станьте Java-разработчиком, а обучение оплатите только после трудоустройства в Москве или Питере
За 9 месяцев на курсе от Kata вы освоите самый востребованный стек технологий и получите навыки командной работы на реальных бизнес-проектах. Разумеется, на каждом шаге обучения вас будет сопровождать наставник.
К тому же ты попадешь в сильное сообщество студентов и выпускников, которые помогут двигаться быстрее во время учебы и продвигаться по карьерной лестнице после трудоустройства.
Успейте записаться на поток: https://tprg.ru/iWH3
Реклама ИП Севостьянов Герман Дмитриевич LjN8K4QW5
8 552
Top 30 OOP (Object Oriented Programming) Interview Questions Answers in Java
Java is an object-oriented programming language and you will see a lot of object-oriented programming concept questions in Java interviews. The classic questions like the difference between an interface and abstract class are always there but from the last couple of years more sophisticated questions based upon advanced design principles and patterns are also asked to check the OOP knowledge of the candidate. Though, Object-oriented programming questions are more popular on Java interviews for 1 to 3 years experiencedprogrammers.
Java Interview questions and tutorials
Read: http://www.java67.com/2015/12/top-30-oops-concept-interview-questions-answers-java.html
8 552
Top 10 Object Oriented Programming Concepts Every Programmer Should Learn
Object-oriented programming (OOP) is a programming style that is used to solve the problem by thinking in terms of real-world objects like Car, Bag, Animal, etc. It also helps you to organize code, which makes it easier to understand and solve complex programs. Objects hold information about stateand behavior. States are the characteristics of the object, or the words you would use to describe it, and usually, take the form of is or has descriptors. A computer is either on or off, a chair has four legs, and you have a name. Behaviors are the things the object can do, or the actions the purpose can perform and are usually verbs that end in ing like You are sitting, using a computer, and reading this article.
Java Interview questions and tutorials
Read: http://www.java67.com/2020/02/top-10-object-oriented-programming-concepts-fundamentals.html
8 552
Can You Override Private Method in Java? Inner Class?
No, you cannot override private methods in Java, private methods are non-virtual in Java and access differently than non-private one. Since method overriding can only be done on derived class and private methods are not accessible in a subclass, you just can not override them. By the way, one more possibility of overriding private methods in an inner class, since private methods are accessible in an inner class, and that’s why it is one of the tricky java interview questions. Anyway, this will also not work because private methods are bonded during compile time and only Type (or Class) is used to locate a private method.
Java Interview questions and tutorials
Read: http://www.java67.com/2013/08/can-we-override-private-method-in-java-inner-class.html
8 552
Сказка о типизации
В некотором царстве, в некотором государстве жил был царь. Как-то раз объявил царь всему народу - "Кто решит три моих задачки, тот сам сможет царём стать". И даже контракт метода опубликовал, всё честь по чести.
Это только присказка, сказка будет впереди
Читать: https://habr.com/ru/post/724700/?utm_campaign=724700
8 552
Top 10 Projects You Can Build to Learn Web Development in 2023
Hello guys, if you want to learn web development in 2023 then let me tell you that there is no better way to learn web development than building projects. Creating real world application give your experience which you can mention in your resume. They also expose you to challenges which real projects face like authentication, authorization, security, logging, performance etc. You also tend to remember things longer when you actually use it. So if you have learned API and methods by watching courses but haven't used them on any project then you will most likely forget them but if you use them in any project, you will retain knowledge for a long time. That's why I have been saying to may readers to build projects in 2023.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/10-projects-to-learn-web-development-in.html
8 552
Модульные тесты как оплот стабильности в Agile разработке
В этой статье мы рассмотрим ту часть тестирования, которой не касаются специалисты по тестированию — модульные тесты. Почему же при Agile так необходимо иметь качественное покрытие модульными тестами? Раскроем их положение в цикле разработки и цели их создания. Рассмотрим различные варианты оценки качества покрытия тестами при разработке backend приложения на языке Java с использованием Spring-boot. С помощью Jacoco построим отчет и увидим недостатки численных оценок покрытия тестами. Сформулируем субъективные оценки модульного тестирования и советы по их разработке.
Читать: https://habr.com/ru/post/724318/?utm_campaign=724318
8 552
Вложенные классы и лямбда-выражения в Java
Вложенный класс Java помогает сделать код более модульным, позволяя сгруппировать связанные классы вместе. Разбираемся, как им пользоваться.
Читать: «Вложенные классы и лямбда-выражения в Java»
Уже доступно! Исследование Telegram 2025 — ключевые инсайты года 
