Чашечка Java
رفتن به کانال در Telegram
Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels
نمایش بیشتر8 295
مشترکین
+324 ساعت
+127 روز
-4930 روز
آرشیو پست ها
8 295
How to Reverse words in String Java? [Solution]
Hello guys, if you are wondering how to reverse words in a given String in Java then you have come to the right place. Earlier, I have shared 75 Programming interview questions and In this Java...
Read: http://www.java67.com/2015/06/how-to-reverse-words-in-string-java.html
8 295
What is temporary table in Database and SQL? Example Tutorial
Hello folks, if you have heard the term temporary table online or by your colleague in a call and wondering what is temporary table, what is the difference between a normal table and a temporary...
Read: http://www.java67.com/2022/05/what-is-temporary-table-in-database-and.html
8 295
When to throw and catch Exception in Java? [Best Practice]
Exceptions are one of the confusing and misunderstood topics in Java, but at the same time, too big to ignore. In fact, good knowledge of Errors and Exception handling practices is one criterion,...
Read: http://www.java67.com/2021/06/when-to-throw-and-catch-exception-in.html
8 295
Difference between static initializer block vs instance initializers in Java? Example
In Java, you can initialize member variables or fields in the same line you declare, in the constructor, or inside an initializer block. There are two types of initializer blocks in Java, static...
Read: http://www.java67.com/2021/08/difference-between-static-initializer.html
8 295
How to validate phone numbers in Java? Google libphonenumber library Example Tutorial
Hello guys, if you are wondering how to validate if a given number or string is a valid phone number in a Java application then you are not alone. It's a common requirement to validate phone...
Read: http://www.java67.com/2020/04/how-to-validate-phone-number-in-java.html
8 295
How to convert String to int or Integer data type in Java? Example Tutorial
Hello guys, if you are wondering how to convert a String variable to int or Integer variable in Java then you have come to the right place. Earlier, I have showed how to convert Integer to String in...
Read: http://www.java67.com/2013/03/how-to-convert-string-to-int-in-java.html
8 295
Top Java Blogs Weekly: Best of 20/2022
Best of Top Java Blogs, year 2022, week 20
Read: https://www.topjavablogs.com/news/best-of-20-2022
8 295
3 ways to Convert Integer to String in Java [Example]
Hello guys, this is the second part of the String to Integer data type conversion tutorial in Java, in the first part you have learned how to convert String to Integer, and in this article, you will...
Read: http://www.java67.com/2015/10/java-how-to-convert-from-integer-to-String-in-Java.html
8 295
Знакомимся с Javassist
Всем большой привет! Перед началом стоит сказать, что библиотека Javassist довольно мощный инструмент, так как стирает почти все границы у того безграничного языка JAVA, позволяя разработчику осуществлять манипуляции связанные с байткодом.
Конечно, получив доступ к байткоду, а ровно и к возможности воздействовать на этот самый байткод вам совсем не обязательно вклиниваться в него. Javassist можно использовать и в “мирных” целях!
При многообразии возможностей не стоит забывать о том, что использовать библиотеку нужно только тогда, когда это действительно необходимо. Использование данного инструмента делает основной код менее понятным, так как после применения Javassist у вас появится второе полноценное приложение, в котором будет жить Java со своей логикой.
Итак, если после всех предостережений вы все же решили использовать эту библиотеку, то давайте начинать!
В этой статье мы рассмотрим Javassist, как инструмент, с помощью которого мы будем вклиниваться в существующий байткод и трансформировать его.
Потребоваться это может в разных случаях. Например, у вас под рукой есть некая библиотека, в которой все классы уже скомпилированы и все зависимости вместе с запускающим методом упакованы в JAR архив. И вот, случилось так, что по какой-то причине вам нужно изменить реализацию того или иного метода. Предположим, вы нашли баг в библиотеке, или возможно требуется, чтобы были выполнены какие-нибудь дополнительные действия, в виде подсчета чего-нибудь, отправки оповещения о том или ином событии при старте вашего приложения и при определенных условиях.
Как и говорилось выше, после использования Javassist у вас появится второе полноценное приложение, в котором будет жить Java со своей логикой. Почему это происходит? Почему нельзя запаковать все в одно приложение?
Ответ очевиден – приложение не может само себя изменять. Т.е. приложение не может само изменять свой же байткод. Это должен делать кто-то другой. Этот кто-то другой – такое же Java приложение, но заточенное на работу с байткодом.
Читать: https://habr.com/ru/post/664818/?utm_campaign=664818
8 295
ИТ-компания NAUMEN проводит бесплатный митап для java-разработчиков — JUG.EKB
В программе два доклада. Спикеры расскажут, какие боли сможет вылечить ниспадающее программирование и проведут экскурсию по интернету вещей.
Офлайн встреча 12 мая в 19:30 Екб | 17:30 Мск в Атриум Палас Отеле (г. Екатеринбург, ул. Куйбышева 44). Если вы из другого города или хотите смотреть трансляцию из дома — подключайтесь онлайн. Ссылку отправят в день встречи.
Зарегистрироваться: https://tprg.ru/jvWe
Это #партнёрский пост
8 295
Difference between private and final class, method, and variables in Java?
Hello guys, one of the common questions among Java beginners is what is the difference between a private and final keyword in Java? The confusion arises because they are very similar and used in a...
Read: http://www.java67.com/2020/04/difference-between-private-and-final-in-java.html
8 295
How to Print Prime Numbers from 1 to 100 in Java [Solved]
Hello guys, today, I'll share with you a simple problem of writing a Java program to print prime numbers up to a given number like saying prime numbers from 1 to 100. It's one of the most...
Read: http://www.java67.com/2016/01/java-program-to-print-prime-numbers.html
8 295
40+ Java IO and Files Interview Questions with Answers
Good knowledge of Java IO API is important for any Java developer but many of them barely pay attention to Java IO and NIO API, and that's why they often struggle during Java interviews when a...
Read: http://www.java67.com/2020/02/40-java-io-and-files-interview-questions-answers.html
8 295
What is InstanceOf keyword in Java [Example Tutorial]
The Java programming language and JVM are full of hidden gems and even though I am using Java for more than a decade I still get surprised by features that I didn't know for quite some time like...
Read: http://www.java67.com/2018/03/instanceof-keyword-example-in-java.html
8 295
Difference between trustStore vs keyStore in Java SSL
If you are confused between truststore and keystore and looking to find what exactly they mean then you have come to the right place. Earlier, I have shared free Java courses and today, I am going to...
Read: http://www.java67.com/2012/12/difference-between-truststore-vs.html
8 295
Top 25 React Native interview Questions Answers
Hello guys, if you are preparing for React Native Developer interview and looking for common React Native Interview questions and answers then you have come to the right place. Earlier, I have shared...
Read: http://www.java67.com/2022/05/top-25-react-native-interview-questions.html
8 295
Difference between 32-bit vs 64-bit JVM in Java?
Hello Java Programmers, if you want to learn Java virtual Machine in-depth and wondering what is the difference between a 32-bit and 64-bit JVM and which one should you use and why? then you have...
Read: http://www.java67.com/2019/12/difference-between-32-bit-vs-64-bit-jvm.html
8 295
SQL Join Tutorial - How to use JOIN Multiple Tables in SQL query? MySQL Example
Hello guys, if you are wondering how to join multiple tables in SQL to produce a combine result which contains columns from all tables but not sure how to do it then you have come to the right place....
Read: http://www.java67.com/2021/07/how-to-use-join-clause-in-sql-mysql-example.html
8 295
Article Series: Native Compilations Boosts Java
Java dominates enterprise applications. But in the cloud, Java is more expensive than some competitors. Native compilation makes Java in the cloud cheaper. It raises many questions for all Java users: How does native Java change development? When should we switch to native Java? When should we not? And what framework should we use for native Java? This series provides answers to these questions.
By Karsten Silz
Read: https://www.infoq.com/articles/native-compilations-boosts-java/
8 295
Top 20 MySQL Interview Questions with Answers
Hello guys, if you are preparing for MySQL and Database interview or a Java developer role with MySQL experience and looking for frequently asked MySQL interview questions and answers then you have...
Read: http://www.java67.com/2022/05/top-20-mysql-interview-questions-with.html
