Чашечка Java
10.3K subscribers
3.08K photos
7 videos
49 files
4.32K links
Лучшие материалы по Java на русском и английском

Разместить рекламу: @tproger_sales_bot

Правила общения: https://tprg.ru/rules

Другие каналы: @tproger_channels
Download Telegram
Чашечка Java
Photo
Java Optional проверки Java не заменяют все традиционные проверки if-null-else или if-not-null-else

Добавление java.util.Optional  в Java получило радушный прием и обеспечило более плавный код для методов, которые иногда могут возвращать null значения. К сожалению, Optional часто злоупотребляли, в частности, его слишком часто использовали. Иногда я сталкивался с кодом, который использует Optional в случаях, когда нет явного преимущества перед непосредственным использованием null.

Если при вызове кода используется Optional.ofNullable(T) для возвращаемого значения из метода, который он только что вызвал, это может предупреждать, что использование Optional не дает никаких преимуществ перед обычной проверкой на null.

Как и в случае со всеми« красными флажками», это не означает, что передавать возвращаемое значение из метода в Optional.ofNullable(T) всегда плохо (фактически, это необходимо делать для API-интерфейсов, имеющим Optionalпараметр), но обычно этот подход используется, чтобы не предоставлять реального значения, вместо прямого использования возвращаемого значения и его проверки на null.


Читать: https://habr.com/ru/post/582628/?utm_campaign=582628
How to implement Radix Sort in Java - Algorithm Example

The Radix sort, like counting sort and bucket sort, is an integer-based algorithm (I mean the values of the input array are assumed to be integers). Hence radix sort is among the fastest sorting...

Read: http://www.java67.com/2018/03/how-to-implement-radix-sort-in-java.html
Top 5 Courses to learn System Design and Software Architecture in 2021 - Best of Lot

Software design or System design is one of the tricky concepts to master. You can quickly learn a programming language like Java or Python, but creating software using that programming language is a...

Read: http://www.java67.com/2019/09/top-5-courses-to-learn-system-design.html
How to pause a thread in Java.gif
47.4 KB
How to pause a Thread in Java? Thread.sleep and TimeUnit.sleep Example

There are multiple ways to pause or stop the execution of the currently running thread in Java, but putting the thread into a sleep state using the Thread.sleep() method is the right way to introduce...

Read: http://www.java67.com/2015/06/how-to-pause-thread-in-java-using-sleep.html
Ускоряем pow

В этой статье я хочу поделиться несколькими нестандартными алгоритмами для быстрого возведения числа в степень, а также продемонстрировать их реализацию и сравнить их быстродействие в C++, C# и Java.

Сравнить точность алгоритмов можно прямо сейчас на этой странице.

В конце будет краткая памятка по тому, где и когда лучше применять какой из методов. При правильном выборе можно добиться увеличения скорости вычислений в 5 раз при погрешности ~1%, а иногда и вовсе без неё.
Ускорь мои степени!

Читать: https://habr.com/ru/post/584662/?utm_campaign=584662
Top 10 Google Cloud Certifications You can Aim in 2021 - Best of Lot

Hello guys, If you are aiming for Cloud Certifications in 2021 then Google Cloud Platform is one of the most in-demand platforms to go for. It's backed by Google and there is a huge demand for...

Read: http://www.java67.com/2021/01/top-10-google-cloud-certifications.html
Top 5 Python Web Development Courses for Beginners in 2021 - Best of Lot

Hello guys, if you want to become a Python web developer and looking for the best online training courses to start with then you have come to the right place. In the past, I have shared the best...

Read: http://www.java67.com/2020/06/top-5-courses-to-learn-python-for-web-development.html
10 Examples of forEach() method in Java 8

From Java 8 onward, you can iterate over a List or any Collection without using any loop in Java. The new Stream class provides a forEach() method, which can be used to loop over all or selected...

Read: http://www.java67.com/2016/01/how-to-use-foreach-method-in-java-8-examples.html
How to use WeakHashMap in Java? Example Tutorial

Hello friends, we are here today again on our journey to Java. I hope everyone is fine and ready to board our train of knowledge. Today we are gonna learn something very interesting and very...

Read: http://www.java67.com/2021/10/how-to-use-weakhashmap-in-java-example.html
6 Best Golang Programming Courses for Beginners to Learn in 2021 [UPDATED] - Best of Lot

Hello guys, if you want to learn the Go programming language in 2021 and look for the best Golang online courses, you have come to the right place. Earlier, I shared the best JavaScript Courses, and...

Read: http://www.java67.com/2019/12/top-5-courses-to-learn-go-or-golang.html
Is Java a good Programming Language to learn to code in 2021?

I often receive questions like which is the first programming language to learn first, Is Java the right programming language to start in 2020,  how good Java is as a first programming language,...

Read: http://www.java67.com/2018/07/is-java-best-programming-language-for-beginners.html
How to Find Repeated Characters in Given String with Count in Java? [Solved]

This is another interesting coding problem or programming exercise for beginner programmers. How do you find repeated or duplicate characters in a given String and their count? You can solve this...

Read: http://www.java67.com/2020/02/how-to-find-duplicate-characters-in-string-with-frequency.html
Top 5 Project Based Courses to learn Laravel and PHP for Web Development in 2021 - Best of Lot

Hello guys, if you want to learn Laravel, one of the most popular PHP frameworks for web development, and looking for the best resources like online courses, tutorials, and classes, then you have...

Read: http://www.java67.com/2020/07/top-5-courses-to-learn-laravel.html
Чашечка Java
Photo
Как мы Neo4j к Helidon прикручивали

Идея поэкспериментировать с интеграцией Neo4j с Helidon возникла вполне естественно.

Neo4j — графовая система управления базами данных с открытым исходным кодом, реализованная на Java. По состоянию на 2015 год считается самой распространённой графовой СУБД. (Википедия, 21.10.2021)

Neo4j написана на Java и доступна из ПО, написанного на других языках с использованием языка запросов Cypher, через транзакционную конечную точку HTTP или через двоичный протокол «bolt». Neo4j в настоящее время является стандартом де-факто для графовых баз данных, используемых во многих отраслях.

Вообще, в се началось с небольшого разговора с Michael Simonis, одним из авторов Spring Data Neo4j 6 и сопровождающим Neo4j-OGM. Мы спросили Михаеля, что он думает о том, как Helidon и Neo4J могут работать вместе. Менее чем через час Михаель прислал мне ссылку на этот репозиторий с полнофункциональным примером для Helidon MP и Neo4j SDN.


Читать: https://habr.com/ru/post/584796/?utm_campaign=584796
Top 10 Data Science and Machine Learning Courses, Certifications in 2021 - Best of Lot

Suppose you work in the technology field today as a programmer or software engineer. In that case, I am sure you have heard about terms like Data Science, Machine Learning, Deep Learning, Artificial...

Read: http://www.java67.com/2018/10/top-10-data-science-and-machine-learning-courses.html
10 Best JavaScript Online Courses on Udemy, Coursera, and Pluralsight in 2021 [UPDATED]

Hello guys, JavaScript is one of the most powerful programming languages and if you want to learn JavaScript then now is the best time. If you are looking for the best and advanced JavaScript courses...

Read: http://www.java67.com/2020/10/best-javascript-courses-for.html
Features of Java Programming Language

The main motive behind the development of the java programming language was to make a more securable, easy-to-understand programming language. It is one of the most used programming languages in the industry nowadays. Let’s analyze the features of java that separates it from other programming languages.
1. Simple & Easy to Learn

Java comes with an easier syntax and structuring of the code as compared to c++. Some concepts in c++ like structs have been left out in java and an alternative method is introduced. Pointers are also left in java and referencing is the alternative for them.

2. Independent of Platforms

Comparing to C and C++, Java is independent of the platforms so it’s written only one time and we can run it anywhere irrespective of the operating system.

C++ is compiled differently on each platform whereas java is compiled into bytecode which is independent of any platform. All that needs to run a java program is a Java Runtime Environment (JRE).

3. Secure in Nature

Java is one of the best programming languages when it comes to the security of the code. All the programs are run inside the virtual machine so there is no interaction of the code with the user’s system. With the use of public and private access modifiers, security can be taken care of.

4. Good Performance

Java ensures quality performance while running the code. Although it doesn’t provide more performance compared to C & C++ because it is an interpreted language while C++ is a compiled language.

5. Object Oriented in Nature

Java is known as an “Object-Oriented Programming Language” and it includes core concepts involved in java. The concepts include Inheritance, Polymorphism, Abstraction & Encapsulation. In java, everything is termed to be an object.

6. Robust

Java possesses the ability to deal with run-time errors, handling with the exceptions and garbage collections to delete needless values. The JVM automatically deletes the value to which no variable is pointing so there is no need to delete the memory manually.
So by now, you are aware of some of the best features that Java provides to its users. You can comment below if you want to add any feature which is not written in the blog.

Read: Features of Java Programming Language.
Советы по работе с Quarkus

В этой статье вы узнаете несколько полезных советов и приемов, связанных с фреймворком Quarkus. Мы сосредоточимся на функциях, которые выделяют Quarkus среди других Java фреймворков.


Читать: https://habr.com/ru/post/585122/?utm_campaign=585122