uk
Feedback
Чашечка Java

Чашечка Java

Відкрити в Telegram

Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels

Показати більше
8 549
Підписники
+124 години
-37 днів
-2230 день
Архів дописів

How to fix org.springframework.beans.factory.BeanCreationException: Error creating bean with name X [Java Spring] If you are
How to fix org.springframework.beans.factory.BeanCreationException: Error creating bean with name X [Java Spring] If you are using the Spring framework in your Java application and getting this error during startup it means Spring is not able to initialize the bean X and add it into its application context, Why? There could be multiple reasons like a typo on the spring bean name. Let's take a closer look at the stack trace to find out the real reason: BeanInstantiationException: Could not instantiate bean class [X]: No default constructor found; nested exception is java.lang.NoSuchMethodException: X.() Here X is the class, which is declared as Spring bean. The error clearly says that the default constructor is not present in class X. Java Interview questions and tutorials Read: http://www.java67.com/2017/07/solving-orgspringframeworkbeansfactoryb-beancreation-exception-java-spring.html

[Solved] How to reverse a String in place in Java? Example One of the common Java coding interview questions is to write a pr
[Solved] How to reverse a String in place in Java? Example One of the common Java coding interview questions is to write a program to reverse a String in place in Java, without using additional memory. You cannot use any library classes or methods like StringBuilder to solve this problem. This restriction is placed because StringBuilder and StringBuffer class define a reverse() method which can easily reverse the given String. Since the main objective of this question is to test the programming skill and coding logic of the candidate, there is no point in giving him the option to use the library method which can make this question trivial. Java Interview questions and tutorials Read: http://www.java67.com/2016/06/how-to-reverse-string-in-place-in-java.html

How to check if Array contains given Number or String in Java [ Linear Search vs Binary Search] Hello guys, one of the common
How to check if Array contains given Number or String in Java [ Linear Search vs Binary Search] Hello guys, one of the common coding questions from Java interviews is how to test if an Array contains a certain value or not?This is a simple question, but sometimes interview pressure makes candidates nervous. In this article, you'll learn how to solve this problem using different approaches. Since an array in Java doesn't have any inbuilt method for searching values, interviewers prefer to ask this question, to see how a candidate deals with such a situation. If you have good knowledge of Java API, then you will immediately come to know that there are alternatives available like using the binarySearch() method of Java Java .util.Arrays class or taking advantage of ArrayList contains method by first converting your array to ArrayList. Java Interview questions and tutorials Read: http://www.java67.com/2014/11/how-to-test-if-array-contains-certain-value-in-java.html

How to send HTTP Request from a Java Program - Example Tutorial If you are thinking is it possible to send an HTTP request fr
How to send HTTP Request from a Java Program - Example Tutorial If you are thinking is it possible to send an HTTP request from a Java program and if yes, how to send a simple HTTP GET request in Java, then you have come to the right place. In this article, I'll show you how you can use the HttpURLConnection class from the java.net package to send a simple HTTP request in Java. But, first, let me answer your first question, is it possible to send an HTTP request in Java? Yes, it's possible and you can send any kind of HTTP request like GET, POST, PUT, DELETE, HEAD, or PATCH. The java.net package provides a class called HttpURLConnection, which can be used to send any kind of HTTP or HTTPS request from Java program. Java Interview questions and tutorials Read: http://www.java67.com/2018/02/a-simple-example-to-send-http-request-from-Java-program.html

How to Reverse words in String Java? [Solution] Hello guys, if you are wondering how to reverse words in a given String in Ja
How to Reverse words in String Java? [Solution] Hello guys, if you are wondering how to reverse words in a given String in Java then you have come to the right place. Earlier, I have shared 75 Programming interview questionsand In this Java Coding tutorial, you will learn how to reverse words in String. It's also one of the popular coding questions, so you will also learn how to take a requirement, how to fill gaps in the requirement by asking the right question. A String is nothing but a sentence, which may contain multiple works, or just contain a single word or it may be empty. Your program must produce a String that contains the word in reverse order, for example, if the given input is "Java is Great" then your program should return "Great is Java". Java Interview questions and tutorials Read: http://www.java67.com/2015/06/how-to-reverse-words-in-string-java.html

What is temporary table in Database and SQL? Example Tutorial Hello folks, if you have heard the term temporary table online
What is temporary table in Database and SQL? Example Tutorial Hello folks, if you have heard the term temporary table online or by your colleague in a call and wondering what is temporary table, what is the difference between a normal table and a temporary table, and when and how to use it then you have come to the right place. In this blog, we shall learn how to use a temporary table in SQL. But before we go into that we need an overview of SQL. What is SQL? SQL stands for Structured query language. it is a programming language used in communicating or relating to the relational database. And this programming language performs various forms of operation in the data. It was created in the 1970s, SQL is used by database administrators, and developers writing data integration scripts, etc. Java Interview questions and tutorials Read: http://www.java67.com/2022/05/what-is-temporary-table-in-database-and.html

When to throw and catch Exception in Java? [Best Practice] Exceptions are one of the confusing and misunderstood topics in Ja
When to throw and catch Exception in Java? [Best Practice] Exceptions are one of the confusing and misunderstood topics in Java, but at the same time, too big to ignore. In fact, good knowledge of Errors and Exception handling practices is one criterion, which differentiates a good Java developer from an average one. So what is confusing about Exception in Java? Well, many things like When to throw Exception or When to catch Exception, When to use checked exception or unchecked exception, should we catch errors like java.lang.OutOfMemoryError? Shall I use an error code instead of an Exception and a lot more? Well, I cannot answer all these questions in one post, so I will pick the first one when to catch or throw any Exception in Java. Java Interview questions and tutorials Read: http://www.java67.com/2021/06/when-to-throw-and-catch-exception-in.html

Difference between static initializer block vs instance initializers in Java? Example In Java, you can initialize member vari
Difference between static initializer block vs instance initializers in Java? Example In Java, you can initialize member variables or fields in the same line you declare, in the constructor, or inside an initializer block. There are two types of initializer blocks in Java, static initializer block to initialize static variables and instance initializer block to initialize non-static fields. As the name suggests, the main difference is their purpose, instance initializer block if for instance variables, and static initializer block is for static variables. Another key difference between them is the time of execution. Java Interview questions and tutorials Read: http://www.java67.com/2021/08/difference-between-static-initializer.html

How to validate phone numbers in Java? Google libphonenumber library Example Tutorial Hello guys, if you are wondering how to
How to validate phone numbers in Java? Google libphonenumber library Example Tutorial Hello guys, if you are wondering how to validate if a given number or string is a valid phone number in a Java application then you are not alone. It's a common requirement to validate phone numbers for a Java web application, much like validating email addresses. Unfortunately, Java doesn't provide any built-in method to carry out this kind of common validation, I would love to have a validation package in Java, but don't worry there must be an open-source library to cover this deficiency, right? Yes, there is Google's phone number library which allows you to validate any phone number both international, USA specific, or any country-specific. Java Interview questions and tutorials Read: http://www.java67.com/2020/04/how-to-validate-phone-number-in-java.html

Что возможно стоит знать начинающему Spring java backend разработчику о работе с PostgreSQL Дисклеймер: в данной статье много воды, отражены мысли и опыт воспаленного мозга, потому заранее предупреждаю, что можете потерять просто свое время зря. Из java тут вообще мало. Возможно данная статья будет полезна начинающим разработчикам. Данная заметка - микс различных приемов работы с базой данных, мейнтененса, встречающихся проблем. В общем это чистой воды винегрет и что-то вроде шпаргалки. Я не являюсь гуру PostgreSQL, но могу поделиться своими наработками, которые использую достаточно часто являясь простым java разработчиком. Может кому-то что-то пригодиться. Читать: https://habr.com/ru/post/667428/?utm_campaign=667428

Рукопись моей первой книги о Java Статья о том, как я просто писал статьи на ИТ-тематику в личный блог, как вдруг получил контракт от издательства. Много работал и страдал. Прошёл через кучу этапов и написал рукопись своей первой книги о Java и её изменениях от версии к версии. Как чуть не переделал все перед самым концом, но довёл до конца и отдал текст редактору на следующий этап. Как отдохнул и переосмыслил увиденное и решил поделиться полученным знанием со всеми остальными. Читать: https://habr.com/ru/post/667410/?utm_campaign=667410

Difference between fixed vs cached thread pool in Java There are mainly two types of thread pools provided by Java's Executor
Difference between fixed vs cached thread pool in Java There are mainly two types of thread pools provided by Java's Executor framework, one is fixed thread pool, which starts with fixed number of threads and other is cached thread pool which... Read: http://www.java67.com/2022/05/difference-between-fixed-and-cached-thread-pool.html

Java библиотека для работы с внешним сервисом по протоколу RESTful API Использование библиотеки-обертки для добавления функционала к RESTful API, предоставляемому внешним сервисом. Читать: https://habr.com/ru/post/666990/?utm_campaign=666990

Kalix: Build Serverless Cloud-Native Business-Crtical Applications with No Databases Lightbend recently launched Kalix, a new
Kalix: Build Serverless Cloud-Native Business-Crtical Applications with No Databases Lightbend recently launched Kalix, a new PaaS offering for building cloud-native, business-critical applications using any programming language with no databases. Kalix is a unified application layer that pulls together the necessary pieces for writing software and abstracts their implementation details. Lighbend intends for it to provide developers with an innovative NoOps developer experience. By Eran Stiller Read: https://www.infoq.com/news/2022/05/kalix-serverless/

Разворачиваем проект серверов Minecraft Minecraft – нечто большее, чем игра. До сих пор думаешь, что это очередная игра для детей? Вынужден опровергнуть твоё мнение. Эту игру используют, как в школах для развития детей, так и для воссоздания архитектурных объектов, улучшения безопасности на реальных улицах, изучения основ программирования, и, в конечном итоге, для простой релаксации. Не очень люблю воду в текстах, поэтому буду краток. Название статьи: «Разворачиваем проект серверов Minecraft». Что будем делать? Запускать проект серверов Minecraft. Для чего? Для практики, для отвлечения, и, в конечном итоге, для небольшого (а может и большого) практически пассивного источника дохода. Читать: https://habr.com/ru/post/667198/?utm_campaign=667198

Google Jetpack Brings Updated Architectural and UI Components and Improved Performance Tools At its latest Google I/O confere
Google Jetpack Brings Updated Architectural and UI Components and Improved Performance Tools At its latest Google I/O conference, Google announced a new Jetpack release, including updated architectural libraries, extended support for app performance optimization, Jetpack Compose 1.2, and more. By Sergio De Simone Read: https://www.infoq.com/news/2022/05/google-jetpack-new-release-2022/

Java on Visual Studio Code Update – May 2022 Read: https://devblogs.microsoft.com/java/java-on-visual-studio-code-update-may-
Java on Visual Studio Code Update – May 2022 Read: https://devblogs.microsoft.com/java/java-on-visual-studio-code-update-may-2022/

Top 15 Java Web Service Interview Questions with Answers Java Web Services Questions and Answers Web Services interview quest
Top 15 Java Web Service Interview Questions with Answers Java Web Services Questions and Answers Web Services interview questions are part of J2EE interviews for jobs which are looking for some experience in Java web services Space. Most of the Web... Read: http://www.java67.com/2012/09/top-10-java-web-service-interview-question-answer-soap-rest.html