en
Feedback
Чашечка Java

Чашечка Java

Open in Telegram

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

Show more
8 550
Subscribers
No data24 hours
-137 days
-3030 days
Posts Archive
How to find Factorial in Java using Recursion and Iteration - Example Tutorial Hello guys, if you are looking for a Java program to calculate factorial with and without recursion then you have come to the right place. Factorial is a common programming exercise that is great to learn to code and how to program. When I teach Java to new people, I often start with coding problems like prime numbers, Fibonacci series, and factorial because they help you to develop a coding sense and teach you how to write a program initially. In order to calculate factorial, you just need to know the factorial concepts from Mathematics, and rest I will explain this simple Java programming tutorial. Java Interview questions and tutorials Read: http://www.java67.com/2015/09/factorial-in-java-using-recursion-and-loop.html

Is it Possible to add static or private methods in Java interface? Can you add a static or private method in an interface in
Is it Possible to add static or private methods in Java interface? Can you add a static or private method in an interface in Java? or is it possible to add a private or static method in Java interface? or can you add a non-abstract method on an interface in Java? are a couple of popular Java interview questions which often pop up during telephonic interviews. Well, prior to Java 8, it wasn't possible to add non-abstract methods in Javabut nowadays you can add non-abstract static, default, and private methods in the Java interface. The static and default methods were supported as part of interface evolution in Java 8 and you can add private methods on an interface from Java 9 onwards. Java Interview questions and tutorials Read: http://www.java67.com/2019/02/can-you-add-non-abstract-method-on-interface-in-java.html

WildFly 27 Delivers Support for JDK 17, and Jakarta EE 10 Red Hat has released WildFly 27, featuring support for JDK 11, JDK
WildFly 27 Delivers Support for JDK 17, and Jakarta EE 10 Red Hat has released WildFly 27, featuring support for JDK 11, JDK 17, Jakarta EE 10 and MicroProfile 5.0. There are also dependency upgrades to Hibernate ORM 6.1, Hibernate Search 6.1, Infinispan 14, JGroups 5.2, RESTEasy 6.2, and Weld 5. WildFly 27 is a compatible implementation for Jakarta EE 10, having passed the TCKs in the Platform, Web and Core profiles. By A N M Bazlur Rahman Read: https://www.infoq.com/news/2022/12/wildfly-delivers-support-jdk-17/

10 Examples Of Scanner Class In Java Hello guys, if you want to learn about Scanner class in Java, one of the most popular cl
10 Examples Of Scanner Class In Java Hello guys, if you want to learn about Scanner class in Java, one of the most popular class to read input from command prompt or console then you have come to the right place. In this article, I will explain how to read input from command prompt, what is Scanner class and how you can use Scanner class to read various data types like String, int, long, boolean directly from console. You must have heard about famous nextInt(), nextDouble() methods which can read integer and double values from command prompt or console. But, before we get to the 10 best examples that will teach you everything you need to know about scanner class in Java, let me tell you a little bit more about what it really is. Java Interview questions and tutorials Read: http://www.java67.com/2022/12/10-examples-of-scanner-class-in-java.html

Стартует батл языков программирования 2022 Батл на звание лучшего языка программирования 2022 уже не за горами. Давайте узнае
Стартует батл языков программирования 2022 Батл на звание лучшего языка программирования 2022 уже не за горами. Давайте узнаем, какой ЯП наиболее популярен по версии Tproger! Читать: «Стартует батл языков программирования 2022»

Java News Roundup: JDK 20 in Rampdown, JDK 21 Expert Group, Apache Tomcat, JakartaOne This week's Java roundup for December 5
Java News Roundup: JDK 20 in Rampdown, JDK 21 Expert Group, Apache Tomcat, JakartaOne This week's Java roundup for December 5th, 2022 features news from OpenJDK, JDK 20 in Rampdown Phase One, formation of the JDK 21 expert group, point and milestone releases of: Spring Shell, Spring Tools, Quarkus, Open Liberty, GraalVM Native Build Tools, Apache Tomcat, Hibernate ORM, Eclipse Vert.x, Resilience4j, JDKMon and Ktor; and JakartaOne Livestream 2022. By Michael Redlich Read: https://www.infoq.com/news/2022/12/java-news-roundup-dec05-2022/

10 Examples of New HttpClient + HttpRequest + HttpResponse In Java 11 (REST Client] Hello guys, one of the notable addition i
10 Examples of New HttpClient + HttpRequest + HttpResponse In Java 11 (REST Client] Hello guys, one of the notable addition in recent Java release is the full fledged HttpClient from Java. This is one of the class or utility which was much needed in Java. It was quite surprising that JDK doesn't have any fully functional HTTP client to connect to REST APIs in this world of API Integration. Until Java 11, Java developer rely on classes like RestTemplate and WebClient from Spring Framework to make HTTP class to REST APIs, but now you don't need to include Spring Framework in your project just for that. You can now use HttpClient classand its support classes like HttpRequest and HttpResponse to make both synchronous and asynchronous HTTP calls in Java. Java Interview questions and tutorials Read: http://www.java67.com/2022/12/10-examples-of-java-httpclient.html

What is Diamond operator in Java? Example Tutorial Hello guys, if you are reading Java code and come across closed angle brac
What is Diamond operator in Java? Example Tutorial Hello guys, if you are reading Java code and come across closed angle bracket with a diamond like shape and wondering what they are and what they do then you have come to the right place. They are known as Diamond operator in Java and I will explain you what they are and where should you use them in this article. The Diamond operator is a relatively new operator in Java which was first introduced in JDK 7  to improve type inference and reduce boilerplate Java coding. It is denoted with a closed angle bracket that resembles the shape of adiamond () and that's why it's called the Diamond operator. If used correctly it can reduce typing and boilerplate coding in Java and result in much cleaner and readable code especially when you use Generics. Java Interview questions and tutorials Read: http://www.java67.com/2021/09/what-is-diamond-operator-in-java-how.html

Top Java Blogs Weekly: Best of 51/2022 Best of Top Java Blogs, year 2022, week 51 Read: https://www.topjavablogs.com/news/bes
Top Java Blogs Weekly: Best of 51/2022 Best of Top Java Blogs, year 2022, week 51 Read: https://www.topjavablogs.com/news/best-of-51-2022

Parallel Array Sorting in Java - Arrays.parallelSort() Example There are multiple ways to sort array in Java. For example, yo
Parallel Array Sorting in Java - Arrays.parallelSort() Example There are multiple ways to sort array in Java. For example, you can use Array.sort() method to sort any primitive or object array in Java but Java 8 presents a new feature that is useful to sort array’s elements. It can implemented by using the package “java.util.Arrays” which represents several methods to sort the array. The biggest benefit is that parallel array sorting is that its faster than any other sorting method due to usage of multithreading conception. So multiple threads can break the array into parts and work simultaneously to sort it. Java Interview questions and tutorials Read: http://www.java67.com/2022/12/parallel-array-sorting-in-java.html

Difference between Thread vs Process in Java? Example Thread and Process are two closely related terms in multi-threading and
Difference between Thread vs Process in Java? Example Thread and Process are two closely related terms in multi-threading and the main difference between Thread and Process in Java is that Threads are part of the process. i.e. one process can spawn multiple Threads. If you run a Java program in UNIX based system e.g. Linux and if that program creates 10 Threads, it still one process and you can find that by using ps -ef | grep identifier command which is one of the most popular use of grep command in UNIX, Where identifier is UNIX the text which can be used as regular expression to find that Java process. Java Interview questions and tutorials Read: http://www.java67.com/2012/12/what-is-difference-between-thread-vs-process-java.html

Difference between yield and wait method in Java? Answer Yield vs wait in Java The yield and wait methods in Java, though both are related to Threads, are completely different to each other. The maindifference between wait and yield in Java is that wait() is used for flow control and inter-thread communication while yield is used just to relinquish CPU to offer an opportunity to another thread for running. In this Java tutorial, we will what are differences between the wait and yield method in Java and when to use wait() and yield(). What is important for a Java programmer is not only to understand the difference between the wait() and yield() methodbut also to know the implications of using the yield method. Java Interview questions and tutorials Read: http://www.java67.com/2012/08/difference-between-yield-and-wait.html

10 points about wait(), notify() and notifyAll() in Java Thread? If you ask me one concept in Java that is so obvious yet mos
10 points about wait(), notify() and notifyAll() in Java Thread? If you ask me one concept in Java that is so obvious yet most misunderstood, I would say the wait(), notify(), and notifyAll() methods. They are quite obvious because they are one of the three methods of a total of 9 methods from java.lang.Object but if you ask when to use the wait(), notify() and notfiyAll() in Java, not many Java developers can answer with surety. The number will go down dramatically if you ask them to solve the producer-consumer problem using wait() and notify(). Java Interview questions and tutorials Read: http://www.java67.com/2016/04/10-points-about-wait-notify-and-notifyAll-in-java-multithreading.html

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

How to run Threads in an Order in Java - Thread.Join() Example Hello Java programmers, if you need to execute multiple thread
How to run Threads in an Order in Java - Thread.Join() Example Hello Java programmers, if you need to execute multiple threads in a particular order, for example if you have three threads T1, T2 and T3 and we want to execute them in a sequence such that thread 2 starts only when first thread finishes it job and T3 starts after T2, but with multithreading in Java there is no guarantee. Threads are scheduled and allocated CPU by thread schedulerwhich you cannot control but you can impose such ordering by using Thread.join() method. When you start a thread its not guaranteed that which thread will start first and whether the thread started first will finish first, if your application's logic depends upon a sequence its better to do all those operation on single thread because if all code is confined to one thread it will execute in order they were written provided some JIT optimization. Java Interview questions and tutorials Read: http://www.java67.com/2022/08/how-to-execute-threads-in-order-in-java.html

10 Examples Of Lombok Libarary In Java Hello guys, if you are working in Java then you may have heard about Lombok, one of th
10 Examples Of Lombok Libarary In Java Hello guys, if you are working in Java then you may have heard about Lombok, one of the popular Java library which alleviate pain Java developer by removing boiler plate code and provides improve development experience. Yes, Lombok can remove a lot of code like the one you put on equals() and hashCode, getter and setter, toString and constructor and much more. This means you can just create a Java class with fields much like Record of Java SE 17 and you can use it like a fully functional Java class, I mean you can create object using constructor or Builder and you can get and set values using gettter and setter, only difference is they are not visible in code. But then you may be thinking how does it work? Where does it get those getter and setter? why not compiler raise any problem? Java Interview questions and tutorials Read: http://www.java67.com/2022/12/10-examples-of-lombok-in-java.html

Весенние конференции JUG Ru Group: много офлайна и много онлайна Помните доисторические времена вроде 2019 года, когда ещё не было пандемии? Тогда мы проводили офлайновые конференции, и обычно они длились дня два с утра до вечера: можно успеть и доклады послушать, и наобщаться вволю. В эпоху онлайн-конференций многие ностальгировали по этому и просили «вернуть как было». Однако другие участники успели полюбить удобство онлайна (например, те, кто живёт далеко от Москвы/Петербурга). И просто вернуть прежний формат означало бы сделать им хуже. Поэтому на наших весенних конференциях мы постараемся, чтобы никто не ушёл обиженным: и офлайн будет двухдневным (с 2019-го такое не делали), и у онлайн-участников будет много контента. Подробности — под катом. Читать: https://habr.com/ru/post/704428/?utm_campaign=704428

How to set base URL for REST in Spring Boot? Example Tutorial Hello guys, if you are wondering how to set base URL for REST A
How to set base URL for REST in Spring Boot? Example Tutorial Hello guys, if you are wondering how to set base URL for REST API in Spring Boot then you have come to the right place. Earlier, I have shared best REST API Courses for Java developers, REST API Books,  and a complete guide to create RESTful Web service using Spring Boot,in this article, I will show you how to set a base URL in any spring boot application? If you don't know what is a base URL in a REST application or website, let me give you a brief overview first. A base URL is the continuous element of your REST API or website's address. For example, you'll notice that the address portion http://twitter.com displays in the address bar whenever you log on to your Twitter account or visit a Twitter profile from your computer. This is the primary or base URL. Java Interview questions and tutorials Read: http://www.java67.com/2022/09/how-to-set-base-url-for-rest-in-spring.html

Запросы к MongoDB из Java с помощью билдера фильтров В этой статье разберемся, как использовать класс Filters для запросов к MongoDB. Класс Filters представляет собой билдер для удобного написания фильтров запросов. Фильтры — это некоторые условные операции, которые MongoDB использует для ограничения результатов. Читать: https://habr.com/ru/post/704488/?utm_campaign=704488

Двадцать бабушек – уже рубль. Как GraalVM Native Image позволяет экономить джавистам и девопсам деньги на облако В этой статье мы поговорим об экономии на облаках в мире победившего Кубернетиса, обсудим перформанс современного приложения, и какие ништяки GraalVM помогут нам во всём этом. Mad skills bonus: вы сможете писать на Java приложения для командной строки так, что они не будут тормозить по сравнению со скриптами на Bash. Но вначале небольшая телега вместо вступления... В хабе Java у меня сейчас рейтинг 3810. Это больше, чем у @tagir_valeev, и это совершенно несправедливо. Почему и в чем секрет успеха? Рейтинг этот заработан тем, что когда-то я на потоке писал расшифровки докладов, интервью, новости Java, новости конференций, и тому подобное. Это все форматы, сравнительно легкие в производстве, которые можно писать сотнями (288 статей почти полностью относятся к хабу Java). Читать: https://habr.com/ru/post/704494/?utm_campaign=704494