Чашечка Java
Відкрити в Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
Показати більше8 554
Підписники
-424 години
-197 днів
-2530 день
Архів дописів
8 554
Моделирование данных с помощью записей — 5 примеров для занятых разработчиков
Если говорить о синтаксисе, записи (Records) кажутся лаконичным способом создания нового типа данных для хранения неизменяемых данных. Но как насчет его семантики? Другими словами, что означает термин «запись»? Каковы его особенности и ограничения? В каких местах лучше всего использовать записи, а в каких - не стоит даже думать о них?
В этой статье блога я попытаюсь ответить на эти вопросы на практических примерах для таких занятых разработчиков, как вы. Вы будете удивлены, обнаружив, насколько полезны записи при использовании с другими современными возможностями Java, такими как шаблоны записей и запечатанные классы.
Давайте начнем с нашего первого примера.
Читать: https://habr.com/ru/articles/724950/?utm_campaign=724950
8 554
Как пройти собеседование на позицию Java-разработчика
Расскажем, как проходит собеседование у Java-разработчика, что ищут работодатели. И разберём вопросы и задачи, которые могут попасться.
Читать: «Как пройти собеседование на позицию Java-разработчика»
8 554
Пошаговый путь юриста в java-разработку
Предпосылки
Лет восемь назад настиг меня кризис среднего возраста. Случилось это в новогодние каникулы, когда осознание скорого выхода на работу вызывало тошноту и хандру. Связано такое состояние было с осознанием бесперспективности моей профессиональной деятельности.
Со временем эмоции улеглись, но осталось желание найти удаленную интеллектуальную работу. Поскольку Сеть соблазнительно пестрила объявлениями о потенциальных заработках разработчиков, кроме сферы программирования, других вариантов для реализации задуманного я не увидела.
Читать: https://habr.com/ru/articles/731108/?utm_campaign=731108
8 554
Top 10 Projects to Learn Front-End Web Development
Hello guys, If you are looking for ways to learn Front-End Web Development, you have come to the right place because all of what you want is right here. You just have to keenly go through this article till the end and you will get what you need. Front-end web development is a popular field that involves creating the user interface and experience of websites and web applications. It is an ever-evolving field that requires developers to stay up-to-date with the latest tools, technologies, and trends. One of the best ways to learn front-end web development is through hands-on projects. In this article, we will explore the top 10 projects that can help you learn front-end web development and enhance your skills in HTML, CSS, JavaScript, and other related technologies.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/04/top-10-projects-to-learn-front-end-web.html
8 554
How to use @JsonCreator and @JsonPropertOrder Jackson JN Annotation in Java? Examples
Hello guys, if you are dealing with JSON in Java then you may have come across Jackson, one of the popular JSON library in Java. Jackson provides many cool annotations to serialize and de-serialize JSON to Java object and vice-versa. Earlier, I have showed you 3 ways to convert JSON to Java object and 10 free Jon Tools for programmers and in this article, we will deep dive into two popular Jackson annotations @JsonCreator, @JsonProperty, and @JsonProperOrder. But, Before I tach you exactly how you can use the @JsonCreatorannotation, let me briefly tell you a bit more about what Java really is.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/how-to-use-jsoncreator-jackson-in-java.html
8 554
Top 5 Functional Interface Every Java Developer Should Learn
Hello guys, functional interface in Java are an important concept but not many developer pay enough attention to them. They learn lambda and method reference but the functional interface from java.util.function package. While its not really possible to learn all the functional interfaces on that package but you can learn a few more commonly used ones like Predicate, Supplier, Consumer etc and that's what you will learn in this article. But, before we get to the top 5 functional interfaces that every Java
developer should learn, let me tell you a bit about what Java really
is.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/top-5-functional-interface-every-java.html
8 554
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 554
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 554
What is WeakHashMap in Java? HashMap vs WeakHashMap Example Tutorial
Hello friends, we are here today again on our journey to Java. I hope
everyone is fine and ready to board our train of knowledge. Today we are
gonna learn something very interesting and very exciting. Today's topic will
definitely be very useful in coding and programming. This topic would surely decrease your time complexity, and space
requirements for any task very significantly :p So what's the wait? Let's
start!
Java Interview questions and tutorials
Read: http://www.java67.com/2021/10/how-to-use-weakhashmap-in-java-example.html
8 554
JDBC - Difference between PreparedStatement and Statement in Java? Answer
If you have worked with database interfacing with Java using JDBC API then you may know that the JDBC API provides three types of Statements for wrapping an SQL query and sending it for execution to the database, they are aptly named as Statement, PreparedStatement, and CallableStatement. First, a Statement is used to execute normal SQL queries like select count(*) from Courses. You can also use it to execute DDL, DML, and DCL SQL statements.
Java Interview questions and tutorials
Read: http://www.java67.com/2018/03/jdbc-difference-between.html
8 554
Can you make a class static in Java? Example
This is one of the tricky questions in Java because there is no straightforward. Yes and No answer here. You cannot make a top-level class static in Java, but Yes, you can make a nested class static in Java. In fact, it is even advised (see Effective Java) to prefer a nested static class in Java to normal inner classes. Now, the question comes what is a top-level class, and what is a nested class in Java? Well, you can declare multiple classes in a single Java source file. A class is said to be the top-level if it is not inside any other class, and a class that is inside another class is known as a nested class. You can create a nested class inside another top-level or another nested class in Java. This is the class that can be static in Java.
Java Interview questions and tutorials
Read: http://www.java67.com/2017/06/can-you-make-class-static-in-java.html
8 554
Difference between Fixed and Cached Thread pool in Java Executor Famework
There are mainly two types of thread pools provided by Javas' Executor framework, one is fixed thread pool, which starts with fixed number of threads and other is cached thread pool which creates more threads if initial number of thread is not able to do the job. The newCachedThreadPool() method is used to create a cached pool, while newFixedThreadPool() is used to construct a thread of fixed size.Cached thread pool executes each task as soon as they are submitted, using an existing thread if its idle or creating new threads otherwise, while in case of fixed thread pool, if more tasks are submitted then idle threads then those task are put into a queue and later executed once any other task has finished.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/05/difference-between-fixed-and-cached-thread-pool.html
8 554
Difference in Method Overloading, Overriding, Hiding, Shadowing and Obscuring in Java and Object-Oriented Programming?
Hello guys, today, I am going to explain a couple of fundamental object-oriented programming concepts in Java, like Overloading, Overriding, Hiding, Shadowing, and Obscuring. The first two are used in the context of a method in Java while the last three are used in the context of variables in Java. Two methods with the same name and same class but the different signature is known as overloading and the method is known as an overloaded method while a method with the same name and same signature but in parent and child class is known as overriding. On the other hand, Hiding is related to overriding since the static and private method cannot be overridden, if you declare such methods with the same name and signature in parent and child class then the method in the child class will hide the method in the parent class.
Java Interview questions and tutorials
Read: http://www.java67.com/2019/04/difference-between-overloading-overriding-hiding-shadowing-and-obscuring-in-java-oop.html
8 554
Difference between HashMap vs TreeMap vs LinkedHashMap in Java
Hello guys, if you are wondering what is difference between HashMap, TreeMap and LinkedHashMap in Java and when to use HashMap, TreeMap and LinkedHashMap in Java then you are at the right place. Earlier, I have shared difference between HashSet, TreeSet, and LinkedHashSet and in this article, I will explain the difference between these three common Map implementation HashMsp, TreeMap, and LinkedHashMap. Though all three classes like HashMap, LinkedHashMap and TreeMap are
implementation of java.util.Map interface, there is some functionality difference
between them. Perhaps most notable difference between them comes from their
iteration order. HashMap makes absolute no guarantee about in which order you
can iterate their keys, any application depending upon iteration order of
HashMap is fragile, because it can change anytime. In fact, in Java 7,
iteration order of HashMap is different than Java 6.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/05/hashmap-vs-treemap-vs-linkedhashmap-in.html
8 554
Difference Between Iterator and Enumeration In Java
What is the difference between Iterator and Enumeration in Java is one of the oldest core Java Interview Questions. While I haven't seen this question for a long time, I still think its an important concept to know and remember for Java developers, especially those who are tasked to work in existing project which may be using Enumeration. The Iterator and Enumeration are two interfaces in Java and used for traversing in java collection we found these two interface in the java.util package .whenever we go for an interview if interviewer goes in collection topic he will often ask the difference between this two .so let's see one by one difference between this two and compare which is used when and which one is better.
Java Interview questions and tutorials
Read: http://www.java67.com/2019/05/difference-between-iterator-and.html
8 554
Научитесь создавать современные приложения на курсе «Java Developer. Professional»
Курс рассчитан на программистов с практическим опытом разработки, желающим прокачать свои навыки. В процессе обучения вы научитесь решать задачи уровня Middle+, изучите современные инструменты разработки и фреймворки, работу с многопоточностью и детально разберётесь с JVM.
А чтобы понять, хватит ли ваших навыков и знаний для обучения на курсе, пройдите вступительный тест: https://tprg.ru/JCnW
Реклама ООО «Отус Онлайн-Образование»
8 554
Top 5 Places to learn Cloud Computing Online for FREE in 2023 - Best of lot
Hello guys, if you want to learn Cloud computing online and looking for online resources like books, online courses and tutorials then you have come to the right place. Earlier, I have shared both best free Cloud Computing courses as well as best paid Cloud Computing courses and books and in this article, I am going to share best places and online platforms to learn Cloud Computing in 2023. Cloud computing has been a buzzword all through the IT world for last 10-15 years. Everyday, in different parts of the world, we see new companies and organizations getting into the cloud. All of this has created a huge interest in cloud computing with a host of jobs and career opportunities in the field. In this blog, we are going to take a look at what is Cloud computing, followed by a walk-through of few websites and courses which I have specifically chosen for this blog.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/04/top-5-places-to-learn-cloud-computing.html
Вже доступно! Дослідження Telegram за 2025 — головні інсайти року 
