Чашечка Java
Открыть в Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
Больше8 282
Подписчики
-124 часа
-37 дней
-7130 дней
Архив постов
8 282
How to Accept and Produce JSON as a response in Spring Boot? Example Tutorial
Hello everyone, welcome to the blog post. In this short article, we are going to take an in-depth look at how to consume and produce JSON responses using a widely appreciated Java framework i.e. Spring Boot. As we all know Spring Boot is a framework designed to build a secure web application, microservice, REST API, and production-ready spring application. Modern-day application deals in a large amount of data, which they share in JSON format. A JSON is a standard plain text-based representation of structured data. It is one of the popular formats for data transmission over the internet. Due to its user-friendly syntax and lightweight, it helps in the process faster.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/04/how-to-accept-and-produce-json-as.html
8 282
Ни одно задание не будет провалено: Spring Boot и Quartz в режиме cluster
Туториал по настройке библиотеки Quartz в режиме кластера в Spring Boot приложении с возможностью отслеживания и управления жизненным циклом задания, в том числе переносом задания в случае необходимости.
Читать: https://habr.com/ru/articles/729332/?utm_campaign=729332
8 282
How to fix cannot determine embedded database driver class for database type NONE
Hello and welcome to the blog post. Today we are going to take a look at a frequently encountered problem in Spring Boot Application. If you are reading this, I'm going to assume that you saw the problem"Cannot determine embedded database driver class for database type NONE" while executing a Spring Boot application. We will understand, when this error appears. For this we will create a simple Spring Boot project as shown below. It demonstrates how I encountered the problem "Cannot determine embedded database driver class for database type NONE".
Java Interview questions and tutorials
Read: http://www.java67.com/2023/04/how-to-fix-cannot-determine-embedded.html
8 282
Напоминаем, что кроме этого канала у нас есть ещё более двух десятков каналов в Telegram по разным айтишным тематикам.
Изучить, что за направления там есть, выбрать понравившееся и подписаться можно в специальном канале с каналами: @tproger_channels
Реклама tproger.ru LjN8KH9ar
8 282
Typescript/NODEJs Lead/Developers at Hungama Digital Media (1 – 6 years Exp)
Read: https://jobs.thecrazyprogrammer.com/typescript-nodejs-lead-developers-at-hungama-digital-media-1-6-years-exp/
8 282
Android and iOS Application Developer at Hungama Digital Media (3 – 8 years Exp)
Read: https://jobs.thecrazyprogrammer.com/android-and-ios-application-developer-at-hungama-digital-media-3-8-years-exp/
8 282
Backend Developer at Brains Valley Company (2 – 7 years Exp)
Read: https://jobs.thecrazyprogrammer.com/backend-developer-at-brains-valley-company-2-7-years-exp/
8 282
iOS Developer at Innominds Software Sez India Private Limited (4 – 9 years Exp)
Read: https://jobs.thecrazyprogrammer.com/ios-developer-at-innominds-software-sez-india-private-limited-4-9-years-exp/
8 282
Java Developer at Yectra Technologies Private Limited (2 – 6 years Exp)
Read: https://jobs.thecrazyprogrammer.com/java-developer-at-yectra-technologies-private-limited-2-6-years-exp/
8 282
Java Developers at ValueLabs (3 – 8 years Exp)
Read: https://jobs.thecrazyprogrammer.com/java-developers-at-valuelabs-3-8-years-exp/
8 282
Php Developer at Naman Finlease Pvt Ltd (4 – 8 years Exp)
Read: https://jobs.thecrazyprogrammer.com/php-developer-at-naman-finlease-pvt-ltd-4-8-years-exp/
8 282
Senior Software Engineer at ZettaBolt (5 – 10 years Exp)
Read: https://jobs.thecrazyprogrammer.com/senior-software-engineer-at-zettabolt-5-10-years-exp/
8 282
Trainee Software Developer at QuickXpert Infotech (0 – 5 years Exp)
Read: https://jobs.thecrazyprogrammer.com/trainee-software-developer-at-quickxpert-infotech-0-5-years-exp/
8 282
Java Developer at Dreamquest Software Consulting Private Limited (3 – 4 years Exp)
Read: https://jobs.thecrazyprogrammer.com/java-developer-at-dreamquest-software-consulting-private-limited-3-4-years-exp/
8 282
Top 12 Java Thread, Concurrency, and Multithreading Interview Questions and Answers
Java concurrency and thread interview questions answers
Multithreading is an important feature of the Java programming language, which
means threads are also an important part of any Java interview. It's true and
in fact, at beginners and freshers, level Thread interview questions in Java
are one of the most difficult to answer. One reason for interview questions
related to multithreading and concurrency being difficult is confusion around
how multiple threads work together and the second is threads are genuinely a
complicated topic to understand and use correctly.
Java Interview questions and tutorials
Read: http://www.java67.com/2012/08/5-thread-interview-questions-answers-in.html
8 282
Write a Program to Find Sum of Digits in Java
One of the common programming practice question thrown to beginners is to write a program to calculate the sum of digits in an integral number. For example, if the input is 123456 then output or sum of the digit is (1+2+3+4+5+6) = 21. An additional condition is you can not use any third party or library method to solve this problem. This program is not as simple as it looks and that's why it's a good exercise, you must know some basic programming techniques e.g. loops, operators, and logic formation to solve this problem. Let's see how we can solve this problem using Java programming language. In order to calculate the sum of digits, we must get digits as numbers. So your first challenge is how do you get the digits as numbers? How do we extract 6 out of 123456?
Java Interview questions and tutorials
Read: http://www.java67.com/2014/06/write-program-to-find-sum-of-digits-in-java.html
8 282
How to use Multiple Catch block for Exception handling in Java? Example Tutorial
Java 7 in many ways improved exception handling. Two of the feature of Java 7 which improves exception handling are the ability to catch the multiple exceptions in one catch block and closing resources automatically using Automatic resource management block. Java has long been criticized for its verbose exception handling code, mandatory to handle checked Exceptions in Java. Programmers always complained that it clutters the code and reduced readability. Java 7 somehow reduces this pain by improving the Exception handling feature e.g. multiple catches and ARM blocks. In this Java 7 tutorial, we will see how to catch multiple exceptions in one catch block using JDK7.
Java Interview questions and tutorials
Read: http://www.java67.com/2013/01/java-7-improved-exception-handling-multiple-catch-block.html
8 282
How to format Date in Java - SimpleDateFormat Example
SimpleDateFormat in Java is used to format Date in Java. You can format date on any String format based upon various attribute available in SimpleDateFormat class e.g. mm, dd, YY etc. You can also put timezone information in formatted Date using Z attribute of DateFormat class. SimpleDateFormat is sub class of DateFormat and provide format() and parse() method to convert Date to and from String in Java. Worth noting is that SimpleDateFormat is not thread-safe and should not be shared with others. Avoid using static SimpleDateFormat in Java classes. If you want to share SimpleDateFormat or want to make it thread-safe, you can use ThreadLocal variable in Java to avoid sharing SimpleDateFormat among multiple threads. parse() method of SimpleDateFormat throws ParseException if String input is not a valid date or can not be parsed into mentioned format.
Java Interview questions and tutorials
Read: http://www.java67.com/2013/01/how-to-format-date-in-java-simpledateformat-example.html
8 282
Difference between URL, URI and URN - Interview Question
All three URI, URL, and URN are used to identify any resource or name on the internet, but there is a subtle difference between them. URI is the superset of both URL and URN. By the way, the main difference between URL and URI is protocolto retrieve the resource. URL always include a network protocol e.g. HTTP, HTTPS, FTP etc to retrieve a resource from its location. While URI, in case of URN just uniquely identifies the resource e.g. ISBN numbers which are a good example of URN is used to identify any book uniquely. In this article, we will briefly see what is URI, URL, and URN and then see the main difference between URI, URL, and URN.
Java Interview questions and tutorials
Read: http://www.java67.com/2013/01/difference-between-url-uri-and-urn.html
