Top 5 Scrum Master Courses & Tests to Crack PSM Certification in 2022 - Best of Lot
If you want to become a Scrum Master and grow your career, or preparing for Scrum Master Certification (PSM) in 2022 and looking for the best Scrum courses, classes, books, and tutorials, then you...
Read: http://www.java67.com/2021/03/best-professional-scrum-master-psm-certifcation-courses-and-tests.html
If you want to become a Scrum Master and grow your career, or preparing for Scrum Master Certification (PSM) in 2022 and looking for the best Scrum courses, classes, books, and tutorials, then you...
Read: http://www.java67.com/2021/03/best-professional-scrum-master-psm-certifcation-courses-and-tests.html
Top 10 Java 8 Tutorials, Classes, and Courses in 2022 - Best of Lot [UPDATED]
Hello guys, if you want to learn Java 8, in a particular lambda expression, Stream API, method reference, and new Date and Time API, and looking for the best resources then you have come to the right...
Read: http://www.java67.com/2014/09/top-10-java-8-tutorials-best-of-lot.html
Hello guys, if you want to learn Java 8, in a particular lambda expression, Stream API, method reference, and new Date and Time API, and looking for the best resources then you have come to the right...
Read: http://www.java67.com/2014/09/top-10-java-8-tutorials-best-of-lot.html
Однопоточный JavaScript и многопоточная Java: что быстрее?
Асинхронное выполнение на Java и JavaScript
При необходимости в JavaScript можно запускать дополнительные потоки. Но обычно в Node.js или в браузерах весь код на JavaScript выполняется в одном потоке. В браузерах один и тот же поток рендерит содержимое веб-страницы на экран. По сути, один поток выполнения занимается всеми задачами, потому что приложения JavaScript пользуются преимуществами асинхронного выполнения. Для асинхронного выполнения задача помещается в очередь задач. Задачи из очереди одна за другой выполняются единственным потоком. Например, вторая строка кода выполняет планирование асинхронной задачи, которая запускается после завершения текущей задачи:
Результатом работы кода будет
В Java API под асинхронным выполнением обычно подразумевается, что задача выполняется в новом выделенном потоке. Например, представленный ниже код при помощи метода supplyAsync() планирует асинхронную задачу:
Результат работы программы показывает, что текущий поток создал новый поток для выполнения задачи:
Проблема множественных потоков заключается в том, что Java runtime не может создавать бесконечное их количество. Когда все запущенные потоки ожидают, а новые потоки создать нельзя, приложение тоже ничего не будет делать.
Читать: https://habr.com/ru/post/592017/?utm_campaign=592017
Асинхронное выполнение на Java и JavaScript
При необходимости в JavaScript можно запускать дополнительные потоки. Но обычно в Node.js или в браузерах весь код на JavaScript выполняется в одном потоке. В браузерах один и тот же поток рендерит содержимое веб-страницы на экран. По сути, один поток выполнения занимается всеми задачами, потому что приложения JavaScript пользуются преимуществами асинхронного выполнения. Для асинхронного выполнения задача помещается в очередь задач. Задачи из очереди одна за другой выполняются единственным потоком. Например, вторая строка кода выполняет планирование асинхронной задачи, которая запускается после завершения текущей задачи:
console.log("1");
setTimeout(()=>console.log("2"));
console.log("3");Результатом работы кода будет
1 3 2.В Java API под асинхронным выполнением обычно подразумевается, что задача выполняется в новом выделенном потоке. Например, представленный ниже код при помощи метода supplyAsync() планирует асинхронную задачу:
System.out.println("current thread: " + Thread.currentThread().getName());
var future = CompletableFuture.supplyAsync(() -> Thread.currentThread().getName());
System.out.println("current thread: " + Thread.currentThread().getName());
System.out.println("task thread: " + future.get());Результат работы программы показывает, что текущий поток создал новый поток для выполнения задачи:
current thread: main
current thread: main
task thread: ForkJoinPool.commonPool-worker-1Проблема множественных потоков заключается в том, что Java runtime не может создавать бесконечное их количество. Когда все запущенные потоки ожидают, а новые потоки создать нельзя, приложение тоже ничего не будет делать.
Читать: https://habr.com/ru/post/592017/?utm_campaign=592017
Top 6 Courses to Learn Dynamic Programming for Coding Interviews in 2022 - Best of Lot
Hello guys, if you are preparing for a coding interview but struggling to solve Dynamic programing based coding problems and looking for the best resource to improve your Dynamic programming...
Read: http://www.java67.com/2021/11/best-dynamic-programming-courses-for.html
Hello guys, if you are preparing for a coding interview but struggling to solve Dynamic programing based coding problems and looking for the best resource to improve your Dynamic programming...
Read: http://www.java67.com/2021/11/best-dynamic-programming-courses-for.html
Top 10 Online Courses to Learn Data Structure and Algorithms in 2022 - Best of Lot
Hello guys, In the past, I have shared a lot of useful resources like books and tutorials to learn Data Structure and Algorithms for both beginners and experienced programmers. I have also shared a...
Read: http://www.java67.com/2019/07/top-10-online-courses-to-learn-data-structure-and-algorithms-in-java.html
Hello guys, In the past, I have shared a lot of useful resources like books and tutorials to learn Data Structure and Algorithms for both beginners and experienced programmers. I have also shared a...
Read: http://www.java67.com/2019/07/top-10-online-courses-to-learn-data-structure-and-algorithms-in-java.html
10 Essential JVM Options for Production Java Applications
Hello guys, this is a brief guide of appropriate JVM options, which you will often see in production Java systems. As a Java developer, you should know what these JVM options mean, their importance,...
Read: http://www.java67.com/2016/08/10-jvm-options-for-java-production-application.html
Hello guys, this is a brief guide of appropriate JVM options, which you will often see in production Java systems. As a Java developer, you should know what these JVM options mean, their importance,...
Read: http://www.java67.com/2016/08/10-jvm-options-for-java-production-application.html
Top 6 Online Courses to learn AWS S3 and Dynamo DB in 2022 - Best of Lot
If you want to learn AWS S3 and DynamoDB in-depth and looking for the best online courses to start with then you have come to the right place. In the past, I have shared in-depth courses to learn AWS...
Read: http://www.java67.com/2020/08/top-5-courses-to-learn-aws-s3-and-dynamoDB-in-depth.html
If you want to learn AWS S3 and DynamoDB in-depth and looking for the best online courses to start with then you have come to the right place. In the past, I have shared in-depth courses to learn AWS...
Read: http://www.java67.com/2020/08/top-5-courses-to-learn-aws-s3-and-dynamoDB-in-depth.html
Top 5 Free Apache Spark Course for Beginners to Learn Online in 2022 - Best of Lot
Hello guys, if you are thinking of learning Apache Spark to start your Big Data journey and looking for some excellent free resources, e.g., books, tutorials, and courses, then you have come to the...
Read: http://www.java67.com/2018/04/5-free-apache-spark-course-for-java-scala-python-developers.html
Hello guys, if you are thinking of learning Apache Spark to start your Big Data journey and looking for some excellent free resources, e.g., books, tutorials, and courses, then you have come to the...
Read: http://www.java67.com/2018/04/5-free-apache-spark-course-for-java-scala-python-developers.html
Top 5 Free Kotlin Courses for Java Programmers to Learn Online in 2022 - Best of Lot
Hello guys, If you are in Android application development or server-side Java development, then you might have heard about the Kotlin programming language, created by JetBrains, the company behind...
Read: http://www.java67.com/2020/05/5-free-courses-to-learn-kotlin-for-java-and-Android-developers.html
Hello guys, If you are in Android application development or server-side Java development, then you might have heard about the Kotlin programming language, created by JetBrains, the company behind...
Read: http://www.java67.com/2020/05/5-free-courses-to-learn-kotlin-for-java-and-Android-developers.html
Top 5 Java Performance Courses for Experienced Developers to Learn in 2022 - Best of Lot
Hello guys, if you have been doing Java development for few years, then you know that Performance is the key for any Java application. As a senior Java developer, one should know how to improve the...
Read: http://www.java67.com/2020/04/top-5-advanced-courses-to-learn-java-perofrmance-concurrency-memory-management.html
Hello guys, if you have been doing Java development for few years, then you know that Performance is the key for any Java application. As a senior Java developer, one should know how to improve the...
Read: http://www.java67.com/2020/04/top-5-advanced-courses-to-learn-java-perofrmance-concurrency-memory-management.html
Announcing Cryostat 2.0: JDK Flight Recorder for Containers
Cryostat, a container-native JVM application developed by Red Hat, provides an API for monitoring and profiling Java containers using Java Flight Recorder (JFR).
Cryostat brings JFR to container age allowing analysis and profiling of multiple JVMs directly from a central hub.
By Andrea Messetti
Read: https://www.infoq.com/news/2021/11/cryostat-jvm-profiler-container/
Cryostat, a container-native JVM application developed by Red Hat, provides an API for monitoring and profiling Java containers using Java Flight Recorder (JFR).
Cryostat brings JFR to container age allowing analysis and profiling of multiple JVMs directly from a central hub.
By Andrea Messetti
Read: https://www.infoq.com/news/2021/11/cryostat-jvm-profiler-container/
Java News Roundup: Micronaut 3.2, Quarkus 2.5, JDK 18, Spring HATEOAS 1.4, JKDMon 17.0.14
It was a relatively quiet news week for the November 22nd, 2021 edition of the Java roundup featuring news from OpenJDK JEPs, JDK 18, Project Loom Build 18-loom+6-282, Spring HATEOAS 1.4, Micronaut 3.2, Quarkus 2.5.0, Apache Camel Quarkus 2.5.0 and JDKMon 17.0.14.
By Michael Redlich
Read: https://www.infoq.com/news/2021/11/java-news-roundup-nov22-2021/
It was a relatively quiet news week for the November 22nd, 2021 edition of the Java roundup featuring news from OpenJDK JEPs, JDK 18, Project Loom Build 18-loom+6-282, Spring HATEOAS 1.4, Micronaut 3.2, Quarkus 2.5.0, Apache Camel Quarkus 2.5.0 and JDKMon 17.0.14.
By Michael Redlich
Read: https://www.infoq.com/news/2021/11/java-news-roundup-nov22-2021/
Пример использования Java утилиты javap
JDK поставляется с рядом полезных утилит, размещенных в каталоге инструментов bin. Для тех, кто хочет декомпилировать байт-код, особый интерес представляет Java утилита javap.
Утилита командной строки javap, также известный как дизассемблер файлов классов Java, выводит соответствующую информацию о любом скомпилированном классе Java, который его просят проверить.
Читать: https://habr.com/ru/post/592161/?utm_campaign=592161
JDK поставляется с рядом полезных утилит, размещенных в каталоге инструментов bin. Для тех, кто хочет декомпилировать байт-код, особый интерес представляет Java утилита javap.
Утилита командной строки javap, также известный как дизассемблер файлов классов Java, выводит соответствующую информацию о любом скомпилированном классе Java, который его просят проверить.
Читать: https://habr.com/ru/post/592161/?utm_campaign=592161
Альтернатива Spring Security с использованием JJWT токена и Cookie, HttpServletRequest, HttpServletResponse
Коротко о главном. Конфигурации не нужны. На каждую страницу создаётся отдельный класс фильтр с методом аутентификации. Если к группе страниц доступ получает пользователь с одной и той же ролью, то используется один и тот же класс фильтр. Логично
Но страница авторизации устроена хитрее. Там аж 4 метода: авторизация если cookie полностью отсутствуют, аутентификация, обычная авторизация и получение изменённого cookie. Соответственно 1 и 3 методы похожи но на 1 стоит проверка cookie на null. В случае если 1 метод не отработал вызывается 2 и 3 соответственно. Можно было сделать 1 метод, но так он визуально более понятен.
Два последних метода были созданы из за невозможности возврата строки названия html страницы в стиле шаблонизатора Thymeleaf c изменённым куки. Ещё HttpServletResponse применим только внутри контроллера, поэтому в классах фильтрах только проверка Http запроса к серверу.
Читать: https://habr.com/ru/post/592257/?utm_campaign=592257
Коротко о главном. Конфигурации не нужны. На каждую страницу создаётся отдельный класс фильтр с методом аутентификации. Если к группе страниц доступ получает пользователь с одной и той же ролью, то используется один и тот же класс фильтр. Логично
Но страница авторизации устроена хитрее. Там аж 4 метода: авторизация если cookie полностью отсутствуют, аутентификация, обычная авторизация и получение изменённого cookie. Соответственно 1 и 3 методы похожи но на 1 стоит проверка cookie на null. В случае если 1 метод не отработал вызывается 2 и 3 соответственно. Можно было сделать 1 метод, но так он визуально более понятен.
Два последних метода были созданы из за невозможности возврата строки названия html страницы в стиле шаблонизатора Thymeleaf c изменённым куки. Ещё HttpServletResponse применим только внутри контроллера, поэтому в классах фильтрах только проверка Http запроса к серверу.
Читать: https://habr.com/ru/post/592257/?utm_campaign=592257
Top 15 Spring Cloud Interview Questions for Java Developers [with Answers]
Hello guys, If you are preparing for Java and Spring Boot Interview and looking for some Spring Cloud interview questions then you have come to the right place. Earlier, I have shared 15 Spring Boot...
Read: http://www.java67.com/2021/01/spring-cloud-interview-questions-with-answers-java.html
Hello guys, If you are preparing for Java and Spring Boot Interview and looking for some Spring Cloud interview questions then you have come to the right place. Earlier, I have shared 15 Spring Boot...
Read: http://www.java67.com/2021/01/spring-cloud-interview-questions-with-answers-java.html
Top 5 Hibernate and Spring Data JPA Courses for Java Developers to Learn in 2022 - Best of Lot
Hello Java programmers, if you want to learn Hibernate and Spring Data JPA, two of the leading persistence framework for enterprise Java development, and need the best resources like books,...
Read: http://www.java67.com/2021/11/best-hibernate-and-spring-data-jpa-courses.html
Hello Java programmers, if you want to learn Hibernate and Spring Data JPA, two of the leading persistence framework for enterprise Java development, and need the best resources like books,...
Read: http://www.java67.com/2021/11/best-hibernate-and-spring-data-jpa-courses.html
Top 5 Free Courses to Learn Ruby on Rails for Beginners in 2022 - Best of Lot [UPDATED]
Hello guys, welcome to this post, here you will find some of the best free courses to learn Ruby programming language and Ruby on Rails framework online from Udemy. If you don't know what Ruby is...
Read: http://www.java67.com/2018/02/5-free-ruby-and-rails-courses-to-learn-online.html
Hello guys, welcome to this post, here you will find some of the best free courses to learn Ruby programming language and Ruby on Rails framework online from Udemy. If you don't know what Ruby is...
Read: http://www.java67.com/2018/02/5-free-ruby-and-rails-courses-to-learn-online.html
Top 5 Courses to become a Software Tester and QA Analyst in 2022 - Best of Lot
Hello guys, if you want to learn Software testing, both manual and automation testing, and looking for the best online courses to master this skill then you have come to the right place. In the past,...
Read: http://www.java67.com/2020/07/top-5-courses-to-learn-software-testing.html
Hello guys, if you want to learn Software testing, both manual and automation testing, and looking for the best online courses to master this skill then you have come to the right place. In the past,...
Read: http://www.java67.com/2020/07/top-5-courses-to-learn-software-testing.html
👍1
Top 5 Free C++ Courses for Beginners to Learn Programming Online in 2022 - Best of Lot
Hello, guys, you might know that C++ is one of the most popular and powerful object-oriented programming languages, and if you want to do low-level stuff, then it's the best language to start...
Read: http://www.java67.com/2018/02/5-free-cpp-courses-to-learn-programming.html
Hello, guys, you might know that C++ is one of the most popular and powerful object-oriented programming languages, and if you want to do low-level stuff, then it's the best language to start...
Read: http://www.java67.com/2018/02/5-free-cpp-courses-to-learn-programming.html
5 Best Free Online Courses to learn Photoshop for Graphic Design in 2022 - Best of Lot
If you want to become a web designer or Graphics designer and want to learn Photoshop and looking for the best online courses to learn Photoshop from scratch on Udemy, Pluralsight, and Coursera, then...
Read: http://www.java67.com/2021/03/free-photoshop.html
If you want to become a web designer or Graphics designer and want to learn Photoshop and looking for the best online courses to learn Photoshop from scratch on Udemy, Pluralsight, and Coursera, then...
Read: http://www.java67.com/2021/03/free-photoshop.html
Top 5 Agile and Scrum Courses for Programmers in 2022 - Best of Lot
If you are a programmer, software developer, team lead, or project manager who wants to learn Agile and Scrum in 2022 and looking for the best Agile courses, then you have come to the right place....
Read: http://www.java67.com/2020/10/best-agile-and-scrum-courses-for-programmers-developers.html
If you are a programmer, software developer, team lead, or project manager who wants to learn Agile and Scrum in 2022 and looking for the best Agile courses, then you have come to the right place....
Read: http://www.java67.com/2020/10/best-agile-and-scrum-courses-for-programmers-developers.html