Чашечка Java
Ir al canal en Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
Mostrar más8 295
Suscriptores
+324 horas
+127 días
-4930 días
Archivo de publicaciones
8 290
7 Examples of HttpURLConnection in Java - Sending GET and POST Request [Tutorial]
If you want to learn how to send GET and POST requests from the Java program then you have come to the right place. Earlier, I have shared free Java Courses for beginners, and today, I am going to...
Read: http://www.java67.com/2019/03/7-examples-of-httpurlconnection-in-java.html
07 feb 2022, 05:00
8 290
Java News Roundup: JEP 423, Quarkus 2.7.0, Micronaut Serialization, JReleaser Early-Access
This week's Java roundup for January 31st, 2022, features news from OpenJDK (JEP 423), JDK 18, JDK 19, Project Loom Build 19-loom+3-89, Spring Framework updates, Quarkus 2.7.0.Final, a new Micronaut Serialization module, Apache Camel Quarkus 2.7.0, Apache Camel 3.15.0, a second JReleaser early-access build, JobRunr versions 4.0.7 and 4.0.8, and Failsafe 3.2.
By Michael Redlich
Read: https://www.infoq.com/news/2022/02/java-news-roundup-jan31-2022/
07 feb 2022, 01:41
8 290
Top 50 Core Java Basics Interview Questions with Hints and Answers
If you are preparing for your next Core Java interview and looking for some common questions to practice or check your knowledge, then you have come to the right place. In this article, I'll...
Read: http://www.java67.com/2018/03/top-50-core-java-interview-questions.html
07 feb 2022, 00:06
8 290
Публикуем проект с помощью Gradle и Sonatype в Maven Central без рук
Это такое приятное чувство, когда ты закончил какую-то задачу. А особенно когда твой проект уже готов к релизу. Остался лишь последний шаг.
Публикация проекта в Maven Central, имеено об этом я расскажу в этой статье. Как настроить Gradle, чтобы потом без труда настроить CI.
->
Читать: https://habr.com/ru/post/649999/?utm_campaign=649999
06 feb 2022, 12:41
8 290
How to remove Duplicate(s) from linked list in Java? Example Tutorial
Hello guys, if you are wondering how to find duplicates in a given linked list in Java then you have come to the right place. In the past, I have explained how to reverse a linked list in Java, and...
Read: http://www.java67.com/2022/02/how-to-remove-duplicates-from-linked-list-.html
06 feb 2022, 10:45
8 290
Maven vs Gradle различия использования в Java-проектах
В данной статье разберемся в практических различиях инструментов для сборки Maven и Gradle. Ведь современным разработчикам катастрофически не хватает времени на погружение во все технологии. Иногда нет времени, что бы прочитать несколько сотен страниц документации по каждому инструменту. Например, на первой работе меня постоянно преследовал стресс из-за того, что я не знаю почти все, что касается настройки и запуска проекта. Так получилось, что с проекта уходил последний java-разработчик. Я должен был принять проект и вести его вместе с другим фронтенд-разработчиком. Я потратил кучу времени на локальный запуск проекта. Но когда все получилось, я закрыл много задач по проекту и получил бесценный опыт. В этой статье я попытаюсь резюмировать свой опыт, который поможет разобраться в сборке многомодульных проектов.
Читать: https://habr.com/ru/post/649987/?utm_campaign=649987
06 feb 2022, 10:36
8 290
Announcing preview release for the generational mode to the Shenandoah GC
Read: https://aws.amazon.com/blogs/developer/announcing-preview-release-for-the-generational-mode-to-the-shenandoah-gc/
06 feb 2022, 09:14
8 290
Java proposal would lower GC latency
Read: https://www.infoworld.com/article/3649194/java-proposal-would-lower-gc-latency.html#tk.rss_java
06 feb 2022, 09:14
8 290
Java proposal would lower GC latency
Java garbage collection – the reallocation of memory through deletion of unused objects – would be improved through a proposal being considered by the developers of standard Java.
[ Also on InfoWorld: JDK 18: What’s new in Java 18 ]
A JDK Enhancement Proposal (JEP) being floated in the OpenJDK Java community calls for reducing latency by implementing region pinning to the G1 (Garbage-First) garbage collector, so collection would not have to be disabled during Java Native Interface (JNI) critical regions. Goals of this plan include:
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3649194/java-proposal-would-lower-gc-latency.html#tk.rss_java
06 feb 2022, 09:13
06 feb 2022, ~09:13
8 290
How to handle Java errors and cleanup without finalize
After several years of rumblings, Java is preparing to deprecate the
finalizemethod in JDK 18. This is covered by JDK Enhancement Proposal 421, which will mark finalize as deprecated and allow for it to be turned off for testing. It will remain default enabled. It will be removed entirely in a future release. On this occasion, let’s take a look at what the end of finalize means and how we should handle errors and resource cleanup now.
[ Also on InfoWorld: How to detect the Log4j vulnerability in your applications ]
What is finalize?
Before we understand why finalize is going away and what to use instead, let’s understand what finalize is or was.
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3649089/how-to-handle-java-errors-and-cleanup-without-finalize.html#tk.rss_java06 feb 2022, 09:13
06 feb 2022, ~09:13
8 290
Groovy 4.0.0 adds SQL-like querying
Groovy 4.0.0 has arrived as a production release. The latest upgrade to the JVM-based language introduces new SQL-like query capabilities, sealed types, and switch expressions.
GINQ, also known as Groovy-integrated Query or GQuery, is an incubating feature in Groovy 4.0.0. It supports querying collections in a SQL-like style. This might involve lists or maps, domain objects, or collections returned when processing such as JSON, XML, and other structured data. In a future version of Groovy, plans call for GQuery support for SQL databases where an optimized SQL query is generated based on the GQuery expression.
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3649128/groovy-400-adds-sql-like-querying.html#tk.rss_java
06 feb 2022, 09:13
06 feb 2022, ~09:13
8 290
GraalVM 22.0 promises a better developer experience
With the newly released version 22.0 of the Oracle-developed GraalVM polyglot runtime, the open source project’s developers aimed to improve the developer experience.
Released January 24 for JDK 11 and JDK 17, the most-current long-term support releases of standard Java, GraalVM 22.0 Community Edition can be downloaded from GitHub. Enterprise builds of GraalVM 22.0 are available from Oracle.
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3648448/graalvm-220-promises-a-better-developer-experience.html#tk.rss_java
06 feb 2022, 09:13
06 feb 2022, ~09:13
8 290
Microsoft publishes Java roadmap for Visual Studio Code
Looking to bolster the appeal of Visual Studio Code to Java developers, Microsoft has published a roadmap for bringing new Java-related capabilities to the code editor. Among the goals is making it easier to migrate to VS Code from other Java IDEs.
There are now more than 1.5 million Java developers using the code editor, Microsoft said. Several areas of investment have been designated for 2022, including the “inner loop” development experience, cloud-native development, build tools, performance and reliability, and other aspects of the user experience.
[ Also on InfoWorld: Build a Java application in Visual Studio Code ]
For inner loop development, improved code completion intelligence and optimization for common cases are planned, along with better code snippet generation and shortcuts based on user preference. Code completion performance improvements are eyed, as well. Planned debugging improvements include virtual thread support, debug for compiled classes, faster evaluation in variable views, and lambda expression valuation.
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3648290/microsoft-looks-to-woo-more-java-developers-to-visual-studio-code.html#tk.rss_java
06 feb 2022, 09:13
06 feb 2022, ~09:13
8 290
JDK 18: The new features in Java 18
Java Development Kit (JDK) 18 is set for release on March 22, 2022. The new version of standard Java will have nine new features, with the feature set having been frozen as of December 9.
The release has moved into a second rampdown phase as of January 20, following an initial rampdown phase begun last month. Upgrades to standard Java are released every six months, with the most-recent, JDK 17, arriving in September.
[ Also on InfoWorld: JDK 17: The new features in Java 17 ]
The OpenJDK page lists the following features as officially targeting JDK 18: a service provider interface, a simple web server, a vector API, code snippets, a reimplementation of core reflection, a UTF-8 charset, a second incubator of a foreign function and memory API, a second preview of pattern matching for switch statements, and the deprecation of finalization, which was the last addition.
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3630510/jdk-18-the-new-features-in-java-18.html#tk.rss_java
06 feb 2022, 09:13
06 feb 2022, ~09:13
8 290
Python nabs programming language of the year honors
For the second consecutive year, Python has been named TIobe’s programming language of the year, a distinction the company awards to the language with the highest increase in ratings – or popularity – for the year 2021.
Python’s year-over-year increase in popularity was 1.86 percent, according to Tiobe, with a year-end rating of 13.58 percent in the Tiobe index. Tiobe noted this was still far below Java’s all-time record of 26.49 percent achieved in 2001. Tiobe said C# was on its way to becoming the language of the year but was surpassed by Python in the last month.
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3646136/python-nabs-programming-language-of-the-year-honors.html#tk.rss_java
06 feb 2022, 09:12
06 feb 2022, ~09:13
8 290
Project Valhalla tees up Java object model improvements
OpenJDK’s Project Valhalla, which explores advanced Java language and JVM feature possibilities, is moving forward with a staged delivery of value objects, primitive objects, and unification of basic primitives.
[ Also on InfoWorld: JDK 18: What to expect in Java 18 ]
Overall, the ambitious Valhalla project is intended to heal a rift between primitives and objects. The three key capabilities, cited in a December 2021 blog post, “The State of Valhalla” by Brian Goetz, Java language architect at Oracle, are described in JDK Enhancement Proposals (JEP) currently pending in the OpenJDK community. Those three capabilities are:
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3646092/project-valhalla-tees-up-java-object-model-improvements.html#tk.rss_java
06 feb 2022, 09:12
06 feb 2022, ~09:13
8 290
What app developers need to do now to fight Log4j exploits
Earlier this month, security researchers uncovered a series of major vulnerabilities in the Log4j Java software that is used in tens of thousands of web applications. The code is widely used across consumer and enterprise systems, in everything from Minecraft, Steam, and iCloud to Fortinet and Red Hat systems. One analyst estimate millions of endpoints could be at risk.
Log4j is just the latest in a series of software supply chain attacks, including SolarWinds (which had a compromised build process) and Kaseya (where attackers had substituted malware-laced code).
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3645908/what-app-developers-need-to-do-now-to-fight-log4j-exploits.html#tk.rss_java
06 feb 2022, 09:12
06 feb 2022, ~09:13
8 290
Hands-on with Dropwizard REST APIs
Dropwizard is a REST-oriented framework that draws together several Java packages into a cohesive whole. It is an alternative to Spring (and Spring’s WebMVC package). Dropwizard delivers a more streamlined experience. It adopts even more configuration by convention than Spring, and eliminates most of the API surface that is unrelated specifically to delivering REST APIs.
[ Also on InfoWorld: Build a Java application in Visual Studio Code ]
Start a new Dropwizard project
Let’s begin by scaffolding a new project via the official Dropwizard Maven archetype. Find a comfortable place on your local system, and from the command line, enter the command in Listing 1.
To read this article in full, please click here
Читать: https://www.infoworld.com/article/3645503/hands-on-with-dropwizard-rest-apis.html#tk.rss_java
06 feb 2022, 09:12
06 feb 2022, ~09:13
