<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6703515144650039049</id><updated>2026-06-16T19:27:19.949+02:00</updated><category term="java"/><category term="joke"/><category term="linux"/><category term="J2EE"/><category term="jvm"/><category term="gentoo"/><category term="oracle"/><category term="tips"/><category term="JRockit"/><category term="smtp"/><category term="AI"/><category term="AImen"/><category term="HTML"/><category term="LTS"/><category term="Spring"/><category term="bug"/><category term="display bug"/><category term="eclipse"/><category term="experimental"/><category term="hotspot"/><category term="java21"/><category term="java24"/><category term="java25"/><category term="jdk"/><category term="mysql"/><category term="non-static blocks"/><category term="openssl"/><category term="source control"/><category term="starttls"/><category term="tinydns"/><category term="tomcat"/><category term="umela inteligencia"/><category term="web"/><title type='text'>java</title><subtitle type='html'>not only java blog</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bielik.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>63</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-3851584553750098153</id><published>2025-10-15T08:43:00.005+02:00</published><updated>2025-10-15T08:46:54.709+02:00</updated><title type='text'>What the hell is this? #:~:</title><summary type="text">&amp;nbsp;Have you ever seen (as a part of a URL) something like this?#:~:Well, that&#39;s something! This part of url is called URL Text Fragments. And it is very useful! How It Works?You certainly already know that, the # symbol (called a hash or fragment identifier) separates the main URL from a fragment that references a specific section of the page. Traditionally, # links to an element with a </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3851584553750098153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3851584553750098153'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2025/10/what-hell-is-this.html' title='What the hell is this? #:~:'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioWXgRHhLtxYtKvh_6zKBVDR3PIVvt9UblvmulgKzhVeIdINK8ItALkaheR94uybY7eUwH8FwYiwghdjyunen0rJhaSuuvH4qyl2KljC007Iu-IjSarA-OqvTg0GF-4uXowHujR2K9cVxKs-kXkYGNgMDkO-AmbzK0Tu81wn0OGOozsYZam-g5-fisAw58/s72-c/Untitled.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-3802767326808007798</id><published>2025-09-28T16:02:00.011+02:00</published><updated>2025-09-29T13:45:24.262+02:00</updated><title type='text'>Revit - problém so zamŕzaním aplikácie (Windows 11 + SSD 1TB)</title><summary type="text">Ste čerstvý študent na stavebnej fakulte, kúpite si nový nadupaný notebook (AMD Ryzen 9 8940HX, 32 GB RAM, SSD 1TB), veď potrebujete rýchle zviera, beštiu!Nainštalujete si Autodesk Revit a spustíte ho. Idete otvoriť prvý súbor - template od cvičiaceho a... nič!Vymrzol!Tak kill aplikácie a spúšťate znovu, otvoríte si nejaký projekt alebo template z inštalácie - tie idú všetky v pohode. Stiahnete </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3802767326808007798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3802767326808007798'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2025/09/revit-problem-so-zamrzanim-aplikacie-na.html' title='Revit - problém so zamŕzaním aplikácie (Windows 11 + SSD 1TB)'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixOxhHZpeiEwryJENSDKdxhtpnV8UPGq3q0gKqGwWhC-RO-SbQ5ZzpRJkmpSkfuEmct1K3sNBHkEfVaP1_7rEMGs7QqRCyWfkfabhw8eLbSPFBT23pF_Zqrz7kyW1qOB8631cVBX7vpwkxy9VckDGoLCGvqjwPOkn59Qb2l374w4OH0y-a8da2-nt227Zc/s72-c/Untitled.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-8665825468915388996</id><published>2025-05-12T11:34:00.001+02:00</published><updated>2025-06-04T11:41:44.762+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="experimental"/><category scheme="http://www.blogger.com/atom/ns#" term="hotspot"/><category scheme="http://www.blogger.com/atom/ns#" term="java24"/><title type='text'>Java 24 Experimental Features: Three Key Innovations</title><summary type="text">Java 24, released on March 18, 2025, introduces several experimental features that represent significant advancements in JVM technology. Among the 24 Java Enhancement Proposals (JEPs) included in this release, two are designated as experimental features. Here are the three most interesting experimental innovations in Java 24.1. Compact Object Headers (JEP 450)The Compact Object Headers feature </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/8665825468915388996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/8665825468915388996'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2025/05/java-24-experimental-features-three-key.html' title='Java 24 Experimental Features: Three Key Innovations'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6MxuB8Z2SaW2NUTrySX_NF1Kk0vmq0YN-qWhTmuXG_Chyphenhyphen4XXc1w9K7Noa0-u-a_D6kpALbMBIi1W3aEYiPnB5F8OfLGeCR8GO3oV-xkc3nRiKqNNcxwynh_acH9lGz7rDRg2OqmgEsEzLrb-ct7BHD5u9mo0o74uGHyCYTOhR7LxPps5bGuxaC5KcW3WZ/s72-w400-h249-c/Java25Lts.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-104036181242510389</id><published>2025-04-03T11:14:00.035+02:00</published><updated>2025-06-04T11:30:02.516+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="java25"/><category scheme="http://www.blogger.com/atom/ns#" term="LTS"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle"/><title type='text'>Java 24 Release - March 2025</title><summary type="text">Java 24 Release - March 2025Oracle released Java 24 on March 18, 2025, as the latest version of the Java SE Platform. This release represents the Reference Implementation of Java SE Platform version 24 as specified by JSR 399 in the Java Community Process.Key Features:Stream Gatherers: A new enhancement that gives developers fine-grained control over how elements are grouped and processed within </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/104036181242510389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/104036181242510389'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2025/04/java-24-release-march-2025.html' title='Java 24 Release - March 2025'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDPAWsbaTjQr09MrJRqOmBl8Pmxqizya5z3oh6P__YLwQ3GPOYRcoOyY7PCLw5OWawtkCmruoBB4ie5jZu1mZfZeNEHCeMdtSOlRsDCQXT8yqWMALXr-ThwYhp1pOfIe9bdY0Exb9DOL8YJBsHjpvIeDTgX_lSj0h6_6ApFy24GV_vJf8HK6_LdXMhEeuT/s72-w400-h249-c/Java25Lts.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-8046934182342479638</id><published>2025-03-31T14:40:00.004+02:00</published><updated>2025-06-04T11:42:27.722+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Did you know that methods in Java have a size limit?</title><summary type="text">The JVM&#39;s method size limit of 64kB of bytecode is an important constraint for Java developers to understand. Here&#39;s more information about this limitation:JVM Method Size LimitThe 65,535 (64K-1) byte limit on method bytecode is a fundamental constraint in the Java Virtual Machine (JVM) specification. This isn&#39;t about the number of lines of source code, but rather the compiled bytecode size of a </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/8046934182342479638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/8046934182342479638'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2025/03/did-you-know-that-methods-in-java-have.html' title='Did you know that methods in Java have a size limit?'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7CKCNdnrmzFB1ppfB-NV1DMClANRidqquvt0xMn_-F5LbNgrxEvLT3dw8uJ7Ii6xv7vgwi2saCiYIgl6JBAOVJgK6gOZmEV6xMdjXzjRTsBxP5g_JkRfnOGDwmvdEHvCFUcpN6lY4yOMUfdb4A9D15A5hDuxn1mnGoAgWzj2TIHojHaUegTftAj1H1dy2/s72-w394-h267-c/Untitled.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-8646330082464539438</id><published>2025-02-21T10:53:00.008+01:00</published><updated>2025-06-04T11:42:42.687+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>Customizable HTML tag: select/option</title><summary type="text">Ó, HTML bože, wwwládca  webapp neba, vďaka! Na toto som čakal roky (desiatky rokov).&amp;nbsp;Kto pracuje s web technológiami, kde sa používa HTML, isto neraz zaklial, keď musel použiť klasický, hmm, nazvyme ho ”combobox”. HTML tag &amp;lt;select&amp;gt; s jeho položkami &amp;lt;option&amp;gt; je štýlovateľný asi tak, ako chcieť urobiť z trabanta mercedes. O jeho funkcionalite ani nehovoriac. Preto bolo vždy </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/8646330082464539438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/8646330082464539438'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2025/02/customizable-selectoption.html' title='Customizable HTML tag: select/option'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLEvwL6WJW2pGhUPBesIz5W6iu7-8Ln9RGEVAAT3KusKTYI_KXapxE-PwTV2j_n6whICCKsSw2n5nqdDBvCKUCo9MN7wjlTs1SiX4-z3PkmLgTmHjfyESU7fVh8N75ton4WVDxZaRils7oPW12pv8J7ZwbXOaN4dqYO5xrn8zjGVK-9mQCOu6LrMvtDSzw/s72-w492-h246-c/html-select-1.webp" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-3865583597652527016</id><published>2024-08-26T09:54:00.000+02:00</published><updated>2024-08-26T09:54:08.501+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI"/><category scheme="http://www.blogger.com/atom/ns#" term="AImen"/><category scheme="http://www.blogger.com/atom/ns#" term="umela inteligencia"/><title type='text'>My, ľudia, sme veľmi namyslení.</title><summary type="text">Myslíme si, že sme ktovieako inteligentní. Nedokážeme jednoducho a rýchlo zrátať z hlavy ani dve trojciferné čísla. Nerozoznáme margarétku od sedmokrásky. Nevieme sa dohovoriť s človekom hovoriacim iným jazykom, dokonca niekedy ani cez plot s vlastným susedom.AI väčšinu z toho dnes zvláda ľavou zadnou (ak by ju mala) a dosiahla to iba za niekoľko rokov. Stačilo len trochu viac výpočtového výkonu.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3865583597652527016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3865583597652527016'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2024/08/my-ludia-sme-velmi-namysleni.html' title='My, ľudia, sme veľmi namyslení.'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><georss:featurename>Dolná 15, 974 01 Banská Bystrica, Slovensko</georss:featurename><georss:point>48.7339746 19.1432376</georss:point><georss:box>48.733266973857745 19.142164716394042 48.734682226142262 19.144310483605956</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-7772898185230811034</id><published>2023-06-20T15:15:00.004+02:00</published><updated>2023-06-27T11:56:29.063+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="java21"/><category scheme="http://www.blogger.com/atom/ns#" term="jdk"/><title type='text'>What is the minimum app in Java (21)?</title><summary type="text">Who doesn&#39;t know &quot;Hello, World!&quot;? When you start writing a code in a new language, you usually write this simple program. What does it look like in Java code?

class App { 
    public static void main(String[] args) { 
        System.out.println(&quot;Hello, World!&quot;);
    }
}

But, explain to a beginner what &quot;public static void&quot; and strange args are. What would you say if the program could be </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/7772898185230811034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/7772898185230811034'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2023/06/what-is-minimum-app-in-java.html' title='What is the minimum app in Java (21)?'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-5283004262721129155</id><published>2023-04-26T14:02:00.009+02:00</published><updated>2023-06-20T13:40:12.038+02:00</updated><title type='text'>False is true</title><summary type="text">Is flase true? Or true is false...
Let&#39;s find out together.



public class J {

   public static void main(String args[]) {

      if (true == false) {
         // some unicode: \u000a\u007d\u007b
         System.out.println(&quot;true is false! realy?&quot;);
      }
   }
}



This short java code prints out message &quot;true is false! realy?&quot;. Why? Just look at the unicode characters in the comment. What </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5283004262721129155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5283004262721129155'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2023/04/false-is-true.html' title='False is true'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-8623273476916033517</id><published>2023-04-25T08:57:00.003+02:00</published><updated>2023-05-22T15:40:44.947+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Will this Java code run?</title><summary type="text">Will this Java code run? The Test instance variable via the value() method returns null.&amp;nbsp; What about NullPointerException? Is it possible to access the pi member through null?public class Test {&amp;nbsp;&amp;nbsp; &amp;nbsp;static float pi = 3.14f;&amp;nbsp;&amp;nbsp; &amp;nbsp;Test value() {&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;return null;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&amp;nbsp; &amp;nbsp; public static void main(String args[]) {&amp;nbsp</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/8623273476916033517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/8623273476916033517'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2023/04/will-this-java-code-run.html' title='Will this Java code run?'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-5675328314889253259</id><published>2022-10-03T15:16:00.001+02:00</published><updated>2023-05-22T15:41:14.448+02:00</updated><title type='text'>A Joke About Java Programmers</title><summary type="text">Q: What will happen to the old senile Java programmers?A:&amp;nbsp;Nothing, they just lose some of their functions.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5675328314889253259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5675328314889253259'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2022/10/a-joke-about-java-programmers.html' title='A Joke About Java Programmers'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-725485072360406609</id><published>2022-03-30T13:10:00.003+02:00</published><updated>2022-03-30T13:16:18.337+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>JavaOne is back!</title><summary type="text">In 2018 and 2019, the famous Java developer conference used the name Code One. For 2022, the name JavaOne is back again! The world&#39;s leading developer conference is scheduled to take place in Las Vegas at Oracle CloudWorld in October 2022.Oracle CloudWorld promises to keep you up-to-date on Java innovations in 2022. News on development tools, resources and best practices to accelerate the </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/725485072360406609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/725485072360406609'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2022/03/javaone-is-back.html' title='JavaOne is back!'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTfjntcGLGfNJ_FYzP9KJ-gb692vCSQcMOwEuLPVXMBCZTQM-tMIiRN_81_JjWrmtxgdRF1YfCc7GrvswLxksy5NrSx8G4tDOn94sS7HdWABxToUA5rsAwA41wiRzvD9mPRG3_JHZyGds2GoTg91bUi8mEeOqirb-hxFTYKRlhGSzKZPU8YqPTPkW1mA/s72-c/javaone-logo.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-2743876295452685375</id><published>2020-09-30T12:00:00.105+02:00</published><updated>2023-05-26T12:22:35.184+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Text Blocks</title><summary type="text">Od Java 15 sú textové bloky k dispozícii ako štandard. V Java 13 a 14 je potrebné túto feature povoliť&amp;nbsp;(preview).Zatiaľ posledná verzia platformy Java je ver. 15, alebo keď chcete presnejšie JDK 15 rel. 2020-09-16. Posledná LTS (verzia dlhodobej podpory) bola JDK 11 zo septembra 2018.Text BlocksAj vy máte problém s tým, keď máte dlhý String a potrebujete ho dať do premennej priamo v kóde? </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/2743876295452685375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/2743876295452685375'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2020/09/text-blocks.html' title='Text Blocks'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-5639619454424887098</id><published>2020-09-09T11:02:00.008+02:00</published><updated>2023-06-21T10:47:23.821+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="non-static blocks"/><title type='text'>Java block as a class member</title><summary type="text">Do you know code block? Of course you know! Block of code defines the scope of variables and puts more statemets together. But what about non-static blocks as a class member? You can put them as other class members such as static blocks, class variables and methods.E.g. static block is executed after class is loaded. This example is clasic block of code...

{ 
    // block of statements: </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5639619454424887098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5639619454424887098'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2020/09/java-block-as-class-member.html' title='Java block as a class member'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-7917769309030988641</id><published>2019-06-12T11:31:00.001+02:00</published><updated>2020-02-12T12:35:58.658+01:00</updated><title type='text'>Really Strange Java Code (Really?)</title><summary type="text">

If you put URL directly into your java code, it can be compiled.

The protocol &quot;http:&quot; is interpreted as a label (used to jump into) and rest, behind the slashes &quot;//&quot; is considered as a comment.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/7917769309030988641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/7917769309030988641'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2019/06/realy-strange-java-code.html' title='Really Strange Java Code (Really?)'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-3371753764673931063</id><published>2018-06-06T12:20:00.002+02:00</published><updated>2023-06-05T11:39:42.336+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bug"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Java 8 interface default method does not declare the property</title><summary type="text">Implementing default interface method, don&#39;t expect clasic property in implementing class. This is a Java bug.

When retrieving the properties from some java bean the introspector does not return the properties defined by getter/setter default methods in an interface implemented by the bean.
</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3371753764673931063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3371753764673931063'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2018/06/java-8-interface-default-method-does.html' title='Java 8 interface default method does not declare the property'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-5732877707197711025</id><published>2015-09-26T16:16:00.026+02:00</published><updated>2023-06-05T11:40:53.342+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="JRockit"/><category scheme="http://www.blogger.com/atom/ns#" term="jvm"/><title type='text'>Java 9 countdown</title><summary type="text">Countdown to Java 9 Release DateWhat are the most exciting features expected in Java 9?



Java + REPL (Read-Eval-Print-Loop) = jshell

If you are gonna run a few lines of Java you won’t have to wrap them in a separate project or a method.

Microbenchmarks are coming

The Java Microbenchmarking Harness (JMH) by Alexey Shipilev is taking the next step in its evolution.&amp;nbsp;


Default GC

Java has</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5732877707197711025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5732877707197711025'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2015/09/java-9-countdown.html' title='Java 9 countdown'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-331789566456272571</id><published>2015-02-28T14:15:00.000+01:00</published><updated>2015-03-16T14:20:34.971+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Java 8 / did U know?</title><summary type="text">
JavaScript engine
Engine Nashorn replaces old one (Rhino) as the new default JavaScript engine for the Oracle jvm. Nashorn is faster. It uses the invokedynamic feature of the jvm. &quot;jjs&quot;  is Nashorn command line tool.


Optional
8 comes with the Optional class (java.util.Optional) for avoiding nulls (NullPointerException). It is very similar to Google’s Optional, which is similar to Nat Pryce’s </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/331789566456272571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/331789566456272571'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2015/02/java-8-did-u-know.html' title='Java 8 / did U know?'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-3583240147601706523</id><published>2015-02-04T13:20:00.002+01:00</published><updated>2023-06-05T11:41:42.246+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Get Enum constant of an Enum by String</title><summary type="text">Method cast(Class, String) builds the enum value constant of the specified Enum. The name must match exactly (case)&amp;nbsp;an identifier used to declare an enum constant in the given Enum.


@SuppressWarnings({ &quot;rawtypes&quot;, &quot;unchecked&quot; })
public static &amp;lt;E extends Enum&amp;lt;E&amp;gt;&amp;gt; E cast(String name, Class&amp;amp;lt;E&amp;gt; clazz) {

  if (clazz == null || name == null || name.isEmpty()) {
    return </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3583240147601706523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/3583240147601706523'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2015/02/method-castclass-string-builds-enum.html' title='Get Enum constant of an Enum by String'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-4804758900766298785</id><published>2014-11-19T22:19:00.003+01:00</published><updated>2014-11-19T22:19:58.248+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="smtp"/><title type='text'>Antix SMTP</title><summary type="text">
Antix SMTP is awsome smtp server for developers. This allows you to configure and test the way SMTP&amp;nbsp;servers work. You can create multiple hosts and ports. This&amp;nbsp;fake SMTP server do not send emails actually, it&#39;s only for testing.

Main features:


Fake - will not actually send e-mails, no risk of accidentally e-mailing to a client&amp;nbsp;
Testable - you can create the server in code, then</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/4804758900766298785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/4804758900766298785'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2014/11/antix-smtp.html' title='Antix SMTP'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-6141317606316547530</id><published>2014-07-04T15:36:00.000+02:00</published><updated>2014-07-04T15:36:00.604+02:00</updated><title type='text'>How to manually add new jdk to gentoo </title><summary type="text">
#list available JDKs
java-config-2 -L

#download and unpack tgz from oracle, eg oracle-jdk-1.7
/opt/oracle-jdk-1.7

#link-to /opt/oracle-jdk-1.7
/usr/lib/jvm/oracle-jdk-1.7

#create file /usr/share/java-config-2/vm/oracle-jdk-1.7
VERSION=&quot;Oracle JDK 1.7.0&quot;
JAVA_HOME=/opt/oracle-jdk-1.7
JDK_HOME=${JAVA_HOME}
JAVAC=${JAVA_HOME}/bin/javac
PATH=&quot;${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin&quot;
ROOTPATH=&quot;${</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/6141317606316547530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/6141317606316547530'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2014/07/how-to-manually-add-new-jdk-to-gentoo.html' title='How to manually add new jdk to gentoo '/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-5666800219945857784</id><published>2013-03-04T13:03:00.000+01:00</published><updated>2013-03-04T13:05:40.234+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>How to manually install package</title><summary type="text">When you corrupt your portage or something is wrong with your installation,you can manually download a package, compile and install it...


Packages are located at&amp;nbsp;http://mirrors.kernel.org/gentoo/distfiles



Code:

cd /usr/src

wget http://mirrors.kernel.org/gentoo/distfiles/PACKAGE-x.y.z.tar.bz2

tar -xf PACKAGE-x.y.z.tar.bz2

cd PACKAGE-x.y.z

./configure --prefix /usr

make

make </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5666800219945857784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5666800219945857784'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2013/03/how-to-manually-install-package.html' title='How to manually install package'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-4914378634821929806</id><published>2012-06-06T08:29:00.003+02:00</published><updated>2012-06-06T08:30:35.257+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="tinydns"/><title type='text'>Util to decode multilogs</title><summary type="text">tail -f /var/.../current | tai64nlocal


but if you want to see e.g. in tinydns IP addresses, use next script...






#!/usr/bin/perl -w

#A program to decode tinydns logfiles
#Written by Sean Hunter 
#Copyright (c) 2001 Uncarved Systems Ltd
#
#This is free software released under version 2 
#of the GPL without warrantees of any kind

use strict;

use IPC::Open2;

#Requires djb&#39;s tai64nlocal to </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/4914378634821929806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/4914378634821929806'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2012/06/util-to-decode-multilogs.html' title='Util to decode multilogs'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-5255765808885561197</id><published>2012-05-13T18:41:00.000+02:00</published><updated>2012-05-13T18:41:43.902+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>JAVA 7: Underscores in Numeric Literals</title><summary type="text">In Java 7 an underscore characters (_) can be put anywhere between digits in a numeric literals.&amp;nbsp;&amp;nbsp;If application code contains numbers with so many digits, you can use an underscore character to organize digits to the groups of three, four or as much as you want.&amp;nbsp;This absolutly improves code readability.





Examples:

long myPayment &amp;nbsp; =&amp;nbsp;1_234_567L;
long phoneNumber = </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5255765808885561197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/5255765808885561197'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2012/05/java-7-underscores-in-numeric-literals.html' title='JAVA 7: Underscores in Numeric Literals'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6703515144650039049.post-1133619008586168396</id><published>2012-05-10T13:50:00.000+02:00</published><updated>2012-05-10T13:50:50.954+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="display bug"/><title type='text'>LG panel L245WP HDMI display problem</title><summary type="text">If you have the LG panel L245WP-BN and have it connected over HDMI to an NVIDIA card under Windows Vista/7, you may encounter a problem where the image at resolution 1900x1200 is cropped and off-center.

Here is the solution&amp;nbsp;http://www.voetsjoeba.com/misc/edid/</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/1133619008586168396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6703515144650039049/posts/default/1133619008586168396'/><link rel='alternate' type='text/html' href='http://bielik.blogspot.com/2012/05/lg-panel-l245wp-hdmi-displaz-problem.html' title='LG panel L245WP HDMI display problem'/><author><name>Miloš Bielik</name><uri>http://www.blogger.com/profile/18445116125660716034</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>