Чашечка Java
Ir al canal en Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
Mostrar más8 282
Suscriptores
-124 horas
-37 días
-7130 días
Archivo de publicaciones
8 281
GraphQL: сложность запросов
Всем привет! Меня зовут Олег Негрозов, я бэкенд-разработчик из команды Talantix. В мире GraphQL есть один минус, который одновременно является и плюсом — пользователь ограничен лишь описанной схемой. Он может попросить у сервера все данные, доступные ему, или написать такой сложный запрос, который будет выполняться целую вечность. О том, как защититься от этого и ограничить свои API, я расскажу в сегодняшней статье.
Читать: https://habr.com/ru/post/705512/?utm_campaign=705512
8 281
GraalVM compilers may be coming to Java
Read: https://www.infoworld.com/article/3683211/graalvm-compilers-may-be-coming-to-java.html#tk.rss_java
8 281
How to use @JsonCreator and @JsonPropertOrder Jackson JN Annotation in Java? Examples
Before I tach you exactly how you can use the @JsonCreatorannotation, let me briefly tell you a bit more about what Java really is. For those of you who don't know, Java is basically a general-purpose, class-based, object-oriented programming language that aims to have lesser implementation dependencies. You can also think of Java as a computing platform for application development. What sets Java apart is that it is fast, secure, and reliable. It can be used for developing Java applications with the help of laptops, data centers, game consoles, scientific supercomputers, and even cell phones.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/how-to-use-jsoncreator-jackson-in-java.html
8 281
How to convert List Of of Object to Map of Object (key, value) In Java? Example Tutorial
Hello guys, if you have a list of object and you want to conver into Map of object or key value pair then you can use different ways like looping over list and then adding values to map, or you can use Collectors.toMap() by using Stream API, You can even use flatMap() function if you want to convert list of one type of object to Map of another type of object. All this is possible and I will show you code example of how to do that in this article, But, before we get into the process of how you can convert a list of one object to another in Java, let me tell you a bit more about what Java really is.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/how-to-convert-list-of-of-object-to-map.html
8 281
Как выбрать сервер для своего приложения, бота или сайта?
Можно потратить несколько дней на то, чтобы тщательно разобраться в компонентах сервера, изучить всевозможные характеристики и варианты сборки. А можно прочитать нашу статью про идеальную конфигурацию для разных IT-проектов и обратиться к ребятам из SpaceWeb. Думаем, выбор очевиден — статья по ссылке: https://tprg.ru/EFMz
Реклама ООО «СпейсВэб»
8 281
Difference between Class and Object in Java? Example
Class and Object are two pillars of Java and any Object oriented programming language. There are multiple ways you can describe Class in Java, I will start with how I remember class from my college Days. That time, I used to remember that "A class is a blueprint to create object" and that's how I answer during viva or exam. While I know what is a blueprint, I didn't really understand what a class can do. Later, when I started coding, I learned about data types like int data type to hold integer values. String data type to hold text values.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/06/what-is-class-and-object-in-java-and.html
8 281
How to check If two Strings Array are equal in Java? Example Tutorial
Hello guys, if you are wondering how to check if two given String array are equal, I mean they contain same number of elements with same values and looking for solution then you have come to the right place. In the past, I have shared several coding questions on different data structures like linked list, binary tree, string, and even system design and today, we shall be working with arrays, Oh arrays are so pretty! And it’s very simple to learn. Having understood the concept of arrays the goal is to be able to check if two String arrays are equivalent.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/01/how-to-check-if-two-strings-array-are.html
8 281
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
8 281
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
8 281
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/
8 281
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
8 281
Стартует батл языков программирования 2022
Батл на звание лучшего языка программирования 2022 уже не за горами. Давайте узнаем, какой ЯП наиболее популярен по версии Tproger!
Читать: «Стартует батл языков программирования 2022»
8 281
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/
8 281
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
8 281
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
8 281
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
8 281
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
8 281
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
8 281
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
8 281
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
