ch
Feedback

不要被骗子欺骗!Telemetrio 会找到并标记这些频道 👉 如果想查看标记,请订阅

Чашечка Java

Чашечка Java

前往频道在 Telegram

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

显示更多
8 295
订阅者
+324 小时
+127 天
-4930 天
帖子存档
Тестирование интеграции веб сервиса на Kotlin с базой данных В своей работе я регулярно встречаюсь с задачами, в которых требуется настроить и протестировать интеграцию веб сервиса с базой данных. Также среди людей, которых я обучаю, я вижу большое количество вопросов на эту тему. Так что я решил, что будет полезно разобраться с процессом тестирования этой области в отдельной статье, где все будет собрано в одном месте Читать: https://habr.com/ru/post/667632/?utm_campaign=667632

What is difference between start and run method of Thread in Java? Answer Hello guys, what is the difference between calling
What is difference between start and run method of Thread in Java? Answer Hello guys, what is the difference between calling start() vs run() method in Java multithreading is a popular core Java interview questions and if you are wondering the subtle difference between two then you have come to the right place. In this article, I will answer this question and show you an example as well. If you remember, a Thread is started in Java by calling the start()method of java.lang.Thread class, but if you learn more you will find out that the start() method internally calls the run() method of the Runnable interface to execute the code specified in the run() method in a separate thread. Java Interview questions and tutorials Read: http://www.java67.com/2015/12/difference-between-thread-start-and-run-method-java.html

​Новые подходы к разработке на Java на открытом уроке OTUS «Как сбросить оковы NullPointerException» Посмотрят на Optional в Java, насколько он помогает творить, а также построят безумный пример, который поможет почувствовать силу данного шаблона. Занятие проведет Виталий Куценко, Java Lead в RND подразделении Ростсельмаша. После вебинара вас ждет еще больше инструментов бэкенд-разработки на онлайн-курсе «Java Developer. Professional». Когда: 2 июня в 20:00 Пройдите вступительный тест, чтобы зарегистрироваться на занятие: https://otus.pw/L7r3/ Это #партнёрский пост

gRPC — безопасность или жесть? Встроенные в gRPC способы проверки прав справляются со своими задачами, но накладывают ряд ограничений и не дают возможность писать сложные варианты проверок без «оригинальных» инженерных решений. А тот, кто хоть раз грешил обходом ограничений, знает, чем это чревато. В одном из проектов мы решили попробовать упростить процесс валидации данных при внешней интеграции, соблюдая все правила безопасности. Шалость удалась:) Наш backend-разработчик — Александр — нашел-таки то самое «оригинальное» инженерное решение. Решили поделиться с вами, чтобы и вам страдать не приходилось. Оригинальное инженерное решение для упрощения аутентификации при вызове удаленных процедур по gRPC: proto-файл и реализация на Java. Читать: https://habr.com/ru/post/667616/?utm_campaign=667616

How to delete multiple elements from a LinkedList in Java? Bulk Remove Example Hello guys, if you are looking for an easy way
How to delete multiple elements from a LinkedList in Java? Bulk Remove Example Hello guys, if you are looking for an easy way to remove a sub set of elements from a LinkedList in Java then you have come to the right place. In the past, I have shown you how to sort a LinkedList in Java and how to create your own linked list implementation in Java and in this article, I am going to introduce you with an interesting method which can be used to delete a portion of LinkedList in Java in shot. Yes, there is a method exists  but not many Java developer knows about it. The method is called subList() and you can use this method with clear method in Java to delete a portion of linked list in one shot. Java Interview questions and tutorials Read: http://www.java67.com/2022/05/how-to-delete-many-elements-from-linkedlist-java.html

​Чем отличаются объектно-ориентированное и функциональное программирование? 1 июня в 20:00 мск состоится бесплатный вебинар «Объектно-ориентированное и функциональное программирование» Вместе с практикующим экспертом Сергеем Петрелевичем на максимально простом уровне разберут отличия объектно-ориентированного и функционального подходов в программировании, а также рассмотрят примеры на языке Java. Урок рассчитан на новичков в IT и пройдет в рамках онлайн-курса «Специализация Java-разработчик». Регистрация на бесплатный вебинар: https://otus.pw/rqXk/ Это #партнёрский пост

Top 10 Tough Core Java Interview Questions Answers for Programmers tough core Java interviews questions and answers What is a
Top 10 Tough Core Java Interview Questions Answers for Programmers tough core Java interviews questions and answers What is a tough core java interview question? Why do people look for tough Java questions before going for an interview? well, I don't think I... Read: http://www.java67.com/2012/09/top-10-tough-core-java-interview-questions-answers.html

Difference between Self and Equi Join in SQL - INNER Join example MySQL The main difference between Self Join and Equi Join i
Difference between Self and Equi Join in SQL - INNER Join example MySQL The main difference between Self Join and Equi Join is that In Self Join we join one table to itself rather than joining two tables. Both Self Join and Equi Join are types of INNER Join in SQL, but... Read: http://www.java67.com/2013/01/difference-between-self-and-equi-join-sql-example-inner-mysql.html

Java News Roundup: OpenJDK, Spring Updates and CVEs, Payara Platform, Apache Tomcat Updates This week's Java roundup for May
Java News Roundup: OpenJDK, Spring Updates and CVEs, Payara Platform, Apache Tomcat Updates This week's Java roundup for May 16th, 2022 features news from OpenJDK for JDK 19, Jakarta EE 10, Spring milestone and point releases and CVEs, May 2022 Payara Platform release, Quarkus 2.9.1.Final, Micronaut 3.4.4, WildFly 16.1.1, Hibernate ORM 5.6.9.Final, Hibernate Reactive 11.5.Final, JDKMon 17.0.25, JobRunr 5.1.2, JReleaser early-access, Apache Tomcat point releases and Apache Camel 3.17.0. By Michael Redlich Read: https://www.infoq.com/news/2022/05/java-news-roundup-may16-2022/

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