ch
Feedback

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

Чашечка Java

Чашечка Java

前往频道在 Telegram

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

显示更多
8 282
订阅者
-124 小时
-37 天
-7130 天
帖子存档
Java на стероидах, или опыт работы с Jmix Как после привычного Spring за месяц сделать сайт с платформой быстрой разработки Jmix. Коротко о технологии, особенностях, возникающих в процессе вопросах и ответах на них. Читать: https://habr.com/ru/articles/728896/?utm_campaign=728896

Article: Unleash the Power of Open Source Java Profilers: Comparing VisualVM, JMC, and async-profiler This article conveys th
Article: Unleash the Power of Open Source Java Profilers: Comparing VisualVM, JMC, and async-profiler This article conveys the foundational concepts and different types of Open Source Java profilers. It allows you to choose the best-suited profiler for your needs and comprehend how these tools work in principle. The aim of a profiler is to obtain information on the program execution so that a developer can see how much time a method executed in a given period. By Johannes Bechberger Read: https://www.infoq.com/articles/open-source-java-profilers/

Как перезапускать упавшие тесты параллельно Тесты часто бывают нестабильными. Когда тест падает, его можно попробовать перезапустить несколько раз, но перезапуски могут увеличивать время сборки в 2-3 раза. В этой статье мы расскажем, как нам удалось решить эту проблему, а также поделимся инструментом для параллельного перезапуска упавших тестов, который разработали наши инженеры. Читать: https://habr.com/ru/companies/wrike/articles/728826/?utm_campaign=728826

Сам себе экосистема: Как я адаптировал старый смартфон под современные реалии и написал клиенты нужных мне сервисов Время неумолимо бежит вперед: выходят новые гаджеты, постепенно заменяя старые, превращая их в тыкву или в лучшем случае, в «тапочек» для звонков. Сейчас смартфоны стали практически одинаковы во всем: дисплей на всю площадь передней панели, почти полное отсутствие аппаратных кнопок, беспроводная зарядка… Это всё, конечно, здорово, но ведь иногда так хочется взять в руки старый, но такой необычный в наше время QWERTY-смартфон и попытаться его использовать как основной, да и цены на них могут приятно удивить: БУ девайс можно купить за несколько сотен рублей (~5-10$). Одна проблема — клиенты приложений на версии Android 1.6-2.0 безбожно устарели и давно не работают. Но иногда желание воскресить старый девайс превыше потребительского качества и тут я пришёл к мысли… а почему бы не написать с нуля свои клиенты популярных приложений? ВК с музыкой, YouTube, трекинг посылок. Так я и сел писать необходимые в повседневной жизни приложения, с нуля, на голом API Android, без каких либо фреймворков (и даже AppCompat). Получилось ли у меня это? Узнаем в статье! Читать: https://habr.com/ru/companies/timeweb/articles/726086/?utm_campaign=726086

How to Override Equals, HashCode and CompareTo method in Java Though modern IDE like Eclipse, IntelliJ or Netbeans allows you to generate equals, hashCode and compareTo methods for your value classes, it's equally important, you know how to do that by hand. By overriding equals and hashcode method by yourself, you know how they work, what kind of errors you can get, and most importantly, it's expected form you, as a Java programmer in any core Java interview. More often, you would see a coding question in Java, which ask you to override equals(), hashcode(), compare() and compareTo() methods for a value class. Java Interview questions and tutorials Read: http://www.java67.com/2013/04/example-of-overriding-equals-hashcode-compareTo-java-method.html

Difference between Comparator and Comparable in Java - Interview Question Comparator and Comparable are two interfaces in Jav
Difference between Comparator and Comparable in Java - Interview Question Comparator and Comparable are two interfaces in Java API, which is used to compare two objects in Java. Though both are used for comparison there are some differences between them, a major difference between Comparable and Comparator is that the former is used to define the natural ordering of objects e.g. lexicographic order for java.lang.String, while later is used to define any alternative ordering for an object.  The main usage of java.lang.Comparable and java.util.Comparator interface is for sorting a list of objects in Java. Java Interview questions and tutorials Read: http://www.java67.com/2013/08/difference-between-comparator-and-comparable-in-java-interface-sorting.html

How to Iterate over Java Enum : values() Example Enum Values() Example In this Java programming tutorial, we will learn how t
How to Iterate over Java Enum : values() Example Enum Values() Example In this Java programming tutorial, we will learn how to iterate over enum in Java. Since Enums are a collection of a finite number of well-known objects, often we need to iterate over them. Enums are also final in Java and have a private constructor, which means you can not create enum instances once declared. Iteration over Enum is extremely simple, provided you know about the implicit values() method, which is a static method, provided by java.lang.Enum. Since every enum in Java extends java.lang.Enum, they all get this implicit values() method. Actually there are couple of them, e.g. valueOf(), name(), ordinal() etc. This method returns enum constants in the order they are declared in the Enum class. Even the ordinal() method returns the same order. Java Interview questions and tutorials Read: http://www.java67.com/2013/03/how-to-iterate-over-java-enum-values.html

How to Split String in Java using Regular Expression String class provides split() method to split String in Java, based upon
How to Split String in Java using Regular Expression String class provides split() method to split String in Java, based upon any delimiter, e.g. comma, colon, space or any arbitrary method. split() method splits the string based on delimiter provided, and return a String array, which contains individual Strings. Actually, split() method takes a regular expression, which in simplest case can be a single word. split() is also overloaded method in java.lang.String class and its overloaded version take a limit parameter which is used to control how many times the pattern will be applied during the splitting process. if this limit is positive n, then the pattern will be applied at most n-1 times, if it's negative or zero then split operation is applied any number of times. Java Interview questions and tutorials Read: http://www.java67.com/2013/03/how-to-split-string-in-java-regular-expression.html

Difference between Deep and Shallow Copy in Java Object Cloning Shallow copy and deep copyis related with cloning process so
Difference between Deep and Shallow Copy in Java Object Cloning Shallow copy and deep copyis related with cloning process so before go into the deep of shallow and deep copy we need to understand what is clone in java. Clone is nothing but the process of copying one object to produce the exact object, which is not guaranteed. We all know in Java object is referred by reference we can not copy one object directly to another object. So we have a cloning process to achieve this objective. Now one question arises in mind why we need this process so the answer is whenever we need a local copy of the object to modify the object in some method but not in the method caller. Java Interview questions and tutorials Read: http://www.java67.com/2013/05/difference-between-deep-copy-vs-shallow-cloning-java.html

How to Create File and Directory in Java with Example Many beginners confused with the fact that the same class java.io.File
How to Create File and Directory in Java with Example Many beginners confused with the fact that the same class java.io.File is used to create both file and directories in Java. I agree, this is not very intuitive and junior developers probably start looking for a class called java.io.Directory, which doesn't exist. On the other hand, creating file and directories are simple in Java, as java.io.File provides methods like createNewFile() and mkdir() to create new file and directory in Java. These methods returns boolean, which is the result of that operation i.e. createNewFile() returns true if it successfully created file and mkdir() returns true if the directory is created successfully. Java Interview questions and tutorials Read: http://www.java67.com/2014/02/how-to-create-file-and-directory-in-java.html

When to use ArrayList vs LinkedList in Java? [Answered] When to use ArrayList or LinkedList in Java is one of the most popular Java interview questions and also asked as a difference between ArrayList and LinkedList. Earlier, I have shared common Java collections interview questions and in this article, I will explain the difference between them. ArrayList and LinkedList are two popular concrete implementations of the List interface from Java's popular Collection framework. Being List implementation both ArrayList and LinkedList are ordered, the index-based and allows duplicate. Despite being from the same type of hierarchy there are a lot of differences between these two classes which makes them popular among Java interviewers. Java Interview questions and tutorials Read: http://www.java67.com/2012/12/difference-between-arraylist-vs-LinkedList-java.html

Java Regular Expression to Check If String contains at least One Digit This week's task is to write a regular expression in J
Java Regular Expression to Check If String contains at least One Digit This week's task is to write a regular expression in Java to check if a String contains any digit or not. For example, passing "abcd" to pattern should false, while passing "abcd1" to return true, because it contains at least one digit. Similarly passing "1234" should return true because it contains more than one digit. Though java.lang.String class provides a couple of methods with inbuilt support of regular expression like split method, replaceAll(), and matches method, which can be used for this purpose, but they have a drawback.  They create a new regular expression pattern object, every time you call. Since most of the time we can just reuse the pattern, we don't need to spend time on creating and compiling patterns, which is expensive compared to testing a String against the pattern. Java Interview questions and tutorials Read: http://www.java67.com/2014/01/java-regular-expression-to-check-numbers-in-String.html

12 Advanced Java programming Books for Experienced Programmers - Part 2 This is the second part of 12 must-reads advanced Jav
12 Advanced Java programming Books for Experienced Programmers - Part 2 This is the second part of 12 must-reads advanced Java programming books for intermediate and experienced Java programmers. In the first part, I have shared books to learn and master concurrency, performance, design patterns, and Java collection framework, which is essential for every Java developer irrespective of experience. On the other hand, In this article, I will talk about more advanced concepts, like security, Java 8, best practices, etc., which are more important for senior Java developers. As an experienced Java developer, a lot is expected of you. Junior developers look at you for guidance, and project managers look at you to solve problems and bail them out at critical junctures. Java Interview questions and tutorials Read: http://www.java67.com/2017/01/12-advanced-java-programming-books-for-experienced-programmers.html

Вопросы, которые я бы хотел услышать на техническом собеседовании Я занимаюсь разработкой больше 10 лет, прошел множество разных собеседований на самые разные позиции, и вот какая мысль сегодня пришла мне в голову. Ни на одном собеседовании мне не задавали вопросов, которые бы действительно осветили мой опыт и знания, а главное - ценность как сотрудника, эффективно решающего задачи. На написание статьи меня подтолкнула собственная боль, пронесенная через года, размышления о роли Google и GPT в работе программиста и старый анекдот про инженера и объем резинового мяча. Читать: https://habr.com/ru/articles/728572/?utm_campaign=728572

EventMesh Serverless Platform Promoted to Apache Top-Level Project Apache EventMesh is a fully serverless platform used to bu
EventMesh Serverless Platform Promoted to Apache Top-Level Project Apache EventMesh is a fully serverless platform used to build distributed event-driven applications and last month has graduated to Top-Level Project of Apache Software Foundation. EventMesh uses a publish/subscribe pattern to enable serverless, event-driven capabilities for a wide variety of components and applications By Andrea Messetti Read: https://www.infoq.com/news/2023/04/eventmesh-serverless/

Difference between Mockito.mock(), @Mock and @MockBean annotation in Spring Boot Hello guys, if you are wondering what is the
Difference between Mockito.mock(), @Mock and @MockBean annotation in Spring Boot Hello guys, if you are wondering what is the difference between Mockito.mock(), @Mock and @MockBean annotation in Spring Boot then you have come to the right place. In the Spring Boot framework, @Mock and @MockBean are both annotations used for creating mock objects in unit testing scenarios. However, they are used in different contexts and have some differences in their behavior which you will find in this article. In the past, I have shared difference between @Controller and @Service as well @RequestParam vs @PathVariable and in this article, I will explain the difference between @Mock and @MockBean annotations in Spring Boot. To be honest, I love this kind of questions as it not only help on interviews but also help to learn the concept better and you should also love them too. Java Interview questions and tutorials Read: http://www.java67.com/2023/04/difference-between-mockitomock-mock-and.html

Подборка актуальных вакансий — Java-разработчик Где: удалённо Опыт: от 1 года — Senior Java-разработчик Где: удалённо Опыт: от 2 лет — Java-разработчик Где: удалённо Опыт: от 3 лет — Старший Java-разработчик Где: Москва, можно удалённо Опыт: от 3 лет — Главный разработчик Где: Москва, можно удалённо Опыт: от 3 лет — Android-разработчик Где: Москва, можно удалённо Опыт: от 3 лет — Senior Android-разработчик Где: Москва, можно удалённо Опыт: от 3 лет #вакансии #работа

How to Convert java.util.Date to java.sql.Date - Example Hello guys, you may not know but there are two date classes in Java, one in java.util package and other in the java.sql package. Though both are known as Date class, there is some difference between java.util.Date and java.sql.Datee.g. Former is used whenever a Date is required in Java application while later is used to read and store DATE SQL type from the database. There is one more important difference is, java.util.Date stores both date and time values, while java.sql.date only stores date information, without any time part. As per Javadoc, java.sql.date is a thin wrapper around a millisecond value that allows JDBC to identify this as an SQL DATE value. To conform with the definition of SQL DATE, the millisecond values wrapped by a java.sql.Date instance must be 'normalized' by setting the hours, minutes, seconds, and milliseconds to zero in the particular time zone with which the instance is associated. See SQL date vs Util date for few more differences. Java Interview questions and tutorials Read: http://www.java67.com/2014/02/how-to-convert-javautildate-to-javasqldate-example.html