René's URL Explorer Experiment


Title: Switch expressions | java.evolved

Open Graph Title: Switch expressions | java.evolved

X Title: Switch expressions | java.evolved

Description: Switch as an expression that returns a value — no break, no fall-through.

Open Graph Description: Switch as an expression that returns a value — no break, no fall-through.

X Description: Switch as an expression that returns a value — no break, no fall-through.

Opengraph URL: https://javaevolved.github.io/language/switch-expressions.html

direct link

Domain: javaevolved.github.io


Hey, it has json ld scripts:
  {
    "@context": "https://schema.org",
    "@type": "TechArticle",
    "headline": "Switch expressions",
    "description": "Switch as an expression that returns a value \u2014 no break, no fall-through.",
    "url": "https://javaevolved.github.io/switch-expressions.html",
    "publisher": {
        "@type": "Organization",
        "name": "java.evolved",
        "url": "https://javaevolved.github.io"
    },
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://javaevolved.github.io/switch-expressions.html"
    }
}
  
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://javaevolved.github.io/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Language",
            "item": "https://javaevolved.github.io/#language"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Switch expressions"
        }
    ]
}
  

theme-color#f97316
mobile-web-app-capableyes
apple-mobile-web-app-status-bar-styleblack-translucent
apple-mobile-web-app-titlejava.evolved
og:typearticle
og:site_namejava.evolved
og:localeen
og:imagehttps://javaevolved.github.io/og/language/switch-expressions.png
og:image:width1200
og:image:height630
og:image:typeimage/png
twitter:cardsummary_large_image
twitter:imagehttps://javaevolved.github.io/og/language/switch-expressions.png

Links:

java.evolvedhttps://javaevolved.github.io/
https://github.com/javaevolved/javaevolved.github.io
← All patternshttps://javaevolved.github.io/
https://javaevolved.github.io/language/text-blocks-for-multiline-strings.html
https://javaevolved.github.io/language/pattern-matching-instanceof.html
Homehttps://javaevolved.github.io/
Languagehttps://javaevolved.github.io/#language
🐛 Report a code issuehttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=code-issue.yml&title=%5BCode%20Issue%5D%20Switch%20expressions&category=language&slug=switch-expressions
🌐 Report a translation issuehttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=translation-issue.yml&title=%5BTranslation%5D%20Switch%20expressions%20%28English%29&locale=en&pattern=switch-expressions&area=Pattern%20content
💡 Suggest a new patternhttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=new-pattern.yml
𝕏https://x.com/intent/tweet?url=https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Fswitch-expressions.html&text=Switch%20expressions%20%E2%80%93%20java.evolved
🦋https://bsky.app/intent/compose?text=Switch%20expressions%20%E2%80%93%20java.evolved%20https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Fswitch-expressions.html
inhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Fswitch-expressions.html
https://www.reddit.com/submit?url=https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Fswitch-expressions.html&title=Switch%20expressions%20%E2%80%93%20java.evolved
Let us know.https://github.com/javaevolved/javaevolved.github.io/issues/new?template=code-issue.yml&title=%5BCode%20Issue%5D%20Switch%20expressions&category=language&slug=switch-expressions
Switch Expressions (JEP 361) ↗https://openjdk.org/jeps/361
View proof source ↗https://github.com/javaevolved/javaevolved.github.io/blob/main/proof/language/SwitchExpressions.java
Language Beginner Compact source files Java 8 public class HelloWorld { public static void main(String[] args) { System.out.println( "Hello, World!"); } } Java 25 void main() { IO.println("Hello, World!"); } Hover to see modern ➜ JDK 25+ → https://javaevolved.github.io/language/compact-source-files.html
Language Intermediate Sealed classes for type hierarchies Java 8 // Anyone can extend Shape public abstract class Shape { } public class Circle extends Shape { } public class Rect extends Shape { } // unknown subclasses possible Java 17+ public sealed interface Shape permits Circle, Rect {} public record Circle(double r) implements Shape {} public record Rect(double w, double h) implements Shape {} Hover to see modern ➜ JDK 17+ → https://javaevolved.github.io/language/sealed-classes.html
Language Intermediate Record patterns (destructuring) Java 8 if (obj instanceof Point) { Point p = (Point) obj; int x = p.getX(); int y = p.getY(); System.out.println(x + y); } Java 21+ if (obj instanceof Point(int x, int y)) { IO.println(x + y); } Hover to see modern ➜ JDK 21+ → https://javaevolved.github.io/language/record-patterns.html
java.evolvedhttps://javaevolved.github.io/
Bruno Borgeshttps://github.com/brunoborges
GitHub Copilothttps://github.com/features/copilot
modern-css.comhttps://modern-css.com
View on GitHubhttps://github.com/javaevolved/javaevolved.github.io

Viewport: width=device-width, initial-scale=1.0

Robots: index, follow


URLs of crawlers that visited me.