Чашечка Java
الذهاب إلى القناة على Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
إظهار المزيد8 282
المشتركون
-124 ساعات
-37 أيام
-7130 أيام
أرشيف المشاركات
8 281
Подборка актуальных вакансий
— Главный разработчик
Где: Москва, можно удалённо
Опыт: от 3 лет
— Android-разработчик
Где: удалённо
Опыт: от 3 лет
— Ведущий Java-разработчик
Где: удалённо
Опыт: от 3 лет
— Java-разработчик
Где: Москва, можно удалённо
Опыт: от 3 лет
— Java-разработчик
Где: Москва, можно удалённо
Опыт: от 3 лет
— Devops-инженер
Где: Санкт-Петербург, Москва, можно удалённо
Опыт: от 1 года
#вакансии #работа
8 281
How to run Threads in an Order in Java - Thread.Join() Example
Hello Java programmers, if you need to execute multiple threads in a particular order, for example if you have three threads T1, T2 and T3 and we want to execute them in a sequence such that thread 2 starts only when first thread finishes it job and T3 starts after T2, but with multithreading in Java there is no guarantee. Threads are scheduled and allocated CPU by thread schedulerwhich you cannot control but you can impose such ordering by using Thread.join() method. When you start a thread its not guaranteed that which thread will start first and whether the thread started first will finish first, if your application's logic depends upon a sequence its better to do all those operation on single thread because if all code is confined to one thread it will execute in order they were written provided some JIT optimization.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/08/how-to-execute-threads-in-order-in-java.html
8 281
10 Examples Of Lombok Libarary In Java
Hello guys, if you are working in Java then you may have heard about Lombok, one of the popular Java library which alleviate pain Java developer by removing boiler plate code and provides improve development experience. Yes, Lombok can remove a lot of code like the one you put on equals() and hashCode, getter and setter, toString and constructor and much more. This means you can just create a Java class with fields much like Record of Java SE 17 and you can use it like a fully functional Java class, I mean you can create object using constructor or Builder and you can get and set values using gettter and setter, only difference is they are not visible in code. But then you may be thinking how does it work? Where does it get those getter and setter? why not compiler raise any problem?
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/10-examples-of-lombok-in-java.html
8 281
Весенние конференции JUG Ru Group: много офлайна и много онлайна
Помните доисторические времена вроде 2019 года, когда ещё не было пандемии? Тогда мы проводили офлайновые конференции, и обычно они длились дня два с утра до вечера: можно успеть и доклады послушать, и наобщаться вволю.
В эпоху онлайн-конференций многие ностальгировали по этому и просили «вернуть как было». Однако другие участники успели полюбить удобство онлайна (например, те, кто живёт далеко от Москвы/Петербурга). И просто вернуть прежний формат означало бы сделать им хуже.
Поэтому на наших весенних конференциях мы постараемся, чтобы никто не ушёл обиженным: и офлайн будет двухдневным (с 2019-го такое не делали), и у онлайн-участников будет много контента. Подробности — под катом.
Читать: https://habr.com/ru/post/704428/?utm_campaign=704428
8 281
How to set base URL for REST in Spring Boot? Example Tutorial
Hello guys, if you are wondering how to set base URL for REST API in Spring Boot then you have come to the right place. Earlier, I have shared best REST API Courses for Java developers, REST API Books, and a complete guide to create RESTful Web service using Spring Boot,in this article, I will show you how to set a base URL in any spring boot application? If you don't know what is a base URL in a REST application or website, let me give you a brief overview first. A base URL is the continuous element of your REST API or website's address. For example, you'll notice that the address portion http://twitter.com displays in the address bar whenever you log on to your Twitter account or visit a Twitter profile from your computer. This is the primary or base URL.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/09/how-to-set-base-url-for-rest-in-spring.html
8 281
Запросы к MongoDB из Java с помощью билдера фильтров
В этой статье разберемся, как использовать класс Filters для запросов к MongoDB.
Класс Filters представляет собой билдер для удобного написания фильтров запросов. Фильтры — это некоторые условные операции, которые MongoDB использует для ограничения результатов.
Читать: https://habr.com/ru/post/704488/?utm_campaign=704488
8 281
Двадцать бабушек – уже рубль. Как GraalVM Native Image позволяет экономить джавистам и девопсам деньги на облако
В этой статье мы поговорим об экономии на облаках в мире победившего Кубернетиса, обсудим перформанс современного приложения, и какие ништяки GraalVM помогут нам во всём этом. Mad skills bonus: вы сможете писать на Java приложения для командной строки так, что они не будут тормозить по сравнению со скриптами на Bash.
Но вначале небольшая телега вместо вступления...
В хабе Java у меня сейчас рейтинг 3810. Это больше, чем у @tagir_valeev, и это совершенно несправедливо. Почему и в чем секрет успеха? Рейтинг этот заработан тем, что когда-то я на потоке писал расшифровки докладов, интервью, новости Java, новости конференций, и тому подобное. Это все форматы, сравнительно легкие в производстве, которые можно писать сотнями (288 статей почти полностью относятся к хабу Java).
Читать: https://habr.com/ru/post/704494/?utm_campaign=704494
8 281
Payara Cloud Automates Jakarta EE Deployments to Kubernetes
Payara introduced Payara Cloud, a serverless solution for Jakarta EE applications, which manages the infrastructure configuration and creation. It allows developers to focus on creating and configuring the application before pushing the application's WAR file to the cloud.
By Johan Janssen
Read: https://www.infoq.com/news/2022/12/payara-cloud/
8 281
10 Examples Of Ternary Operator In Java
Hello guys, if you are wondering how to use ternary operator in Java then you have come to the right place. Ternary operator is a great operator and you can use ternary operator to replace a simple if-else statement. Since ternary operator allows you to write code in one line, its much more succinct and readable and that's what many Java developer love it, including me. In the last article, I shared 10 example of XOR bitwise operator in Javaand in this article, I am going to share 10 example of ternary operator in Java so that you not only know what is ternary operator but also you can use it effectively to write better Java code. But, before we get to the 10 best examples that will teach you everything there is to know about ternary operators in Java, let me tell you a little bit more about what it all really is.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/10-examples-of-ternary-operator-in-java.html
8 281
How to do Integration Testing in Spring Framework? @SpringBootTest Example Java
Hello guys, if you are wondering how to test your Spring Boot application then you have come to the right place. Earlier, I have shared popular Spring Boot Testing Interview Questions and Spring Security Interview Questions and In this article, I will show you examples to test your Spring Boot application using @SpringBootTest annotation, which allows you to write Integration tests. When I talk about spring boot integration testing, I am talking about launching an application in ApplicationContext and performing tests. For integration testing, Spring Framework has a specific test module. It's referred to as a spring test. If we're going to utilize spring-boot, we'll need to use spring-boot-starter-test, which uses spring-test and other dependencies inside.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/08/springboottest-integration-test-example.html
8 281
5 Essential Spring Boot Annotations with Examples in Java - Tutorial
Hello guys, if you are coding in Java for long then you know that Annotations have completely changed the way you write Java code. It's now impossible to write any Java code without using annotations but that's for good. They provide a lot of value and that's why it's important for a Java developer to get familiar with essential annotations of the framework he or she is using. When I think about Java, some of the essential annotations which come to our mind are @Override, @SuppressWarning, and @Deprecated. Similarly, if you are using the Spring Boot framework, an extension of the Spring framework which aims to simplify the Java development with Spring, you will often end up using a couple of annotations like@SpringBootApplication or @EnableAutoConfiguration.
Java Interview questions and tutorials
Read: http://www.java67.com/2019/01/top-5-spring-boot-annotations-java-programmers-should-know.html
8 281
Как ускорить прогон тестов в многомодульном проекте Maven
Большое количество модулей Maven замедляет сборку проекта и время прогона тестов. Для того, чтобы сохранить многомодульную структуру проекта и быстро прогонять тесты, мы в Wrike написали новый инструмент — Maven Modules Merger, который сократил время некоторых сборок с 50 до 12 минут. В статье подробно расскажу о том, с какими проблемами нам помог справиться Maven Modules Merger и поделюсь подробностями его создания.
Читать: https://habr.com/ru/post/703986/?utm_campaign=703986
8 281
How @Configuration, @Component, and @ComponentScan work in Spring Framework? Component Scanning Example
Hello guys, if you are wondering how to does auto-wiring work in Spring Framework and how does Spring Framework find dependency in runtime then you have come to the right place. Earlier, I have explained How Spring MVC worksand In this tutorial, I will tell you how component scanning and auto-wiring works in Spring. You will also learn how to enable component scanning in a Spring application. When you develop a software application using spring, you need to tell the Spring framework where to look for Spring components. Using component scanning it is very much easier as this enables auto-detection of beans by spring container and smoothly.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/09/how-does-component-scanning-works-in.html
8 281
Всегда интересно узнать о чем думают такие IT-гении как Маск или Гейтс
Мы наткнулись на интересный Twitter-аккаунт, который публикует слитые в сеть e-mail переписки. Например, письмо Стива Джобса самому себе за год до смерти и Илона Маска, который ругает Twitter
Самые интересные мы собрали в одном материале: https://tproger.ru/articles/slivy-perepisok-mask-obsuzhdaet-twitter-google-dumaet-o-pokupke-youtube-a-dzhobs-pishet-sam-sebe/
#контент #статья #it
8 281
C++ overtakes Java in language popularity index
Read: https://www.infoworld.com/article/3682141/c-plus-plus-overtakes-java-in-language-popularity-index.html#tk.rss_java
8 281
How to Exit Program in Java?
Read: https://www.thejavaprogrammer.com/how-to-exit-program-in-java/
8 281
10 Examples of XOR Operator In Java
Hello guys, if you are wondering what does the XOR operator do in Java then you have come to the right place. XOR is a bitwise operator in Java, much like AND and OR and its very important because you can perform XOR operation using this operator. If you don't remember, XOR return true if the two values which you are comparing are different like one is true and other is false or vice-versa but it returns false or 0 if both operands are same like both are true or both are false. By using this technique you can solve many coding problems as you can check if the bits you are comparing is same or not. In this article, I will show you different example of XOR operator in Java after that you will understand this operator better.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/10-examples-of-xor-operator-in-java.html
8 281
Difference between @Component, @Controller, @Service, and @Repository Spring Annotations - Java
Hello guys if you are wondering what is the difference between @Component, @Controller, @Service, and @Reposistory annotation in Spring Framework then you have come to the right place. In the past, I have shared 15 Spring Boot Interview Questions and 30 Spring MVC questions and in this article, I am going to answer the fundamental and popular Spring questions about @Component, @Service, and @Repository annotation, but before we go into differences, let's understand the similarity first. All three of them are used to make a Java class a Spring bean, something which is managed by Spring Framework.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/06/difference-between-component-service-repository-in-spring.html
8 281
Top 35 Java String Interview Questions with Answers for 2 to 5 Years Experienced Programmers
Hello Java Programmers, if you are preparing for a Java developer interview and want to refresh your knowledge about String class in Java then you have come to the right place. In the past, I have shared 130+ Core Java Interview Questionsand 21 String Coding Problemsfor Interviews and in this article, I am going to share 35 Java String Questions for Interviews. The String class and concept is a very important class in Java. There is not a single Java program out there which is not use String objects and that's why it's very important from the interview point of view as well. In this article, I am going to share 35 String-based questions from different Java interviews.
Java Interview questions and tutorials
Read: http://www.java67.com/2018/06/top-35-java-string-interview-questions.html
8 281
Сливы переписок: Маск обсуждает Twitter, Google думает о покупке YouTube, а Джобс пишет сам себе
Сливы переписок IT-гениев с сайта Internal Tech Emails. Google отказался покупать YouTube, Джобс пишет сам себе, Гейтс не спит из-за Java.
Читать: «Сливы переписок: Маск обсуждает Twitter, Google думает о покупке YouTube, а Джобс пишет сам себе»
