Чашечка Java
رفتن به کانال در Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
نمایش بیشتر8 282
مشترکین
-124 ساعت
-37 روز
-7130 روز
آرشیو پست ها
8 281
JEP-400 или UTF-8 РєРѕРґРёСЂРѕРІРєР° РїРѕ умолчанию
Не прошло и пяти лет, как в Java 18 докатилось небольшое, но очень ожидаемое и обсуждаемое изменение: теперь во всех стандартных API используется UTF-8 кодировка по умолчанию. Это изменение, которое сделает выражение «Write once, run anywhere» действительно правдой, так как теперь поведение приложения будет еще меньше зависеть от системы, где оно запущено.
На конференции Joker я рассказал, как развивались события в работе над JEP-400 и как сделать так, чтобы ничего не поломалось после перехода на новые версии JDK. А теперь делюсь с Хабром и видеозаписью доклада, и текстовой версией. Как говорится, помимо двух самых сложных задач в программировании – нейминга и инвалидация кэша, есть ещё две: таймзоны и кодировки. Вот о кодировках и поговорим. Как читается название доклада/поста — разберёмся в конце.
Читать: https://habr.com/ru/post/709952/?utm_campaign=709952
8 281
Как сделать анимацию с помощью MotionLayout
Привет, Хабр! Меня зовут Павел Беловол, я Android-разработчик на проекте онлайн-кинотеатра KION в МТС Digital. Это новая часть сериала о внедрении фичи Autoplay в KION, в которой я расскажу про свой личный опыт работы с MotionLayout на примере продакшн задачи в KION. Из этой статьи вы узнаете, где нужно использовать MotionLayout, а где лучше обойтись без него и писать код анимации самостоятельно.
Читать: https://habr.com/ru/post/709958/?utm_campaign=709958
8 281
Javarush, так ли полезно спустя 9.5 лет?
Про Javarush, писали уже многие, в этой статье хотелось бы выразить свое мнение буквами и символами. Как вы уже наверняка знаете, Javarush - это весьма интересный проект, который предлагает обучение языку программирования Java, здесь вы изучите основы, решая простые (и не очень) практические задачи, в формате интерактивного комикса, где ВЫ главный герой.
Читать: https://habr.com/ru/post/710206/?utm_campaign=710206
8 281
SourceBuddy Compiles Dynamically Created Java Source Code
SourceBuddy compiles dynamically created Java source code defined by a String or a file to a class file. SourceBuddy, requiring Java 17, is a simplified facade for the javac compiler, which delivers the same functionality.
By Johan Janssen
Read: https://www.infoq.com/news/2023/01/sourcebuddy/
8 281
Android Extension SDK Aims to Simplify the Use of Modular System Components
Introduced with Android 10, Modular System Components enable updating end-user devices outside of the normal Android release cycles. The new Extension SDK framework, now public, aims to make their integration simpler for developers.
By Sergio De Simone
Read: https://www.infoq.com/news/2023/01/android-extension-sdk/
8 281
8 Examples of Primitive Data Types In Java (int, long, boolean, float, double, byte, char, and short)
Hello guys, Data types are first few things you should learn when you start learning a programming language and when it comes to learn Java, thereare 8 primitive data types which you should know. These are divided into three categories, numeric, text, and boolean values. Numeric data types can be further divided into two like natural numbers and floating pointing numbers. But, Before we get to a list of the 10 examples of primitive data types in Java, let me tell you a little bit more about what the primitive data types are. There are essentially 8 primitive data types in Java. They are int, byte, short, long, float, double, boolean, and char. The primitive data types are not considered objects and represent raw values. These primitive data types are also stored directly on the stack.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/11/examples-of-primitive-data-types-in-java.html
8 281
What is Normalization in SQL? 1NF, 2nd NF, 3rd NF and BCNF Example Tutorial
What is Normalization?
Normalization is one of the essential concept of relational database. It is the process or technique to remove duplicate data from tables and thus reduce the storage size. It also helps to maintain integrity of data. Normalization likewise assists with coordinating the information in the data set. It is a multi-step process that sets the information into even structure and eliminates the copied information from the relational tables. Normalization coordinates the segments and tables of a data set to guarantee that data set integrity constraints appropriately execute their conditions. It is an orderly method of deteriorating tables to take out information overt repetitiveness (redundant) and unfortunate qualities like Insertion, Update, and Deletion anomalies.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/08/what-is-normalization-in-sql-1nf-2nd-nf.html
8 281
10 points on TCP/IP Protocol, Java Programmers should Know
TCP/IP is one of the most important protocol as its backbone of HTTP, internet and most of the communication happens today. It's also important from technical interview perspective, you might have already seen difference between TCP and UDP multiple time during interviews ( I have seen). I believe every programmer, not just Java developer should know what is TCP/IP protocol? How it works and the below points I am going to mention. These are basic points and most of you already know but during Interview I have found many developers who doesn't really know what TCP/IP offers and how it works and what are the pros and cons of TCP/IP protocol. That's where, I think this article will help you. Anyway, let's jump into technical details now.
Java Interview questions and tutorials
Read: http://www.java67.com/2015/03/10-points-on-tcpip-protocol-java.html
8 281
How ThreadLocal variables works in Java? Explained
Hello guys, ThreadLocal variable is an interesting concept and class from Java API. Not many developer knows about it and very few know how to use it correctly. A couple of years ago it was also a popular Java interview questions for experienced developer but over the years, it lost the popularity as more and more people are now asking about Phaser, CompletableFuture, ForkJoinPool, and other newly added concurrency utilities. ThreadLocal variables, as name suggests is local to thread, which means every thread has there own copy. This means they don't need to look at the main memory when they want to use that variable and best thing is that the variable is not even shared between threads so no locking or synchronization is needed.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/12/how-threadlocal-variables-works-in-java.html
8 281
Java class data sharing upgrade would boost startup times
Read: https://www.infoworld.com/article/3685108/java-class-data-sharing-upgrade-would-boost-startup-times.html#tk.rss_java
8 281
Top 10 Java NIO Interview Questions Answers for 5 to 10 Years Experienced Programmers
Hello guys, I have been sharing a lot of Java interview question in this blog and so far I have shared Java interview questions on Core Java, Collections, Java 8, Multithreading, design patterns, Garbage Collections, Spring Framework, Hibernate, SQL and many other topics, but I haven't share many questions on Java NIO, one of the most underrated topic for Java Interviews. Java NIO is very important not just for interviews but also for writing high-performance server side Java application. It is newer and better addition of Java IO and introduced for better performance reason.
Java Interview questions and tutorials
Read: http://www.java67.com/2020/04/top-10-java-io-and-nio-interview.html
8 281
Top 20 Access Modifier Interview Questions Answers for 2 to 3 Years Experienced Java Developers
Access modifiers is one of the essential concept in Java and every programmer should be familiar with, and because of its importance, its also a popular topic in Java interviews. Access modifier can be applied to class, method, fields, and variables and as the name suggests they control the access. Like who can access that particular class, method or variable. For example, public modifier provides universal access which means any public class, method or variable is accessible by everyone and everywhere. In other words, you can access a public class both within the package and outside the package.
Java Interview questions and tutorials
Read: http://www.java67.com/2022/05/java-access-modifier-interview.html
8 281
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 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
Java CDS improvements would help boost startup times
Read: https://www.infoworld.com/article/3685108/java-cds-improvements-would-help-boost-startup-times.html#tk.rss_java
8 281
Spring Data JDBC и генерация ID
Каждый раз, когда необходимо сделать сервис на Java, работающий с реляционной базой, я не могу определиться, прямо как та обезъяна, которая хотела быть и умной, и красивой. Хочется делать запросы на обычном SQL, по-минимуму обкладываясь различными "магическими" аннотациями, но при этом лень самому писать RowMapper'ы, готовить PreparedStatement'ы или JdbcTemplate, и тому подобное, за что любят обзывать Java многословной. И каждый раз руки тянутся к Spring Data JDBC, который, вроде как, и был задуман как нечто среднее. Но с ним тоже, зачастую, можно вляпаться в какую-то ерунду на ровном месте.
Потребовалось мне сохранять новые записи в таблицу. Казалось бы, в чем вопрос - берешь CrudRepository и все у тебя работает из коробки. Но на практике возникло несколько нюансов, например:
Читать: https://habr.com/ru/post/709848/?utm_campaign=709848
8 281
Top 25 Dynamic Programming Interview Questions for Interviews
Hello guys, if you are preparing for tech interview or any Java developer interview then apart from preparing for Data Structure and Algorithms, and System Design, you should also prepare for Dynamic Programming questions. Dynamic programming or DP is a technique to solve a problem by breaking a big program into small sub-problem and then combining the result. It's very similar to Recursion and that's why Recursion also plays an important role in solving Dynamic programming questions. When it comes to Interview, DP is one of the toughest topic to master.
Java Interview questions and tutorials
Read: http://www.java67.com/2023/01/dynamic-programming-interview-questions.html
8 281
Difference between JIT and JVM in Java? Answered
The main difference between JIT and JVM is that JIT is part of JVM itself and its main function is to improve the performance of JVM by directly compiling some hot code (code that executes above a certain threshold) into native instruction. JIT stands for Just In time compilation and JVM stands for Java Virtual Machine. JVM is a virtual machine used in Java programming platforms to execute or run Java programs. The main advantage of JVM is that JVM makes Java platform-independent by executing bytecodes. Java source code is compiled into class files, which contain bytecode.
Java Interview questions and tutorials
Read: http://www.java67.com/2013/02/difference-between-jit-and-jvm-in-java.html
8 281
[recovery mode] Интеграция Primefaces в приложение на Spring Boot. Часть 1 — настройка зависимостей и базовый проект
В данной статье описывается пример интеграции библиотеки компонентов пользовательского интерфейса Primefaces, построенной на основе фреймворка JavaServer Faces (JSF), в MVC приложение на Spring Boot.
Читать: https://habr.com/ru/post/709170/?utm_campaign=709170
