🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 40 (from laksa013)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

📄
INDEXABLE
CRAWLED
7 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.3 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://www.w3schools.com/java/java_try_catch.asp
Last Crawled2026-04-15 14:03:04 (7 days ago)
First Indexed2018-11-05 13:28:40 (7 years ago)
HTTP Status Code200
Content
Meta TitleJava Exceptions (Try...Catch)
Meta DescriptionWell organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
Meta Canonicalnull
Boilerpipe Text
Java Exceptions - Try...Catch Java Exceptions As mentioned in the Errors chapter , different types of errors can occur while running a program - such as coding mistakes, invalid input, or unexpected situations. When an error occurs, Java will normally stop and generate an error message. The technical term for this is: Java will throw an exception (throw an error). Exception Handling (try and catch) Exception handling lets you catch and handle errors during runtime - so your program doesn't crash. It uses different keywords: The try statement allows you to define a block of code to be tested for errors while it is being executed. The catch statement allows you to define a block of code to be executed, if an error occurs in the try block. The try and catch keywords come in pairs: Consider the following example: This will generate an error, because myNumbers[10] does not exist. public class Main { public static void main ( String [ ] args ) { int [ ] myNumbers = { 1 , 2 , 3 } ; System . out . println ( myNumbers [ 10 ] ) ; // error! } } The output will be something like this: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10         at Main.main(Main.java:4) Note: ArrayIndexOutOfBoundsException occurs when you try to access an index number that does not exist. Try it Yourself » If an error occurs, we can use try...catch to catch the error and execute some code to handle it: Example public class Main { public static void main ( String [ ] args ) { try { int [ ] myNumbers = { 1 , 2 , 3 } ; System . out . println ( myNumbers [ 10 ] ) ; } catch ( Exception e ) { System . out . println ( "Something went wrong." ) ; } } } The output will be: Something went wrong. Try it Yourself » Finally The finally statement lets you execute code, after try...catch , regardless of the result: Example public class Main { public static void main ( String [ ] args ) { try { int [ ] myNumbers = { 1 , 2 , 3 } ; System . out . println ( myNumbers [ 10 ] ) ; } catch ( Exception e ) { System . out . println ( "Something went wrong." ) ; } finally { System . out . println ( "The 'try catch' is finished." ) ; } } } The output will be: Something went wrong. The 'try catch' is finished. Try it Yourself » The throw keyword The throw statement allows you to create a custom error. The throw statement is used together with an exception type . There are many exception types available in Java: ArithmeticException , FileNotFoundException , ArrayIndexOutOfBoundsException , SecurityException , etc: Example Throw an exception if age is below 18 (print "Access denied"). If age is 18 or older, print "Access granted": public class Main { static void checkAge ( int age ) { if ( age < 18 ) { throw new ArithmeticException ( "Access denied - You must be at least 18 years old." ) ; } else { System . out . println ( "Access granted - You are old enough!" ) ; } } public static void main ( String [ ] args ) { checkAge ( 15 ) ; // Set age to 15 (which is below 18...) } } The output will be: Exception in thread "main" java.lang.ArithmeticException: Access denied - You must be at least 18 years old.         at Main.checkAge(Main.java:4)         at Main.main(Main.java:12) Try it Yourself » If age was 20, you would not get an exception: Example checkAge ( 20 ) ; The output will be: Access granted - You are old enough! Try it Yourself » Errors and Exception Types The table below shows some of the most common errors and exceptions in Java, with a short description of each: Error/Exception Description ArithmeticError Occurs when a numeric calculation goes wrong ArrayIndexOutOfBoundsException Occurs when trying to access an index number that does not exist in an array ClassNotFoundException Occurs when trying to access a class that does not exist FileNotFoundException Occurs when a file cannot be accessed InputMismatchException Occurs when entering wrong input (e.g. text in a numerical input) IOException Occurs when an input or output operation fails NullPointerException Occurs when trying to access an object referece that is null NumberFormatException Occurs when it is not possible to convert a specified string to a numeric type StringIndexOutOfBoundsException Occurs when trying to access a character in a String that does not exist Tip: For a list of all errors and exception types, go to our Java Errors and Exception Types Reference . Exercise ? What is this? Test your skills by answering a few questions about the topics of this page When an error occurs, Java will normally stop and generate an error message. The technical term for this is..
Markdown
[Tutorials]("Tutorials and References") [References]("References") [Exercises]("Exercises and Quizzes") [Certificates]("Certificates") [Menu]("Menu") Search field *×* [See More]() Sign In [★ +1](https://profile.w3schools.com/log-in?redirect_url=https%3A%2F%2Fwww.w3schools.com%2Fjava%2Fjava_try_catch.asp "Your W3Schools Profile") [Get Certified](https://campus.w3schools.com/collections/course-catalog "W3Schools Certificates") [Upgrade](https://order.w3schools.com/plans "Become a PLUS user and unlock powerful features") [Teachers](https://www.w3schools.com/academy/index.php "Contact us about W3Schools Academy for educational institutions") [Spaces](https://www.w3schools.com/spaces/index.php "Get Your Own Website With W3Schools Spaces") [Bootcamps](https://www.w3schools.com/bootcamp/index.php "W3Schools Bootcamps") [Get Certified](https://campus.w3schools.com/collections/course-catalog "W3Schools Certificates") [Upgrade](https://order.w3schools.com/plans "Get personalized learning journey based on your current skills and goals") [Teachers](https://www.w3schools.com/academy/index.php "Contact us about W3Schools Academy for educational institutions") [Spaces](https://spaces.w3schools.com/ "Go to Your W3Schools Space") [Bootcamps](https://www.w3schools.com/bootcamp/index.php "W3Schools Bootcamps")  [My W3Schools](https://pathfinder.w3schools.com/ "My W3Schools") Tutorials References Exercises Certificates [Spaces](https://www.w3schools.com/spaces/index.php "Get Your Own Website With W3Schools Spaces") [Get Certified](https://campus.w3schools.com/collections/course-catalog "W3Schools Certificates") [Plus](https://order.w3schools.com/plans "Become a PLUS user and unlock powerful features") [Bootcamps](https://www.w3schools.com/bootcamp/index.php "W3Schools Bootcamps") [Academy](https://www.w3schools.com/academy/index.php "W3Schools Academy") All our Services [Logout](https://profile.w3schools.com/logout "Logout") [**](https://www.linkedin.com/company/w3schools.com/ "W3Schools on LinkedIn") [**](https://discord.com/invite/w3schools "Join the W3schools community on Discord") [**](https://www.facebook.com/w3schoolscom/ "W3Schools on Facebook") [**](https://www.instagram.com/w3schools.com_official/ "W3Schools on Instagram") × ## **Tutorials** Tutorials filter input × ### HTML and CSS [Learn HTML](https://www.w3schools.com/html/default.asp "HTML Tutorial") [Tutorial](https://www.w3schools.com/html/default.asp "HTML Tutorial") [Reference](https://www.w3schools.com/tags/default.asp "HTML Reference") [Learn CSS](https://www.w3schools.com/css/default.asp "CSS Tutorial") [Tutorial](https://www.w3schools.com/css/default.asp "CSS Tutorial") [Reference](https://www.w3schools.com/cssref/default.asp "CSS Reference") [Learn RWD](https://www.w3schools.com/css/css_rwd_intro.asp "Responsive Web Design Tutorial") [Tutorial](https://www.w3schools.com/css/css_rwd_intro.asp "Responsive Web Design Tutorial") [Learn Bootstrap](https://www.w3schools.com/bootstrap/bootstrap_ver.asp "Bootstrap Tutorials") [Overview](https://www.w3schools.com/bootstrap/bootstrap_ver.asp "Bootstrap Tutorials") [Learn W3.CSS](https://www.w3schools.com/w3css/default.asp "W3.CSS Tutorial") [Tutorial](https://www.w3schools.com/w3css/default.asp "W3.CSS Tutorial") [Reference](https://www.w3schools.com/w3css/w3css_references.asp "W3.CSS Reference") [Learn Sass](https://www.w3schools.com/sass/default.asp "SASS Tutorial") [Tutorial](https://www.w3schools.com/sass/default.asp "SASS Tutorial") [Reference](https://www.w3schools.com/sass/sass_functions_string.asp "SASS Reference") [Learn Colors](https://www.w3schools.com/colors/default.asp "Colors Tutorial") [Tutorial](https://www.w3schools.com/colors/default.asp "Colors Tutorial") [Reference](https://www.w3schools.com/colors/colors_fs595.asp "Colors Reference") [Learn Icons](https://www.w3schools.com/icons/default.asp "Icons Tutorial") [Tutorial](https://www.w3schools.com/icons/default.asp "Icons Tutorial") [Reference](https://www.w3schools.com/icons/icons_reference.asp "Icons Reference") [Learn SVG](https://www.w3schools.com/graphics/svg_intro.asp "SVG Tutorial") [Tutorial](https://www.w3schools.com/graphics/svg_intro.asp "SVG Tutorial") [Reference](https://www.w3schools.com/graphics/svg_reference.asp "SVG Reference") [Learn Canvas](https://www.w3schools.com/graphics/canvas_intro.asp "Canvas Tutorial") [Tutorial](https://www.w3schools.com/graphics/canvas_intro.asp "Canvas Tutorial") [Reference](https://www.w3schools.com/graphics/canvas_reference.asp "Canvas Reference") [Learn Graphics](https://www.w3schools.com/graphics/default.asp "Graphics Tutorial") [Tutorial](https://www.w3schools.com/graphics/default.asp "Graphics Tutorial") [Learn UTF-8 and Emojis](https://www.w3schools.com/charsets/default.asp "UTF-8 and Emojis Reference") [Reference](https://www.w3schools.com/charsets/default.asp "UTF-8 and Emojis Reference") [Learn How To](https://www.w3schools.com/howto/default.asp "How To - Code Snippets") [Tutorial](https://www.w3schools.com/howto/default.asp "How To - Code Snippets") ### Data Analytics [Learn AI](https://www.w3schools.com/ai/default.asp "Artificial Intelligence Tutorial") [Tutorial](https://www.w3schools.com/ai/default.asp "Artificial Intelligence Tutorial") [Learn Generative AI](https://www.w3schools.com/gen_ai/index.php "Generative AI Tutorial") [Tutorial](https://www.w3schools.com/gen_ai/index.php "Generative AI Tutorial") [Learn ChatGPT-3.5](https://www.w3schools.com/gen_ai/chatgpt-3-5/index.php "ChatGPT-3.5 Tutorial") [Tutorial](https://www.w3schools.com/gen_ai/chatgpt-3-5/index.php "ChatGPT-3.5 Tutorial") [Learn ChatGPT-4](https://www.w3schools.com/gen_ai/chatgpt-4/index.php "ChatGPT-4 Tutorial") [Tutorial](https://www.w3schools.com/gen_ai/chatgpt-4/index.php "ChatGPT-4 Tutorial") [Learn Google Bard](https://www.w3schools.com/gen_ai/bard/index.php "Google Bard Tutorial") [Tutorial](https://www.w3schools.com/gen_ai/bard/index.php "Google Bard Tutorial") [Learn Machine Learning](https://www.w3schools.com/python/python_ml_getting_started.asp "Machine Learning Tutorial") [Tutorial](https://www.w3schools.com/python/python_ml_getting_started.asp "Machine Learning Tutorial") [Learn DSA](https://www.w3schools.com/dsa/index.php "DSA - Data Structures and Algorithms") [Tutorial](https://www.w3schools.com/dsa/index.php "DSA - Data Structures and Algorithms") [Learn Data Science](https://www.w3schools.com/datascience/default.asp "Data Science Tutorial") [Tutorial](https://www.w3schools.com/datascience/default.asp "Data Science Tutorial") [Learn NumPy](https://www.w3schools.com/python/numpy/default.asp "NumPy Tutorial") [Tutorial](https://www.w3schools.com/python/numpy/default.asp "NumPy Tutorial") [Learn Pandas](https://www.w3schools.com/python/pandas/default.asp "Pandas Tutorial") [Tutorial](https://www.w3schools.com/python/pandas/default.asp "Pandas Tutorial") [Learn SciPy](https://www.w3schools.com/python/scipy/index.php "SciPy Tutorial") [Tutorial](https://www.w3schools.com/python/scipy/index.php "SciPy Tutorial") [Learn Matplotlib](https://www.w3schools.com/python/matplotlib_intro.asp "Matplotlib Tutorial") [Tutorial](https://www.w3schools.com/python/matplotlib_intro.asp "Matplotlib Tutorial") [Learn Statistics](https://www.w3schools.com/statistics/index.php "Statistics Tutorial") [Tutorial](https://www.w3schools.com/statistics/index.php "Statistics Tutorial") [Learn Excel](https://www.w3schools.com/excel/index.php "Excel Tutorial") [Tutorial](https://www.w3schools.com/excel/index.php "Excel Tutorial") [Learn Google Sheets](https://www.w3schools.com/googlesheets/index.php "Google Sheets Tutorial") [Tutorial](https://www.w3schools.com/googlesheets/index.php "Google Sheets Tutorial") ### Web Building [Create a Website](https://www.w3schools.com/spaces/index.php "Get Your Own Website With W3schools Spaces") [Create a Server NEW](https://www.w3schools.com/spaces/index.php "Get Your Own Server With W3schools Spaces") [Where To Start](https://www.w3schools.com/where_to_start.asp "Where To Start - Web Development") [Web Templates](https://www.w3schools.com/w3css/w3css_templates.asp "Free Web Templates") [Web Statistics](https://www.w3schools.com/browsers/default.asp "Web Statistics") [Web Certificates](https://campus.w3schools.com/ "Certificates") [Web Development](https://www.w3schools.com/whatis/default.asp "Web Development Roadmaps") [Introduction to Programming](https://www.w3schools.com/programming/index.php "Introduction to Programming") [Introduction to HTML & CSS](https://www.w3schools.com/htmlcss/default.asp "HTML & CSS") [Code Editor](https://www.w3schools.com/tryit/default.asp "Try it - Code Editor") [Test Your Typing Speed](https://www.w3schools.com/typingspeed/default.asp "Test Your Typing Speed") [Play a Code Game](https://www.w3schools.com/codegame/index.html "Play a Code Game") [Web Development Tools](https://www.w3schools.com/tools/index.php "Web Development Tools") [Cyber Security](https://www.w3schools.com/cybersecurity/index.php "Cyber Security Tutorial") [Accessibility](https://www.w3schools.com/accessibility/index.php "Accessibility Security Tutorial") [Join our Newsletter](https://campus.w3schools.com/pages/newsletter "W3Schools Newsletter") ### JavaScript [Learn JavaScript](https://www.w3schools.com/js/default.asp "JavaScript Tutorial") [Tutorial](https://www.w3schools.com/js/default.asp "JavaScript Tutorial") [Reference](https://www.w3schools.com/jsref/default.asp "JavaScript Reference") [Learn React](https://www.w3schools.com/react/default.asp "React Tutorial") [Tutorial](https://www.w3schools.com/react/default.asp "React Tutorial") [Learn jQuery](https://www.w3schools.com/jquery/default.asp "jQuery Tutorial") [Tutorial](https://www.w3schools.com/jquery/default.asp "jQuery Tutorial") [Reference](https://www.w3schools.com/jquery/jquery_ref_overview.asp "jQuery Reference") [Learn Vue](https://www.w3schools.com/vue/index.php "Vue Tutorial") [Tutorial](https://www.w3schools.com/vue/index.php "Vue Tutorial") [Reference](https://www.w3schools.com/vue/vue_ref_builtin-attributes.php "Vue Reference") [Learn Angular](https://www.w3schools.com/angular/default.asp "Angular Tutorial") [Tutorial](https://www.w3schools.com/angular/default.asp "Angular Tutorial") [Learn AngularJS](https://www.w3schools.com/angularjs/default.asp "AngularJS Tutorial") [Tutorial](https://www.w3schools.com/angularjs/default.asp "AngularJS Tutorial") [Reference](https://www.w3schools.com/angularjs/angularjs_ref_directives.asp "AngularJS Reference") [Learn JSON](https://www.w3schools.com/js/js_json_intro.asp "JSON Tutorial") [Tutorial](https://www.w3schools.com/js/js_json_intro.asp "JSON Tutorial") [Reference](https://www.w3schools.com/jsref/jsref_obj_json.asp "JSON Reference") [Learn AJAX](https://www.w3schools.com/js/js_ajax_intro.asp "AJAX Tutorial") [Tutorial](https://www.w3schools.com/js/js_ajax_intro.asp "AJAX Tutorial") [Learn AppML](https://www.w3schools.com/appml/default.asp "AppML Tutorial") [Tutorial](https://www.w3schools.com/appml/default.asp "AppML Tutorial") [Reference](https://www.w3schools.com/appml/appml_reference.asp "AppML Reference") [Learn W3.JS](https://www.w3schools.com/w3js/default.asp "W3.JS Tutorial") [Tutorial](https://www.w3schools.com/w3js/default.asp "W3.JS Tutorial") [Reference](https://www.w3schools.com/w3js/w3js_references.asp "W3.JS Reference") ### Web Building [Create a Website](https://www.w3schools.com/spaces/index.php "Get Your Own Website With W3schools Spaces") [Create a Server NEW](https://www.w3schools.com/spaces/index.php "Get Your Own Server With W3schools Spaces") [Where To Start](https://www.w3schools.com/where_to_start.asp "Where To Start - Web Development") [Web Templates](https://www.w3schools.com/w3css/w3css_templates.asp "Free Web Templates") [Web Statistics](https://www.w3schools.com/browsers/default.asp "Web Statistics") [Web Certificates](https://campus.w3schools.com/ "Certificates") [Web Development](https://www.w3schools.com/whatis/default.asp "Web Development Roadmaps") [Introduction to Programming](https://www.w3schools.com/programming/index.php "Introduction to Programming") [Introduction to HTML & CSS](https://www.w3schools.com/htmlcss/default.asp "HTML & CSS") [Code Editor](https://www.w3schools.com/tryit/default.asp "Try it - Code Editor") [Test Your Typing Speed](https://www.w3schools.com/typingspeed/default.asp "Test Your Typing Speed") [Play a Code Game](https://www.w3schools.com/codegame/index.html "Play a Code Game") [Web Developer Tools](https://www.w3schools.com/tools/index.php "Web Developer Tools") [Cyber Security](https://www.w3schools.com/cybersecurity/index.php "Cyber Security Tutorial") [Accessibility](https://www.w3schools.com/accessibility/index.php "Accessibility Security Tutorial") [Join our Newsletter](https://campus.w3schools.com/pages/newsletter "W3Schools Newsletter") ### Backend [Learn Python](https://www.w3schools.com/python/default.asp "Python Tutorial") [Tutorial](https://www.w3schools.com/python/default.asp "Python Tutorial") [Reference](https://www.w3schools.com/python/python_reference.asp "Python Reference") [Learn SQL](https://www.w3schools.com/sql/default.asp "SQL Tutorial") [Tutorial](https://www.w3schools.com/sql/default.asp "SQL Tutorial") [Reference](https://www.w3schools.com/sql/sql_ref_keywords.asp "SQL Reference") [Learn MySQL](https://www.w3schools.com/mysql/default.asp "MySQL Tutorial") [Tutorial](https://www.w3schools.com/mysql/default.asp "MySQL Tutorial") [Reference](https://www.w3schools.com/mysql/mysql_datatypes.asp "MySQL Reference") [Learn PHP](https://www.w3schools.com/php/default.asp "PHP Tutorial") [Tutorial](https://www.w3schools.com/php/default.asp "PHP Tutorial") [Reference](https://www.w3schools.com/php/php_ref_overview.asp "PHP Reference") [Learn Java](https://www.w3schools.com/java/default.asp "Java Tutorial") [Tutorial](https://www.w3schools.com/java/default.asp "Java Tutorial") [Reference](https://www.w3schools.com/java/java_ref_reference.asp "Java Reference") [Learn C](https://www.w3schools.com/c/index.php "C Tutorial") [Tutorial](https://www.w3schools.com/c/index.php "C Tutorial") [Reference](https://www.w3schools.com/c/c_ref_reference.php "C Reference") [Learn C++](https://www.w3schools.com/cpp/default.asp "C++ Tutorial") [Tutorial](https://www.w3schools.com/cpp/default.asp "C++ Tutorial") [Reference](https://www.w3schools.com/cpp/cpp_ref_reference.asp "C++ Reference") [Learn C\#](https://www.w3schools.com/cs/index.php "C# Tutorial") [Tutorial](https://www.w3schools.com/cs/index.php "C# Tutorial") [Learn R](https://www.w3schools.com/r/default.asp "R Tutorial") [Tutorial](https://www.w3schools.com/r/default.asp "R Tutorial") [Learn Kotlin](https://www.w3schools.com/kotlin/index.php "Kotlin Tutorial") [Tutorial](https://www.w3schools.com/kotlin/index.php "Kotlin Tutorial") [Learn Rust](https://www.w3schools.com/rust/index.php "Rust Tutorial") [Tutorial](https://www.w3schools.com/rust/index.php "Rust Tutorial") [Learn Go](https://www.w3schools.com/go/index.php "Go Tutorial") [Tutorial](https://www.w3schools.com/go/index.php "Go Tutorial") [Learn Django](https://www.w3schools.com/django/index.php "Django Tutorial") [Tutorial](https://www.w3schools.com/django/index.php "Django Tutorial") [Reference](https://www.w3schools.com/django/django_ref_template_tags.php "Django Reference") [Learn PostgreSQL](https://www.w3schools.com/postgresql/index.php "PostgreSQL Tutorial") [Tutorial](https://www.w3schools.com/postgresql/index.php "PostgreSQL Tutorial") [Learn TypeScript](https://www.w3schools.com/typescript/index.php "TypeScript Tutorial") [Tutorial](https://www.w3schools.com/typescript/index.php "TypeScript Reference") [Learn ASP](https://www.w3schools.com/asp/default.asp "ASP Tutorial") [Tutorial](https://www.w3schools.com/asp/default.asp "ASP Tutorial") [Reference](https://www.w3schools.com/asp/asp_ref_vbscript_functions.asp "ASP Reference") [Learn Node.js](https://www.w3schools.com/nodejs/default.asp "Node.js Tutorial") [Tutorial](https://www.w3schools.com/nodejs/default.asp "Node.js Tutorial") [Reference](https://www.w3schools.com/nodejs/ref_modules.asp "Node.js Reference") [Learn Raspberry Pi](https://www.w3schools.com/nodejs/nodejs_raspberrypi.asp "Raspberry Pi Tutorial") [Tutorial](https://www.w3schools.com/nodejs/nodejs_raspberrypi.asp "Raspberry Pi Tutorial") [Learn Swift](https://www.w3schools.com/swift/default.asp "Swift Tutorial") [Tutorial](https://www.w3schools.com/swift/default.asp "Swift Tutorial") [Learn Git](https://www.w3schools.com/git/default.asp "Git Tutorial") [Tutorial](https://www.w3schools.com/git/default.asp "Git Tutorial") [Learn Bash](https://www.w3schools.com/bash/index.php "Bash Tutorial") [Tutorial](https://www.w3schools.com/bash/index.php "Bash Tutorial") [Learn MongoDB](https://www.w3schools.com/mongodb/index.php "MongoDB Tutorial") [Tutorial](https://www.w3schools.com/mongodb/index.php "MongoDB Tutorial") [Learn AWS Cloud](https://www.w3schools.com/aws/index.php "AWS Cloud Tutorial") [Tutorial](https://www.w3schools.com/aws/index.php "AWS Cloud Tutorial") [Learn XML](https://www.w3schools.com/xml/default.asp "XML Tutorial") [Tutorial](https://www.w3schools.com/xml/default.asp "XML Tutorial") [Reference](https://www.w3schools.com/xml/dom_nodetype.asp "XML Reference") ### Data Analytics [Learn AI](https://www.w3schools.com/ai/default.asp "Artificial Intelligence Tutorial") [Tutorial](https://www.w3schools.com/ai/default.asp "Artificial Intelligence Tutorial") [Learn Generative AI](https://www.w3schools.com/gen_ai/index.php "Generative AI Tutorial") [Tutorial](https://www.w3schools.com/gen_ai/index.php "Generative AI Tutorial") [Learn ChatGPT-3.5](https://www.w3schools.com/gen_ai/chatgpt-3-5/index.php "ChatGPT-3.5 Tutorial") [Tutorial](https://www.w3schools.com/gen_ai/chatgpt-3-5/index.php "ChatGPT-3.5 Tutorial") [Learn ChatGPT-4](https://www.w3schools.com/gen_ai/chatgpt-4/index.php "ChatGPT-4 Tutorial") [Tutorial](https://www.w3schools.com/gen_ai/chatgpt-4/index.php "ChatGPT-4 Tutorial") [Learn Google Bard](https://www.w3schools.com/gen_ai/bard/index.php "Google Bard Tutorial") [Tutorial](https://www.w3schools.com/gen_ai/bard/index.php "Google Bard Tutorial") [Learn Machine Learning](https://www.w3schools.com/python/python_ml_getting_started.asp "Machine Learning Tutorial") [Tutorial](https://www.w3schools.com/python/python_ml_getting_started.asp "Machine Learning Tutorial") [Learn DSA](https://www.w3schools.com/dsa/index.php "DSA - Data Structures and Algorithms") [Tutorial](https://www.w3schools.com/dsa/index.php "DSA - Data Structures and Algorithms ") [Learn Data Science](https://www.w3schools.com/datascience/default.asp "Data Science Tutorial") [Tutorial](https://www.w3schools.com/datascience/default.asp "Data Science Tutorial") [Learn NumPy](https://www.w3schools.com/python/numpy/default.asp "NumPy Tutorial") [Tutorial](https://www.w3schools.com/python/numpy/default.asp "NumPy Tutorial") [Learn Pandas](https://www.w3schools.com/python/pandas/default.asp "Pandas Tutorial") [Tutorial](https://www.w3schools.com/python/pandas/default.asp "Pandas Tutorial") [Learn SciPy](https://www.w3schools.com/python/scipy/index.php "SciPy Tutorial") [Tutorial](https://www.w3schools.com/python/scipy/index.php "SciPy Tutorial") [Learn Matplotlib](https://www.w3schools.com/python/matplotlib_intro.asp "Matplotlib Tutorial") [Tutorial](https://www.w3schools.com/python/matplotlib_intro.asp "Matplotlib Tutorial") [Learn Statistics](https://www.w3schools.com/statistics/index.php "Statistics Tutorial") [Tutorial](https://www.w3schools.com/statistics/index.php "Statistics Tutorial") [Learn Excel](https://www.w3schools.com/excel/index.php "Excel Tutorial") [Tutorial](https://www.w3schools.com/excel/index.php "Excel Tutorial") [Learn Google Sheets](https://www.w3schools.com/googlesheets/index.php "Google Sheets Tutorial") [Tutorial](https://www.w3schools.com/googlesheets/index.php "Google Sheets Tutorial") ### Web Building [Create a Website](https://www.w3schools.com/spaces/index.php "Get Your Own Website With W3schools Spaces") [Create a Server NEW](https://www.w3schools.com/spaces/index.php "Get Your Own Server With W3schools Spaces") [Where To Start](https://www.w3schools.com/where_to_start.asp "Where To Start - Web Development") [Web Templates](https://www.w3schools.com/w3css/w3css_templates.asp "Free Web Templates") [Web Statistics](https://www.w3schools.com/browsers/default.asp "Web Statistics") [Web Certificates](https://campus.w3schools.com/ "Certificates") [Web Development](https://www.w3schools.com/whatis/default.asp "Web Development Roadmaps") [Introduction to Programming](https://www.w3schools.com/programming/index.php "Introduction to Programming") [Introduction to HTML & CSS](https://www.w3schools.com/htmlcss/default.asp "HTML & CSS") [Code Editor](https://www.w3schools.com/tryit/default.asp "Try it - Code Editor") [Test Your Typing Speed](https://www.w3schools.com/typingspeed/default.asp "Test Your Typing Speed") [Play a Code Game](https://www.w3schools.com/codegame/index.html "Play a Code Game") [Web Developer Tools](https://www.w3schools.com/tools/index.php "Web Developer Tools") [Cyber Security](https://www.w3schools.com/cybersecurity/index.php "Cyber Security Tutorial") [Accessibility](https://www.w3schools.com/accessibility/index.php "Accessibility Security Tutorial") [Join our Newsletter](https://campus.w3schools.com/pages/newsletter "W3Schools Newsletter") × ## **References** References filter input × ### HTML and CSS [HTML Tags Reference](https://www.w3schools.com/tags/default.asp "HTML Tag Reference") [CSS Reference](https://www.w3schools.com/cssref/default.asp "CSS Reference") [W3.CSS Reference](https://www.w3schools.com/w3css/w3css_references.asp "W3.CSS Reference") [Bootstrap 3 Reference](https://www.w3schools.com/bootstrap/bootstrap_ref_all_classes.asp "Bootstrap3 Reference") [Bootstrap 4 Reference](https://www.w3schools.com/bootstrap4/bootstrap_ref_all_classes.asp "Bootstrap4 Reference") [Color Names](https://www.w3schools.com/colors/colors_names.asp "Color Names") [Icons Reference](https://www.w3schools.com/icons/default.asp "Icons Reference") [SVG Reference](https://www.w3schools.com/graphics/svg_reference.asp "SVG Reference") [Canvas Reference](https://www.w3schools.com/graphics/canvas_reference.asp "Canvas Reference") [Sass Reference](https://www.w3schools.com/sass/sass_functions_string.php "SASS Reference") [UTF-8 Charset Reference](https://www.w3schools.com/charsets/default.asp "UTF-8 Reference") [UTF-8 Emojis Reference](https://www.w3schools.com/charsets/ref_emoji_smileys.asp "UTF-8 Emojis Reference") ### JavaScript [JavaScript Reference](https://www.w3schools.com/jsref/default.asp "JavaScript Reference") [HTML DOM Reference](https://www.w3schools.com/jsref/dom_obj_document.asp "HTML DOM Reference") [jQuery Reference](https://www.w3schools.com/jquery/jquery_ref_overview.asp "jQuery Reference") [Vue Reference](https://www.w3schools.com/vue/vue_ref_builtin-attributes.php "Vue Reference") [Angular Reference](https://www.w3schools.com/angular/angularjs_ref_directives.asp "Angular Reference") [JSON Reference](https://www.w3schools.com/jsref/jsref_obj_json.asp "JSON Reference") [AppML Reference](https://www.w3schools.com/appml/appml_reference.asp "AppML Reference") [W3.JS Reference](https://www.w3schools.com/e3js/w3js_references.asp "W3.JS Reference") ### Backend [Python Reference](https://www.w3schools.com/python/python_reference.asp "Python Reference") [SQL Reference](https://www.w3schools.com/sql/sql_ref_keywords.asp "SQL Reference") [MySQL Reference](https://www.w3schools.com/mysql/mysql_datatypes.asp "MySQL Reference") [PHP Reference](https://www.w3schools.com/php/php_ref_overview.asp "PHP Reference") [Java Reference](https://www.w3schools.com/java/java_ref_reference.asp "Java Reference") [C Reference](https://www.w3schools.com/c/c_ref_reference.php "C Reference") [C++ Reference](https://www.w3schools.com/cpp/cpp_ref_reference.asp "C++ Reference") [Django Reference](https://www.w3schools.com/django/django_ref_template_tags.php "Django Reference") [ASP Reference](https://www.w3schools.com/asp/asp_ref_vbscript_functions.asp "ASP Reference") [Node.js Reference](https://www.w3schools.com/nodejs/ref_modules.asp "Node.js Reference") [XML Reference](https://www.w3schools.com/xml/dom_nodetype.asp "XML Reference") × ## **Exercises** Excercises filter input × ### HTML and CSS [HTML](https://www.w3schools.com/html/html_exercises.asp "HTML Exercises") [Exercise](https://www.w3schools.com/html/html_exercises.asp "HTML Exercises") [Quiz](https://www.w3schools.com/html/html_quiz.asp "HTML Quizzes") [Challenge](https://www.w3schools.com/html/html_challenges.asp "HTML Code Challenges") [CSS](https://www.w3schools.com/css/css_exercises.asp "CSS Exercises") [Exercise](https://www.w3schools.com/css/css_exercises.asp "CSS Exercises") [Quiz](https://www.w3schools.com/css/css_quiz.asp "CSS Quizzes") [Challenge](https://www.w3schools.com/css/css_challenges.asp "CSS Code Challenges") [Bootstrap 3](https://www.w3schools.com/bootstrap/bootstrap_exercises.asp "Bootstrap 3 Exercises") [Exercise](https://www.w3schools.com/bootstrap/bootstrap_exercises.asp "Bootstrap 3 Exercises") [Quiz](https://www.w3schools.com/bootstrap/bootstrap_quiz.asp "Bootstrap 3 Quizzes") [Bootstrap 4](https://www.w3schools.com/bootstrap4/bootstrap_exercises.asp "Bootstrap 4 Exercises") [Exercise](https://www.w3schools.com/bootstrap4/bootstrap_exercises.asp "Bootstrap 4 Exercises") [Quiz](https://www.w3schools.com/bootstrap4/bootstrap_quiz.asp "Bootstrap 4 Quizzes") [Bootstrap 5](https://www.w3schools.com/bootstrap5/bootstrap_exercises.php "Bootstrap 5 Exercises") [Exercise](https://www.w3schools.com/bootstrap5/bootstrap_exercises.php "Bootstrap 5 Exercises") [Quiz](https://www.w3schools.com/bootstrap5/bootstrap_quiz.php "Bootstrap 5 Quizzes") ### Data Analytics [DSA](https://www.w3schools.com/dsa/dsa_exercises.php "DSA Exercises") [Exercise](https://www.w3schools.com/dsa/dsa_exercises.php "DSA Exercises") [Quiz](https://www.w3schools.com/dsa/dsa_quiz.php "DSA Quizzes") [NumPy](https://www.w3schools.com/python/numpy/numpy_exercises.asp "NumPy Exercises") [Exercise](https://www.w3schools.com/python/numpy/numpy_exercises.asp "NumPy Exercises") [Quiz](https://www.w3schools.com/python/numpy/numpy_quiz.asp "NumPy Quizzes") [Pandas](https://www.w3schools.com/python/pandas/pandas_exercises.asp "Pandas Exercises") [Exercise](https://www.w3schools.com/python/pandas/pandas_exercises.asp "Pandas Exercises") [Quiz](https://www.w3schools.com/python/pandas/pandas_quiz.asp "Pandas Quizzes") [SciPy](https://www.w3schools.com/python/scipy/scipy_exercises.php "SciPy Exercises") [Exercise](https://www.w3schools.com/python/scipy/scipy_exercises.php "SciPy Exercises") [Quiz](https://www.w3schools.com/python/scipy/scipy_quiz.php "SciPy Quizzes") [Excel](https://www.w3schools.com/excel/excel_exercises.php "Excel Exercises") [Exercise](https://www.w3schools.com/excel/excel_exercises.php "Excel Exercises") [What is an Exercise?](https://www.w3schools.com/exercises/index.php "W3Schools Exercises") [What is a Quiz?](https://www.w3schools.com/quiztest/default.asp "W3Schools Quizzes") [What is a Challenge?](https://www.w3schools.com/challenges/index.php "W3Schools Challenges") [What are Practice Problems?](https://www.w3schools.com/practice/index.php "W3Schools Practice Problems") ### JavaScript [JavaScript](https://www.w3schools.com/js/js_exercises.asp "JavaScript Exercises") [Exercise](https://www.w3schools.com/js/js_exercises.asp "JavaScript Exercises") [Quiz](https://www.w3schools.com/js/js_quiz.asp "JavaScript Quizzes") [React](https://www.w3schools.com/react/react_exercises.asp "React Exercises") [Exercise](https://www.w3schools.com/react/react_exercises.asp "React Exercises") [Quiz](https://www.w3schools.com/react/react_quiz.asp "React Quizzes") [jQuery](https://www.w3schools.com/jquery/jquery_exercises.asp "jQuery Exercises") [Exercise](https://www.w3schools.com/jquery/jquery_exercises.asp "jQuery Exercises") [Quiz](https://www.w3schools.com/jquery/jquery_quiz.asp "jQuery Quizzes") [Vue](https://www.w3schools.com/vue/vue_exercises.php "Vue Exercises") [Exercise](https://www.w3schools.com/vue/vue_exercises.php "Vue Exercises") [Quiz](https://www.w3schools.com/vue/vue_quiz.php "Vue Quizzes") [Angular](https://www.w3schools.com/angular/angular_exercises.asp "Angular Exercises") [Exercise](https://www.w3schools.com/angular/angular_exercises.asp "Angular Exercises") [Quiz](https://www.w3schools.com/angular/angular_quiz.asp "Angular Quizzes") ### Backend [Python](https://www.w3schools.com/python/python_exercises.asp "Python Exercises") [Exercise](https://www.w3schools.com/python/python_exercises.asp "Python Exercises") [Quiz](https://www.w3schools.com/python/python_quiz.asp "Python Quizzes") [Challenge](https://www.w3schools.com/python/python_challenges.asp "Python Code Challenges") [Problems](https://www.w3schools.com/practice/practice_python.php "Python Practice Problems") [SQL](https://www.w3schools.com/sql/sql_exercises.asp "SQL Exercises") [Exercise](https://www.w3schools.com/sql/sql_exercises.asp "SQL Exercises") [Quiz](https://www.w3schools.com/sql/sql_quiz.asp "SQL Quizzes") [MySQL](https://www.w3schools.com/mysql/mysql_exercises.asp "MySQL Exercises") [Exercise](https://www.w3schools.com/mysql/mysql_exercises.asp "MySQL Exercises") [Quiz](https://www.w3schools.com/mysql/mysql_quiz.asp "MySQL Quizzes") [PHP](https://www.w3schools.com/php/php_exercises.asp "PHP Exercises") [Exercise](https://www.w3schools.com/php/php_exercises.asp "PHP Exercises") [Quiz](https://www.w3schools.com/php/php_quiz.asp "PHP Quizzes") [Problems](https://www.w3schools.com/practice/practice_php.php "PHP Practice Problems") [Java](https://www.w3schools.com/java/java_exercises.asp "Java Exercises") [Exercise](https://www.w3schools.com/java/java_exercises.asp "Java Exercises") [Quiz](https://www.w3schools.com/java/java_quiz.asp "Java Quizzes") [Challenge](https://www.w3schools.com/java/java_challenges.asp "Java Code Challenges") [Problems](https://www.w3schools.com/practice/practice_java.php "Java Practice Problems") [C](https://www.w3schools.com/c/c_exercises.php "C Exercises") [Exercise](https://www.w3schools.com/c/c_exercises.php "C Exercises") [Quiz](https://www.w3schools.com/c/c_quiz.php "C Quizzes") [Challenge](https://www.w3schools.com/c/c_challenges.php "C Challenges") [Problems](https://www.w3schools.com/practice/practice_c.php "C Practice Problems") [C++](https://www.w3schools.com/cpp/cpp_exercises.asp "C++ Exercises") [Exercise](https://www.w3schools.com/cpp/cpp_exercises.asp "C++ Exercises") [Quiz](https://www.w3schools.com/cpp/cpp_quiz.asp "C++ Quizzes") [Challenge](https://www.w3schools.com/cpp/cpp_challenges.asp "C++ Code Challenges") [Problems](https://www.w3schools.com/practice/practice_cpp.php "C++ Practice Problems") [C\#](https://www.w3schools.com/cs/cs_exercises.php "C# Exercises") [Exercise](https://www.w3schools.com/cs/cs_exercises.php "C# Exercises") [Quiz](https://www.w3schools.com/cs/cs_quiz.php "C# Quizzes") [Problems](https://www.w3schools.com/practice/practice_csharp.php "C# Practice Problems") [R](https://www.w3schools.com/r/r_exercises.asp "R Exercises") [Exercise](https://www.w3schools.com/r/r_exercises.asp "R Exercises") [Quiz](https://www.w3schools.com/r/r_quiz.asp "R Quizzes") [Problems](https://www.w3schools.com/practice/practice_r.php "R Practice Problems") [Kotlin](https://www.w3schools.com/kotlin/kotlin_exercises.php "Kotlin Exercises") [Exercise](https://www.w3schools.com/kotlin/kotlin_exercises.php "Kotlin Exercises") [Quiz](https://www.w3schools.com/kotlin/kotlin_quiz.php "Kotlin Quizzes") [Problems](https://www.w3schools.com/practice/practice_kotlin.php "Kotlin Practice Problems") [Django](https://www.w3schools.com/django/django_exercises.php "Django Exercises") [Exercise](https://www.w3schools.com/django/django_exercises.php "Django Exercises") [Quiz](https://www.w3schools.com/django/django_quiz.php "Django Quizzes") [Node.js](https://www.w3schools.com/nodejs/nodejs_exercises.asp "Node.js Exercises") [Exercise](https://www.w3schools.com/nodejs/nodejs_exercises.asp "Node.js Exercises") [Quiz](https://www.w3schools.com/nodejs/nodejs_quiz.asp "Node.js Quizzes") [Problems](https://www.w3schools.com/practice/practice_javascript.php "Node.js Practice Problems") [PostgreSQL](https://www.w3schools.com/postgresql/postgresql_exercises.php "PostgreSQL Exercises") [Exercise](https://www.w3schools.com/postgresql/postgresql_exercises.php "PostgreSQL Exercises") [Quiz](https://www.w3schools.com/postgresql/postgresql_quiz.php "PostgreSQL Quizzes") [TypeScript](https://www.w3schools.com/typescript/typescript_exercises.php "TypeScript Exercises") [Exercise](https://www.w3schools.com/typescript/typescript_exercises.php "TypeScript Exercises") [Quiz](https://www.w3schools.com/typescript/typescript_quiz.php "TypeScript Quizzes") [Problems](https://www.w3schools.com/practice/practice_typescript.php "TypeScript Practice Problems") [Git](https://www.w3schools.com/git/git_exercises.asp "Git Exercises") [Exercise](https://www.w3schools.com/git/git_exercises.asp "Git Exercises") [Quiz](https://www.w3schools.com/git/git_quiz.asp "Git Quizzes") [Bash](https://www.w3schools.com/bash/bash_exercises.php "Bash Exercises") [Exercise](https://www.w3schools.com/bash/bash_exercises.php "Bash Exercises") [Quiz](https://www.w3schools.com/bash/bash_quiz.php "Bash Quizzes") [Go](https://www.w3schools.com/go/go_exercises.php "Go Exercises") [Exercise](https://www.w3schools.com/go/go_exercises.php "Go Exercises") [MongoDB](https://www.w3schools.com/mongodb/mongodb_exercises.php "MongoDB Exercises") [Exercise](https://www.w3schools.com/mongodb/mongodb_exercises.php "MongoDB Exercises") [Swift](https://www.w3schools.com/swift/swift_exercises.asp "Swift Exercises") [Exercise](https://www.w3schools.com/swift/swift_exercises.asp "Swift Exercises") [Quiz](https://www.w3schools.com/swift/swift_quiz.asp "Swift Quizzes") [Problems](https://www.w3schools.com/practice/practice_swift.php "Swift Practice Problems") ### Data Analytics [DSA](https://www.w3schools.com/dsa/dsa_exercises.php "DSA Exercises") [Exercise](https://www.w3schools.com/dsa/dsa_exercises.php "DSA Exercises") [Quiz](https://www.w3schools.com/dsa/dsa_quiz.php "DSA Quizzes") [NumPy](https://www.w3schools.com/python/numpy/numpy_exercises.asp "NumPy Exercises") [Exercise](https://www.w3schools.com/python/numpy/numpy_exercises.asp "NumPy Exercises") [Quiz](https://www.w3schools.com/python/numpy/numpy_quiz.asp "NumPy Quizzes") [Pandas](https://www.w3schools.com/python/pandas/pandas_exercises.asp "Pandas Exercises") [Exercise](https://www.w3schools.com/python/pandas/pandas_exercises.asp "Pandas Exercises") [Quiz](https://www.w3schools.com/python/pandas/pandas_quiz.asp "Pandas Quizzes") [SciPy](https://www.w3schools.com/python/scipy/scipy_exercises.php "SciPy Exercises") [Exercise](https://www.w3schools.com/python/scipy/scipy_exercises.php "SciPy Exercises") [Quiz](https://www.w3schools.com/python/scipy/scipy_quiz.php "SciPy Quizzes") [Excel](https://www.w3schools.com/excel/excel_exercises.php "Excel Exercises") [Exercise](https://www.w3schools.com/excel/excel_exercises.php "Excel Exercises") [What is an Exercise?](https://www.w3schools.com/exercises/index.php "W3Schools Exercises") [What is a Quiz?](https://www.w3schools.com/quiztest/default.asp "W3Schools Quizzes") [What is a Code Challenge?](https://www.w3schools.com/challenges/index.php "W3Schools Code Challenges") [What is a Practice Problem?](https://www.w3schools.com/practice/index.php "W3Schools Practice Problems") × ## **Certificates** Filter field for certifications × ### HTML and CSS [HTML](https://campus.w3schools.com/collections/certifications/products/html-certificate "HTML Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/html-certificate "HTML Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/html-course "Paid HTML Course") [Bootcamp](https://www.w3schools.com/bootcamp/html-css.php "HTML Bootcamp") [CSS](https://campus.w3schools.com/collections/certifications/products/css-certificate "CSS Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/css-certificate "CSS Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/css-course "Paid CSS Course") [Bootcamp](https://www.w3schools.com/bootcamp/html-css.php "CSS Bootcamp") [Bootstrap 3](https://campus.w3schools.com/collections/certifications/products/bootstrap-3-certificate "Bootstrap 3 Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/bootstrap-3-certificate "Bootstrap 3 Certification Exam") [Course](https://campus.w3schools.com/collections/single-courses/products/bootstrap-course "Paid Bootstrap 3 Course") [Bootstrap 4](https://campus.w3schools.com/collections/certifications/products/bootstrap-4-certificate "Bootstrap 4 Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/bootstrap-4-certificate "Bootstrap 4 Certification Exam") [Course](https://campus.w3schools.com/collections/single-courses/products/bootstrap-4-course "Paid Bootstrap 4 Course") [Bootstrap 5](https://campus.w3schools.com/collections/certifications/products/bootstrap-5-certificate "Bootstrap 5 Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/bootstrap-5-certificate "Bootstrap 5 Certification Exam") ### Data Analytics [DSA](https://campus.w3schools.com/products/dsa-certification-exam "DSA Certificate Exam") [Certificate](https://campus.w3schools.com/products/dsa-certification-exam "DSA Certificate Exam") [Data Analytics](https://campus.w3schools.com/products/data-analytics-program "Paid Data Analytics Course") [Course](https://campus.w3schools.com/products/data-analytics-program "Paid Data Analytics Course") [NumPy](https://campus.w3schools.com/products/numpy-certification-exam "NumPy Certification Exam") [Certificate](https://campus.w3schools.com/products/numpy-certification-exam "NumPy Certification Exam") [Course](https://campus.w3schools.com/products/numpy-course "Paid NumPy Course") [Pandas](https://campus.w3schools.com/products/pandas-certification-exam "Pandas Certification Exam") [Certificate](https://campus.w3schools.com/products/pandas-certification-exam "Pandas Certification Exam") [Course](https://campus.w3schools.com/products/pandas-course "Paid Pandas Course") [Excel](https://campus.w3schools.com/products/excel-certificate "Excel Certification Exam") [Certificate](https://campus.w3schools.com/products/excel-certificate "Excel Certification Exam") [Social Media](https://campus.w3schools.com/collections/course-best-sellers/products/social-media-marketing-course "Paid Social Media Course") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/social-media-marketing-course "Paid Social Media Course") [What is a Certificate?](https://campus.w3schools.com/ "W3Schools Campus") [What is a Bootcamp?](https://www.w3schools.com/bootcamp/index.php "W3Schools Bootcamps") ### Programs [Full Access Best Value\!](https://campus.w3schools.com/collections/course-catalog/products/w3schools-full-access-course "Paid Full Access Course") [Front End](https://campus.w3schools.com/collections/certifications/products/front-end-course "Paid Front End Course") [Certificate](https://campus.w3schools.com/collections/certifications/products/front-end-certificate "Front End Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/front-end-course "Paid Front End Development Course") [Web Dev.](https://campus.w3schools.com/collections/certifications/products/modern-web-development-certification "Web Development Certification") [Certificate](https://campus.w3schools.com/collections/certifications/products/modern-web-development-certification "Web Development Certification") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/learn-modern-web-development "Paid Web Development Course") [Web App](https://campus.w3schools.com/collections/certifications/products/web-application-development-certificates "Web Application Development Certification") [Certificate](https://campus.w3schools.com/collections/certifications/products/web-application-development-certificates "Web Application Development Certification") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/web-application-development-course "Paid Web Application Course") [Web Design](https://campus.w3schools.com/collections/certifications/products/web-design-certification "Web Design Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/web-design-certification "Web Design Certification Exam") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/learn-web-design "Paid Web Design Course") ### JavaScript [JavaScript](https://campus.w3schools.com/collections/certifications/products/javascript-certificate "JavaScript Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/javascript-certificate "JavaScript Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/javascript-course "Paid JavaScript Course") [Bootcamp](https://www.w3schools.com/bootcamp/javascript.php "JavaScript Bootcamp") [React](https://campus.w3schools.com/collections/certifications/products/react-js-certificate "React.js Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/react-js-certificate "React.js Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/react-js-course "Paid React.js Course") [Bootcamp](https://www.w3schools.com/bootcamp/react.php "React Bootcamp") [jQuery](https://campus.w3schools.com/collections/certifications/products/jquery-certificate "jQuery Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/jquery-certificate "jQuery Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/jquery-course "Paid jQuery Course") [Vue](https://campus.w3schools.com/products/vue-js-certification-exam "Vue Certification Exam") [Certificate](https://campus.w3schools.com/products/vue-js-certification-exam "Vue Certification Exam") ### Programs [Full Access Best Value\!](https://campus.w3schools.com/collections/course-catalog/products/w3schools-full-access-course "Paid Full Access Course") [Front End](https://campus.w3schools.com/collections/certifications/products/front-end-certificate "Front End Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/front-end-certificate "Front End Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/front-end-course "Paid Front End Development Course") [Bootcamp](https://www.w3schools.com/bootcamp/web-development.php "Front End Development Bootcamp") [Web Dev.](https://campus.w3schools.com/collections/certifications/products/modern-web-development-certification "Web Development Certification") [Certificate](https://campus.w3schools.com/collections/certifications/products/modern-web-development-certification "Web Development Certification") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/learn-modern-web-development "Paid Web Development Course") [Bootcamp](https://www.w3schools.com/bootcamp/web-development.php "Web Development Bootcamp") [Web App](https://campus.w3schools.com/collections/certifications/products/web-application-development-certificates "Web Application Development Certification") [Certificate](https://campus.w3schools.com/collections/certifications/products/web-application-development-certificates "Web Application Development Certification") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/web-application-development-course "Paid Web Application Course") [Web Design](https://campus.w3schools.com/collections/certifications/products/web-design-certification "Web Design Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/web-design-certification "Web Design Certification Exam") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/learn-web-design "Paid Web Design Course") ### Programs [Full Access Best Value\!](https://campus.w3schools.com/collections/course-catalog/products/w3schools-full-access-course "Paid Full Access Course") [Front End](https://campus.w3schools.com/collections/certifications/products/front-end-certificate "Front End Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/front-end-certificate "Front End Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/front-end-course "Paid Front End Development Course") [Bootcamp](https://www.w3schools.com/bootcamp/web-development.php "Front End Development Bootcamp") [Web Dev.](https://campus.w3schools.com/collections/certifications/products/modern-web-development-certification "Web Development Certification") [Certificate](https://campus.w3schools.com/collections/certifications/products/modern-web-development-certification "Web Development Certification") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/learn-modern-web-development "Paid Web Development Course") [Bootcamp](https://www.w3schools.com/bootcamp/web-development.php "Web Development Bootcamp") [Web App](https://campus.w3schools.com/collections/certifications/products/web-application-development-certificates "Web Application Development Certification") [Certificate](https://campus.w3schools.com/collections/certifications/products/web-application-development-certificates "Web Application Development Certification") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/web-application-development-course "Paid Web Application Course") [Web Design](https://campus.w3schools.com/collections/certifications/products/web-design-certification "Web Design Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/web-design-certification "Web Design Certification Exam") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/learn-web-design "Paid Web Design Course") ### Backend [Python](https://campus.w3schools.com/collections/certifications/products/python-certificate "Python Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/python-certificate "Python Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/python-course "Paid Python Course") [Bootcamp](https://www.w3schools.com/bootcamp/python.php "Python Bootcamp") [SQL](https://campus.w3schools.com/collections/certifications/products/sql-certificate "SQL Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/sql-certificate "SQL Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/sql-course "SQL Python Course") [Bootcamp](https://www.w3schools.com/bootcamp/sql.php "SQL Bootcamp") [MySQL](https://campus.w3schools.com/collections/certifications/products/mysql-certificate "MySQL Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/mysql-certificate "MySQL Certification Exam") [PHP](https://campus.w3schools.com/collections/certifications/products/php-certificate "PHP Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/php-certificate "PHP Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/php-course "Paid PHP Course") [Java](https://campus.w3schools.com/collections/certifications/products/java-certificate "Java Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/java-certificate "Java Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/java-course "Paid Java Course") [C](https://campus.w3schools.com/products/c-certification-exam "C Certification Exam") [Certificate](https://campus.w3schools.com/products/c-certification-exam "C Certification Exam") [C++](https://campus.w3schools.com/collections/certifications/products/c-certificate "C++ Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/c-certificate "C++ Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/c-course-1 "Paid C++ Course") [C\#](https://campus.w3schools.com/collections/certifications/products/c-certificate-1 "C# Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/c-certificate-1 "C# Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/c-course "Paid C# Course") [R](https://campus.w3schools.com/collections/course-catalog/products/r-course "Paid R Course") [Course](https://campus.w3schools.com/collections/course-catalog/products/r-course "Paid R Course") [Django](https://campus.w3schools.com/products/django-certification-exam "Django Certification Exam") [Certificate](https://campus.w3schools.com/products/django-certification-exam "Django Certification Exam") [NodeJS](https://campus.w3schools.com/products/nodejs-certificate "NodeJS Certification Exam") [Certificate](https://campus.w3schools.com/products/nodejs-certificate "NodeJS Certification Exam") [Bootcamp](https://www.w3schools.com/bootcamp/nodejs.php "NodeJS Bootcamp") [TypeScript](https://campus.w3schools.com/collections/certifications/products/typescript-certificate "TypeScript Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/typescript-certificate "TypeScript Certification Exam") [Course](https://campus.w3schools.com/products/learn-typescript "Paid TypeScript Course") [XML](https://campus.w3schools.com/collections/certifications/products/xml-certificate "XML Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/xml-certificate "XML Certification Exam") [Course](https://campus.w3schools.com/collections/course-catalog/products/xml-course "Paid XML Course") [Cyber Security](https://campus.w3schools.com/collections/certifications/products/cyber-security-certificate "Cyber Security Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/cyber-security-certificate "Cyber Security Certification Exam") [Course](https://campus.w3schools.com/products/cyber-security-course "Paid Cyber Security Course") [Accessibility](https://campus.w3schools.com/collections/certifications/products/accessibility-certificate "Accessibility Certification Exam") [Certificate](https://campus.w3schools.com/collections/certifications/products/accessibility-certificate "Accessibility Certification Exam") [Course](https://campus.w3schools.com/products/accessibility-course "Paid Accessibility Course") ### Data Analytics [DSA](https://campus.w3schools.com/products/dsa-certification-exam "DSA Certification Exam") [Exam](https://campus.w3schools.com/products/dsa-certification-exam "DSA Certification Exam") [Data Analytics](https://campus.w3schools.com/products/data-analytics-program "Paid Data Analytics Course") [Course](https://campus.w3schools.com/products/data-analytics-program "Paid Data Analytics Course") [NumPy](https://campus.w3schools.com/products/numpy-course "Paid NumPy Course") [Course](https://campus.w3schools.com/products/numpy-course "Paid NumPy Course") [Pandas](https://campus.w3schools.com/products/pandas-course "Paid SciPy Course") [Course](https://campus.w3schools.com/products/pandas-course "Paid SciPy Course") [Excel](https://campus.w3schools.com/products/excel-certificate "Excel Certification Exam") [Certificate](https://campus.w3schools.com/products/excel-certificate "Excel Certification Exam") [Social Media](https://campus.w3schools.com/collections/course-best-sellers/products/social-media-marketing-course "Paid Social Media Course") [Course](https://campus.w3schools.com/collections/course-best-sellers/products/social-media-marketing-course "Paid Social Media Course") [What is a Certificate?](https://campus.w3schools.com/ "W3Schools Campus") × ## **All Our Services** Dark mode  Services filter input × W3Schools offers a wide range of services and products for beginners and professionals, helping millions of people everyday to learn and master new skills. [Free Tutorials Enjoy our free tutorials like millions of other internet users since 1999](https://www.w3schools.com/tutorials/index.php "Tutorials") [References Explore our selection of references covering all popular coding languages](https://www.w3schools.com/references/index.php "References") [Create a Website Create your own website with **W3Schools Spaces** - no setup required](https://www.w3schools.com/spaces/index.php "Create a Website") [Exercises Test your skills with different exercises](https://www.w3schools.com/exercises/index.php "Test yourself with exercises") [Quizzes Test yourself with multiple choice questions](https://www.w3schools.com/quiztest/default.asp "Test yourself with quizzes") [Code Challenges Test your skills with interactive code challenges](https://www.w3schools.com/challenges/index.php "Test yourself with Code Challenges") [Get Certified Document your knowledge](https://campus.w3schools.com/collections/certifications "Certificates") [Log in / Sign Up Create an account to track your progress](https://profile.w3schools.com/sign-up?redirect_url=https%3A%2F%2Fwww.w3schools.com%2Fjava%2Fjava_try_catch.asp "Log in our Sign up") [League Earn XP and climb the ranks with different challenges](https://www.w3schools.com/league/ "Earn XP and climb the ranks with our League") [Upgrade Become a PLUS user and unlock powerful features (ad-free, hosting, support,..)](https://order.w3schools.com/plans "Upgrade subscription") [Where To Start Not sure where you want to start? Follow our guided path](https://www.w3schools.com/where_to_start.asp "Where To Start") [Code Editor (Try it) With our online code editor, you can edit code and view the result in your browser](https://www.w3schools.com/tryit/default.asp "W3Schools Code Editor") [Bootcamps Learn from passionate instructors through live online sessions](https://www.w3schools.com/bootcamp/index.php "W3Schools Bootcamps") [Templates We have created a bunch of responsive website templates you can use - for free\!](https://www.w3schools.com/w3css/w3css_templates.asp "Free Web Templates") [Web Hosting Host your own website, and share it to the world with **W3Schools Spaces**](https://www.w3schools.com/spaces/index.php "Web Hosting with Spaces") [Create a Server Create your own server using Python, PHP, React.js, Node.js, Java, C\#, etc.](https://www.w3schools.com/spaces/index.php "Get your own server") [How To's Large collection of code snippets for HTML, CSS and JavaScript](https://www.w3schools.com/howto/default.asp "How To Collection") [CSS Framework Build fast and responsive sites using our free **W3.CSS** framework](https://www.w3schools.com/w3css/default.asp "W3.CSS Framework") [Videos Learn the basics of HTML in a fun and engaging video tutorial](https://www.w3schools.com/videos/index.php "HTML Video Tutorial") [Browser Statistics Read long term trends of browser usage](https://www.w3schools.com/browsers/default.asp "Browser Statistics") [Typing Speed Test your typing speed](https://www.w3schools.com/typingspeed/default.asp "Test Your Typing speed") [Color Picker Use our color picker to find different RGB, HEX and HSL colors. ![A circular color wheel showing the gradation of colors in the spectrum](https://www.w3schools.com/images/colorpicker2000.png)](https://www.w3schools.com/colors/colors_picker.asp "Color Picker") [Newsletter Join our newsletter and get access to exclusive content every month](https://campus.w3schools.com/pages/newsletter "Join Our Newsletter") [Emojis Reference Check out our refererence page with all the emojis supported in HTML 😊](https://www.w3schools.com/charsets/ref_emoji_intro.asp "Emojis Reference") [Code Game W3Schools Coding Game! Help the lynx collect pine cones ![Lynx logo](https://www.w3schools.com/signup/lynxlogo.svg)](https://www.w3schools.com/codegame/index.html "Coding Game") [UTF-8 Reference Check out our full UTF-8 Character reference](https://www.w3schools.com/charsets/default.asp "UTF-8 Reference") [Community Chat, Learn and Connect with Us on Discord](https://discord.com/invite/w3schools "W3Schools Community") [Teachers Contact us about W3Schools Academy for educational institutions](https://www.w3schools.com/academy/index.php "W3Schools Academy / Classroom") [For Businesses Contact us about W3Schools Academy for your organization](https://www.w3schools.com/academy/index.php "W3Schools Academy / Classroom") #### Contact Us About sales: sales@w3schools.com About errors: help@w3schools.com [Web Developer Tools Free online tools to help with your everyday development tasks](https://www.w3schools.com/tools/index.php "Web Developer Tools") [**](https://www.linkedin.com/company/w3schools.com/ "W3Schools on LinkedIn") [**](https://discord.com/invite/w3schools "Join the W3schools community on Discord") [**](https://www.facebook.com/w3schoolscom/ "W3Schools on Facebook") [**](https://www.instagram.com/w3schools.com_official/ "W3Schools on Instagram") × ❮ ❯ [HTML](https://www.w3schools.com/html/default.asp "HTML Tutorial") [CSS](https://www.w3schools.com/css/default.asp "CSS Tutorial") [JAVASCRIPT](https://www.w3schools.com/js/default.asp "JavaScript Tutorial") [SQL](https://www.w3schools.com/sql/default.asp "SQL Tutorial") [PYTHON](https://www.w3schools.com/python/default.asp "Python Tutorial") [JAVA](https://www.w3schools.com/java/default.asp "Java Tutorial") [PHP](https://www.w3schools.com/php/default.asp "PHP Tutorial") [HOW TO](https://www.w3schools.com/howto/default.asp "How to") [W3.CSS](https://www.w3schools.com/w3css/default.asp "W3.CSS Tutorial") [C](https://www.w3schools.com/c/index.php "C Tutorial") [C++](https://www.w3schools.com/cpp/default.asp "C++ Tutorial") [C\#](https://www.w3schools.com/cs/index.php "C# Tutorial") [BOOTSTRAP](https://www.w3schools.com/bootstrap/bootstrap_ver.asp "Bootstrap Tutorial") [REACT](https://www.w3schools.com/react/default.asp "React Tutorial") [MYSQL](https://www.w3schools.com/mysql/default.asp "MySQL Tutorial") [JQUERY](https://www.w3schools.com/jquery/default.asp "JQuery Tutorial") [EXCEL](https://www.w3schools.com/excel/index.php "Excel Tutorial") [XML](https://www.w3schools.com/xml/default.asp "XML Tutorial") [DJANGO](https://www.w3schools.com/django/index.php "Django Tutorial") [NUMPY](https://www.w3schools.com/python/numpy/default.asp "NumPy Tutorial") [PANDAS](https://www.w3schools.com/python/pandas/default.asp "Pandas Tutorial") [NODEJS](https://www.w3schools.com/nodejs/default.asp "Node.js Tutorial") [DSA](https://www.w3schools.com/dsa/index.php "DSA Tutorial") [TYPESCRIPT](https://www.w3schools.com/typescript/index.php "TypeScript Tutorial") [ANGULAR](https://www.w3schools.com/angular/default.asp "Angular Tutorial") [ANGULARJS](https://www.w3schools.com/angularjs/default.asp "Angular.js Tutorial") [GIT](https://www.w3schools.com/git/default.asp "Git Tutorial") [POSTGRESQL](https://www.w3schools.com/postgresql/index.php "PostgreSQL Tutorial") [MONGODB](https://www.w3schools.com/mongodb/index.php "MongoDB Tutorial") [ASP](https://www.w3schools.com/asp/default.asp "ASP Tutorial") [AI](https://www.w3schools.com/ai/default.asp "A.I. Tutorial") [R](https://www.w3schools.com/r/default.asp "R Tutorial") [GO](https://www.w3schools.com/go/index.php "Go Tutorial") [KOTLIN](https://www.w3schools.com/kotlin/index.php "Kotlin Tutorial") [SWIFT](https://www.w3schools.com/swift/default.asp "Swift Tutorial") [SASS](https://www.w3schools.com/sass/default.asp "Sass Tutorial") [VUE](https://www.w3schools.com/vue/index.php "Vue.js Tutorial") [GEN AI](https://www.w3schools.com/gen_ai/index.php "Gen A.I. Tutorial") [SCIPY](https://www.w3schools.com/python/scipy/index.php "SciPy Tutorial") [AWS](https://www.w3schools.com/aws/index.php "AWS Tutorial") [CYBERSECURITY](https://www.w3schools.com/cybersecurity/index.php "Cyber security Tutorial") [DATA SCIENCE](https://www.w3schools.com/datascience/default.asp "Data science Tutorial") [INTRO TO PROGRAMMING](https://www.w3schools.com/programming/index.php "Introduction to Programming") [INTRO TO HTML & CSS](https://www.w3schools.com/htmlcss/default.asp "Introduction to HTML & CSS") [BASH](https://www.w3schools.com/bash/index.php "Bash Tutorial") [RUST](https://www.w3schools.com/rust/index.php "Rust Tutorial") [TOOLS](https://www.w3schools.com/tools/index.php "Web Developer Tools") ## Java Tutorial [Java HOME](https://www.w3schools.com/java/default.asp) [Java Intro](https://www.w3schools.com/java/java_intro.asp) [Java Get Started](https://www.w3schools.com/java/java_getstarted.asp) [Java Syntax](https://www.w3schools.com/java/java_syntax.asp) [Syntax](https://www.w3schools.com/java/java_syntax.asp) [Statements](https://www.w3schools.com/java/java_statements.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_syntax.asp) [Java Output](https://www.w3schools.com/java/java_output.asp) [Print Text](https://www.w3schools.com/java/java_output.asp) [Print Numbers](https://www.w3schools.com/java/java_output_numbers.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_output.asp) [Java Comments](https://www.w3schools.com/java/java_comments.asp) [Java Variables](https://www.w3schools.com/java/java_variables.asp) [Variables](https://www.w3schools.com/java/java_variables.asp) [Print Variables](https://www.w3schools.com/java/java_variables_print.asp) [Multiple Variables](https://www.w3schools.com/java/java_variables_multiple.asp) [Identifiers](https://www.w3schools.com/java/java_variables_identifiers.asp) [Constants (Final)](https://www.w3schools.com/java/java_variables_final.asp) [Real-Life Examples](https://www.w3schools.com/java/java_variables_reallife.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_variables.asp) [Java Data Types](https://www.w3schools.com/java/java_data_types.asp) [Data Types](https://www.w3schools.com/java/java_data_types.asp) [Numbers](https://www.w3schools.com/java/java_data_types_numbers.asp) [Booleans](https://www.w3schools.com/java/java_data_types_boolean.asp) [Characters](https://www.w3schools.com/java/java_data_types_characters.asp) [Real-Life Example](https://www.w3schools.com/java/java_data_types_reallife.asp) [Non-primitive Types](https://www.w3schools.com/java/java_data_types_non-prim.asp) [The var Keyword](https://www.w3schools.com/java/java_var.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_data_types.asp) [Java Type Casting](https://www.w3schools.com/java/java_type_casting.asp) [Java Operators](https://www.w3schools.com/java/java_operators.asp) [Operators](https://www.w3schools.com/java/java_operators.asp) [Arithmetic](https://www.w3schools.com/java/java_operators_arithmetic.asp) [Assignment](https://www.w3schools.com/java/java_operators_assign.asp) [Comparison](https://www.w3schools.com/java/java_operators_comparison.asp) [Logical](https://www.w3schools.com/java/java_operators_logical.asp) [Precedence](https://www.w3schools.com/java/java_operators_precedence.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_operators.asp) [Java Strings](https://www.w3schools.com/java/java_strings.asp) [Strings](https://www.w3schools.com/java/java_strings.asp) [Concatenation](https://www.w3schools.com/java/java_strings_concat.asp) [Numbers and Strings](https://www.w3schools.com/java/java_strings_numbers.asp) [Special Characters](https://www.w3schools.com/java/java_strings_specchars.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_strings.asp) [Java Math](https://www.w3schools.com/java/java_math.asp) [Java Booleans](https://www.w3schools.com/java/java_booleans.asp) [Booleans](https://www.w3schools.com/java/java_booleans.asp) [Real-Life Example](https://www.w3schools.com/java/java_booleans_reallife.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_booleans.asp) [Java If...Else](https://www.w3schools.com/java/java_conditions.asp) [if](https://www.w3schools.com/java/java_conditions.asp) [else](https://www.w3schools.com/java/java_conditions_else.asp) [else if](https://www.w3schools.com/java/java_conditions_elseif.asp) [Short Hand If...Else](https://www.w3schools.com/java/java_conditions_shorthand.asp) [Nested If](https://www.w3schools.com/java/java_conditions_nested.asp) [Logical Operators](https://www.w3schools.com/java/java_conditions_logical.asp) [Real-Life Examples](https://www.w3schools.com/java/java_conditions_reallife.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_conditions.asp) [Java Switch](https://www.w3schools.com/java/java_switch.asp) [Switch](https://www.w3schools.com/java/java_switch.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_switch.asp) [Java While Loop](https://www.w3schools.com/java/java_while_loop.asp) [While Loop](https://www.w3schools.com/java/java_while_loop.asp) [Do/While Loop](https://www.w3schools.com/java/java_while_loop_do.asp) [Real-Life Examples](https://www.w3schools.com/java/java_while_loop_reallife.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_while_loop.asp) [Java For Loop](https://www.w3schools.com/java/java_for_loop.asp) [For Loop](https://www.w3schools.com/java/java_for_loop.asp) [Nested Loops](https://www.w3schools.com/java/java_for_loop_nested.asp) [For-Each Loop](https://www.w3schools.com/java/java_foreach_loop.asp) [Real-Life Examples](https://www.w3schools.com/java/java_for_loop_reallife.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_for_loop.asp) [Java Break/Continue](https://www.w3schools.com/java/java_break.asp) [Java Arrays](https://www.w3schools.com/java/java_arrays.asp) [Arrays](https://www.w3schools.com/java/java_arrays.asp) [Loop Through an Array](https://www.w3schools.com/java/java_arrays_loop.asp) [Real-Life Examples](https://www.w3schools.com/java/java_arrays_reallife.asp) [Multidimensional Arrays](https://www.w3schools.com/java/java_arrays_multi.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_arrays.asp) ## Java Methods [Java Methods](https://www.w3schools.com/java/java_methods.asp) [Java Method Challenge](https://www.w3schools.com/java/java_challenges_methods.asp) [Java Method Parameters](https://www.w3schools.com/java/java_methods_param.asp) [Parameters](https://www.w3schools.com/java/java_methods_param.asp) [Return Values](https://www.w3schools.com/java/java_methods_return.asp) [Code Challenge](https://www.w3schools.com/java/java_challenges_methods_param.asp) [Java Method Overloading](https://www.w3schools.com/java/java_methods_overloading.asp) [Java Scope](https://www.w3schools.com/java/java_scope.asp) [Java Recursion](https://www.w3schools.com/java/java_recursion.asp) ## Java Classes [Java OOP](https://www.w3schools.com/java/java_oop.asp) [Java Classes/Objects](https://www.w3schools.com/java/java_classes.asp) [Java Class Attributes](https://www.w3schools.com/java/java_class_attributes.asp) [Java Class Methods](https://www.w3schools.com/java/java_class_methods.asp) [Java Class Challenge](https://www.w3schools.com/java/java_challenges_class.asp) [Java Constructors](https://www.w3schools.com/java/java_constructors.asp) [Java this Keyword](https://www.w3schools.com/java/java_this.asp) [Java Modifiers](https://www.w3schools.com/java/java_modifiers.asp) [Access Modifiers](https://www.w3schools.com/java/java_modifiers.asp) [Non-Access Modifiers](https://www.w3schools.com/java/java_non_modifiers.asp) [Java Encapsulation](https://www.w3schools.com/java/java_encapsulation.asp) [Java Packages / API](https://www.w3schools.com/java/java_packages.asp) [Java Inheritance](https://www.w3schools.com/java/java_inheritance.asp) [Java Polymorphism](https://www.w3schools.com/java/java_polymorphism.asp) [Java super Keyword](https://www.w3schools.com/java/java_super.asp) [Java Inner Classes](https://www.w3schools.com/java/java_inner_classes.asp) [Java Abstraction](https://www.w3schools.com/java/java_abstract.asp) [Java Interface](https://www.w3schools.com/java/java_interface.asp) [Java Anonymous](https://www.w3schools.com/java/java_anonymous.asp) [Java Enum](https://www.w3schools.com/java/java_enums.asp) [Enums](https://www.w3schools.com/java/java_enums.asp) [Enum Constructor](https://www.w3schools.com/java/java_enum_constructor.asp) [Java User Input](https://www.w3schools.com/java/java_user_input.asp) [Java Date](https://www.w3schools.com/java/java_date.asp) ## Java Errors [Java Errors](https://www.w3schools.com/java/java_errors.asp) [Java Debugging](https://www.w3schools.com/java/java_debugging.asp) [Java Exceptions](https://www.w3schools.com/java/java_try_catch.asp) [Java Multiple Exceptions](https://www.w3schools.com/java/java_exceptions_multiple.asp) [Java try-with-resources](https://www.w3schools.com/java/java_try_catch_resources.asp) ## Java File Handling [Java Files](https://www.w3schools.com/java/java_files.asp) [Java Create Files](https://www.w3schools.com/java/java_files_create.asp) [Java Write Files](https://www.w3schools.com/java/java_files_write.asp) [Java Read Files](https://www.w3schools.com/java/java_files_read.asp) [Java Delete Files](https://www.w3schools.com/java/java_files_delete.asp) ## Java I/O Streams [Java I/O Streams](https://www.w3schools.com/java/java_io_streams.asp) [Java FileInputStream](https://www.w3schools.com/java/java_fileinputstream.asp) [Java FileOutputStream](https://www.w3schools.com/java/java_fileoutputstream.asp) [Java BufferedReader](https://www.w3schools.com/java/java_bufferedreader.asp) [Java BufferedWriter](https://www.w3schools.com/java/java_bufferedwriter.asp) ## Java Data Structures [Java Data Structures](https://www.w3schools.com/java/java_data_structures.asp) [Java Collections](https://www.w3schools.com/java/java_collections.asp) [Java List](https://www.w3schools.com/java/java_list.asp) [Java ArrayList](https://www.w3schools.com/java/java_arraylist.asp) [Java LinkedList](https://www.w3schools.com/java/java_linkedlist.asp) [Java List Sorting](https://www.w3schools.com/java/java_sort_list.asp) [Java Set](https://www.w3schools.com/java/java_set.asp) [Java HashSet](https://www.w3schools.com/java/java_hashset.asp) [Java TreeSet](https://www.w3schools.com/java/java_treeset.asp) [Java LinkedHashSet](https://www.w3schools.com/java/java_linkedhashset.asp) [Java Map](https://www.w3schools.com/java/java_map.asp) [Java HashMap](https://www.w3schools.com/java/java_hashmap.asp) [Java TreeMap](https://www.w3schools.com/java/java_treemap.asp) [Java LinkedHashMap](https://www.w3schools.com/java/java_linkedhashmap.asp) [Java Iterator](https://www.w3schools.com/java/java_iterator.asp) [Java Algorithms](https://www.w3schools.com/java/java_algorithms.asp) ## Java Advanced [Java Wrapper Classes](https://www.w3schools.com/java/java_wrapper_classes.asp) [Java Generics](https://www.w3schools.com/java/java_generics.asp) [Java Annotations](https://www.w3schools.com/java/java_annotations.asp) [Java RegEx](https://www.w3schools.com/java/java_regex.asp) [Java Threads](https://www.w3schools.com/java/java_threads.asp) [Java Lambda](https://www.w3schools.com/java/java_lambda.asp) [Java Advanced Sorting](https://www.w3schools.com/java/java_advanced_sorting.asp) ## Java Projects [Java Projects](https://www.w3schools.com/java/java_projects.asp) ## Java How To's [Java How Tos](https://www.w3schools.com/java/java_howtos.asp) [How Tos](https://www.w3schools.com/java/java_howtos.asp) [Add Two Numbers](https://www.w3schools.com/java/java_howto_add_two_numbers.asp) [Swap Two Variables](https://www.w3schools.com/java/java_howto_swap_two_variables.asp) [Even or Odd Number](https://www.w3schools.com/java/java_howto_even_or_odd.asp) [Reverse a Number](https://www.w3schools.com/java/java_howto_reverse_number.asp) [Positive or Negative](https://www.w3schools.com/java/java_howto_pos_or_neg.asp) [Square Root](https://www.w3schools.com/java/java_howto_find_square_root.asp) [Area of Rectangle](https://www.w3schools.com/java/java_howto_area_of_rectangle.asp) [Celsius to Fahrenheit](https://www.w3schools.com/java/java_howto_convert_celsius.asp) [Sum of Digits](https://www.w3schools.com/java/java_howto_sum_of_digits.asp) [Check Armstrong Num](https://www.w3schools.com/java/java_howto_check_armstrong_number.asp) [Random Number](https://www.w3schools.com/java/java_howto_random_number.asp) [Count Words](https://www.w3schools.com/java/java_howto_count_words.asp) [Count Vowels in a String](https://www.w3schools.com/java/java_howto_count_vowels_string.asp) [Remove Vowels](https://www.w3schools.com/java/java_howto_remove_vowels_string.asp) [Count Digits in a String](https://www.w3schools.com/java/java_howto_count_digits_string.asp) [Reverse a String](https://www.w3schools.com/java/java_howto_reverse_string.asp) [Palindrome Check](https://www.w3schools.com/java/java_howto_palindrome_check.asp) [Check Anagram](https://www.w3schools.com/java/java_howto_check_anagram_strings.asp) [Convert String to Array](https://www.w3schools.com/java/java_howto_string_to_array.asp) [Remove Whitespace](https://www.w3schools.com/java/java_howto_remove_whitespace.asp) [Count Character Frequency](https://www.w3schools.com/java/java_howto_count_char_freq.asp) [Sum of Array Elements](https://www.w3schools.com/java/java_howto_sum_of_array_elements.asp) [Find Array Average](https://www.w3schools.com/java/java_howto_calculate_avg_array.asp) [Sort an Array](https://www.w3schools.com/java/java_howto_sort_an_array.asp) [Find Smallest Element](https://www.w3schools.com/java/java_howto_find_smallest_array_el.asp) [Find Largest Element](https://www.w3schools.com/java/java_howto_largest_el_array.asp) [Second Largest Array](https://www.w3schools.com/java/java_howto_second_largest_array.asp) [Min and Max Array](https://www.w3schools.com/java/java_howto_min_max_array.asp) [Merge Two Arrays](https://www.w3schools.com/java/java_howto_merge_two_arrays.asp) [Remove Duplicates](https://www.w3schools.com/java/java_howto_remove_duplicates_array.asp) [Find Duplicates](https://www.w3schools.com/java/java_howto_duplicate_elements_array.asp) [Shuffle an Array](https://www.w3schools.com/java/java_howto_shuffle_array.asp) [Factorial of a Number](https://www.w3schools.com/java/java_howto_factorial.asp) [Fibonacci Sequence](https://www.w3schools.com/java/java_howto_fibonacci.asp) [Find GCD](https://www.w3schools.com/java/java_howto_find_gcd.asp) [Check Prime Number](https://www.w3schools.com/java/java_howto_check_prime_num.asp) [ArrayList Loop](https://www.w3schools.com/java/java_howto_loop_through_arraylist.asp) [HashMap Loop](https://www.w3schools.com/java/java_howto_loop_through_hashmap.asp) [Loop Through an Enum](https://www.w3schools.com/java/java_howto_loop_through_enum.asp) ## Java Reference [Java Reference](https://www.w3schools.com/java/java_ref_reference.asp) [Java Keywords](https://www.w3schools.com/java/java_ref_keywords.asp) [assert](https://www.w3schools.com/java/ref_keyword_assert.asp) [abstract](https://www.w3schools.com/java/ref_keyword_abstract.asp) [boolean](https://www.w3schools.com/java/ref_keyword_boolean.asp) [break](https://www.w3schools.com/java/ref_keyword_break.asp) [byte](https://www.w3schools.com/java/ref_keyword_byte.asp) [case](https://www.w3schools.com/java/ref_keyword_case.asp) [catch](https://www.w3schools.com/java/ref_keyword_catch.asp) [char](https://www.w3schools.com/java/ref_keyword_char.asp) [class](https://www.w3schools.com/java/ref_keyword_class.asp) [continue](https://www.w3schools.com/java/ref_keyword_continue.asp) [default](https://www.w3schools.com/java/ref_keyword_default.asp) [do](https://www.w3schools.com/java/ref_keyword_do.asp) [double](https://www.w3schools.com/java/ref_keyword_double.asp) [else](https://www.w3schools.com/java/ref_keyword_else.asp) [enum](https://www.w3schools.com/java/ref_keyword_enum.asp) [exports](https://www.w3schools.com/java/ref_keyword_exports.asp) [extends](https://www.w3schools.com/java/ref_keyword_extends.asp) [final](https://www.w3schools.com/java/ref_keyword_final.asp) [finally](https://www.w3schools.com/java/ref_keyword_finally.asp) [float](https://www.w3schools.com/java/ref_keyword_float.asp) [for](https://www.w3schools.com/java/ref_keyword_for.asp) [if](https://www.w3schools.com/java/ref_keyword_if.asp) [implements](https://www.w3schools.com/java/ref_keyword_implements.asp) [import](https://www.w3schools.com/java/ref_keyword_import.asp) [instanceof](https://www.w3schools.com/java/ref_keyword_instanceof.asp) [int](https://www.w3schools.com/java/ref_keyword_int.asp) [interface](https://www.w3schools.com/java/ref_keyword_interface.asp) [long](https://www.w3schools.com/java/ref_keyword_long.asp) [module](https://www.w3schools.com/java/ref_keyword_module.asp) [native](https://www.w3schools.com/java/ref_keyword_native.asp) [new](https://www.w3schools.com/java/ref_keyword_new.asp) [package](https://www.w3schools.com/java/ref_keyword_package.asp) [private](https://www.w3schools.com/java/ref_keyword_private.asp) [protected](https://www.w3schools.com/java/ref_keyword_protected.asp) [public](https://www.w3schools.com/java/ref_keyword_public.asp) [return](https://www.w3schools.com/java/ref_keyword_return.asp) [requires](https://www.w3schools.com/java/ref_keyword_requires.asp) [short](https://www.w3schools.com/java/ref_keyword_short.asp) [static](https://www.w3schools.com/java/ref_keyword_static.asp) [super](https://www.w3schools.com/java/ref_keyword_super.asp) [switch](https://www.w3schools.com/java/ref_keyword_switch.asp) [synchronized](https://www.w3schools.com/java/ref_keyword_synchronized.asp) [this](https://www.w3schools.com/java/ref_keyword_this.asp) [throw](https://www.w3schools.com/java/ref_keyword_throw.asp) [throws](https://www.w3schools.com/java/ref_keyword_throws.asp) [transient](https://www.w3schools.com/java/ref_keyword_transient.asp) [try](https://www.w3schools.com/java/ref_keyword_try.asp) [var](https://www.w3schools.com/java/ref_keyword_var.asp) [void](https://www.w3schools.com/java/ref_keyword_void.asp) [volatile](https://www.w3schools.com/java/ref_keyword_volatile.asp) [while](https://www.w3schools.com/java/ref_keyword_while.asp) [Java String Methods](https://www.w3schools.com/java/java_ref_string.asp) [charAt()](https://www.w3schools.com/java/ref_string_charat.asp) [codePointAt()](https://www.w3schools.com/java/ref_string_codepointat.asp) [codePointBefore()](https://www.w3schools.com/java/ref_string_codepointbefore.asp) [codePointCount()](https://www.w3schools.com/java/ref_string_codepointcount.asp) [compareTo()](https://www.w3schools.com/java/ref_string_compareto.asp) [compareToIgnoreCase()](https://www.w3schools.com/java/ref_string_comparetoignorecase.asp) [concat()](https://www.w3schools.com/java/ref_string_concat.asp) [contains()](https://www.w3schools.com/java/ref_string_contains.asp) [contentEquals()](https://www.w3schools.com/java/ref_string_contentequals.asp) [copyValueOf()](https://www.w3schools.com/java/ref_string_copyvalueof.asp) [endsWith()](https://www.w3schools.com/java/ref_string_endswith.asp) [equals()](https://www.w3schools.com/java/ref_string_equals.asp) [equalsIgnoreCase()](https://www.w3schools.com/java/ref_string_equalsignorecase.asp) [format()](https://www.w3schools.com/java/ref_string_format.asp) [getBytes()](https://www.w3schools.com/java/ref_string_getbytes.asp) [getChars()](https://www.w3schools.com/java/ref_string_getchars.asp) [hashCode()](https://www.w3schools.com/java/ref_string_hashcode.asp) [indexOf()](https://www.w3schools.com/java/ref_string_indexof.asp) [isEmpty()](https://www.w3schools.com/java/ref_string_isempty.asp) [join()](https://www.w3schools.com/java/ref_string_join.asp) [lastIndexOf()](https://www.w3schools.com/java/ref_string_lastindexof.asp) [length()](https://www.w3schools.com/java/ref_string_length.asp) [matches()](https://www.w3schools.com/java/ref_string_matches.asp) [offsetByCodePoints()](https://www.w3schools.com/java/ref_string_offsetbycodepoints.asp) [regionMatches()](https://www.w3schools.com/java/ref_string_regionmatches.asp) [replace()](https://www.w3schools.com/java/ref_string_replace.asp) [replaceAll()](https://www.w3schools.com/java/ref_string_replaceall.asp) [replaceFirst()](https://www.w3schools.com/java/ref_string_replacefirst.asp) [split()](https://www.w3schools.com/java/ref_string_split.asp) [startsWith()](https://www.w3schools.com/java/ref_string_startswith.asp) [subSequence()](https://www.w3schools.com/java/ref_string_subsequence.asp) [substring()](https://www.w3schools.com/java/ref_string_substring.asp) [toCharArray()](https://www.w3schools.com/java/ref_string_tochararray.asp) [toLowerCase()](https://www.w3schools.com/java/ref_string_tolowercase.asp) [toString()](https://www.w3schools.com/java/ref_string_tostring.asp) [toUpperCase()](https://www.w3schools.com/java/ref_string_touppercase.asp) [trim()](https://www.w3schools.com/java/ref_string_trim.asp) [valueOf()](https://www.w3schools.com/java/ref_string_valueof.asp) [Java Math Methods](https://www.w3schools.com/java/java_ref_math.asp) [abs()](https://www.w3schools.com/java/ref_math_abs.asp) [acos()](https://www.w3schools.com/java/ref_math_acos.asp) [addExact()](https://www.w3schools.com/java/ref_math_addexact.asp) [asin()](https://www.w3schools.com/java/ref_math_asin.asp) [atan()](https://www.w3schools.com/java/ref_math_atan.asp) [atan2()](https://www.w3schools.com/java/ref_math_atan2.asp) [cbrt()](https://www.w3schools.com/java/ref_math_cbrt.asp) [ceil()](https://www.w3schools.com/java/ref_math_ceil.asp) [copySign()](https://www.w3schools.com/java/ref_math_copysign.asp) [cos()](https://www.w3schools.com/java/ref_math_cos.asp) [cosh()](https://www.w3schools.com/java/ref_math_cosh.asp) [decrementExact()](https://www.w3schools.com/java/ref_math_decrementexact.asp) [exp()](https://www.w3schools.com/java/ref_math_exp.asp) [expm1()](https://www.w3schools.com/java/ref_math_expm1.asp) [floor()](https://www.w3schools.com/java/ref_math_floor.asp) [floorDiv()](https://www.w3schools.com/java/ref_math_floordiv.asp) [floorMod()](https://www.w3schools.com/java/ref_math_floormod.asp) [getExponent()](https://www.w3schools.com/java/ref_math_getexponent.asp) [hypot()](https://www.w3schools.com/java/ref_math_hypot.asp) [IEEEremainder()](https://www.w3schools.com/java/ref_math_ieeeremainder.asp) [incrementExact()](https://www.w3schools.com/java/ref_math_incrementexact.asp) [log()](https://www.w3schools.com/java/ref_math_log.asp) [log10()](https://www.w3schools.com/java/ref_math_log10.asp) [log1p()](https://www.w3schools.com/java/ref_math_log1p.asp) [max()](https://www.w3schools.com/java/ref_math_max.asp) [min()](https://www.w3schools.com/java/ref_math_min.asp) [multiplyExact()](https://www.w3schools.com/java/ref_math_multiplyexact.asp) [negateExact()](https://www.w3schools.com/java/ref_math_negateexact.asp) [nextAfter()](https://www.w3schools.com/java/ref_math_nextafter.asp) [nextDown()](https://www.w3schools.com/java/ref_math_nextdown.asp) [nextUp()](https://www.w3schools.com/java/ref_math_nextup.asp) [pow()](https://www.w3schools.com/java/ref_math_pow.asp) [random()](https://www.w3schools.com/java/ref_math_random.asp) [rint()](https://www.w3schools.com/java/ref_math_rint.asp) [round()](https://www.w3schools.com/java/ref_math_round.asp) [scalb()](https://www.w3schools.com/java/ref_math_scalb.asp) [signum()](https://www.w3schools.com/java/ref_math_signum.asp) [sin()](https://www.w3schools.com/java/ref_math_sin.asp) [sinh()](https://www.w3schools.com/java/ref_math_sinh.asp) [sqrt()](https://www.w3schools.com/java/ref_math_sqrt.asp) [subtractExact()](https://www.w3schools.com/java/ref_math_subtractexact.asp) [tan()](https://www.w3schools.com/java/ref_math_tan.asp) [tanh()](https://www.w3schools.com/java/ref_math_tanh.asp) [toDegrees()](https://www.w3schools.com/java/ref_math_todegrees.asp) [toIntExact()](https://www.w3schools.com/java/ref_math_tointexact.asp) [toRadians()](https://www.w3schools.com/java/ref_math_toradians.asp) [ulp()](https://www.w3schools.com/java/ref_math_ulp.asp) [Java Output Methods](https://www.w3schools.com/java/java_ref_output.asp) [print()](https://www.w3schools.com/java/ref_output_print.asp) [printf()](https://www.w3schools.com/java/ref_output_printf.asp) [println()](https://www.w3schools.com/java/ref_output_println.asp) [Java Arrays Methods](https://www.w3schools.com/java/java_ref_arrays.asp) [compare()](https://www.w3schools.com/java/ref_arrays_compare.asp) [equals()](https://www.w3schools.com/java/ref_arrays_equals.asp) [sort()](https://www.w3schools.com/java/ref_arrays_sort.asp) [fill()](https://www.w3schools.com/java/ref_arrays_fill.asp) [length](https://www.w3schools.com/java/ref_arrays_length.asp) [Java ArrayList Methods](https://www.w3schools.com/java/java_ref_arraylist.asp) [add()](https://www.w3schools.com/java/ref_arraylist_add.asp) [addAll()](https://www.w3schools.com/java/ref_arraylist_addall.asp) [clear()](https://www.w3schools.com/java/ref_arraylist_clear.asp) [clone()](https://www.w3schools.com/java/ref_arraylist_clone.asp) [contains](https://www.w3schools.com/java/ref_arraylist_contains.asp) [ensureCapacity()](https://www.w3schools.com/java/ref_arraylist_ensurecapacity.asp) [forEach()](https://www.w3schools.com/java/ref_arraylist_foreach.asp) [get()](https://www.w3schools.com/java/ref_arraylist_get.asp) [indexOf()](https://www.w3schools.com/java/ref_arraylist_indexof.asp) [isEmpty()](https://www.w3schools.com/java/ref_arraylist_isempty.asp) [iterator()](https://www.w3schools.com/java/ref_arraylist_iterator.asp) [lastIndexOf()](https://www.w3schools.com/java/ref_arraylist_lastindexof.asp) [listIterator()](https://www.w3schools.com/java/ref_arraylist_listiterator.asp) [remove()](https://www.w3schools.com/java/ref_arraylist_remove.asp) [removeAll()](https://www.w3schools.com/java/ref_arraylist_removeall.asp) [removeIf()](https://www.w3schools.com/java/ref_arraylist_removeif.asp) [replaceAll()](https://www.w3schools.com/java/ref_arraylist_replaceall.asp) [retainAll()](https://www.w3schools.com/java/ref_arraylist_retainall.asp) [set()](https://www.w3schools.com/java/ref_arraylist_set.asp) [size()](https://www.w3schools.com/java/ref_arraylist_size.asp) [sort()](https://www.w3schools.com/java/ref_arraylist_sort.asp) [spliterator()](https://www.w3schools.com/java/ref_arraylist_spliterator.asp) [subList()](https://www.w3schools.com/java/ref_arraylist_sublist.asp) [toArray()](https://www.w3schools.com/java/ref_arraylist_toarray.asp) [trimToSize()](https://www.w3schools.com/java/ref_arraylist_trimtosize.asp) [Java LinkedList Methods](https://www.w3schools.com/java/java_ref_linkedlist.asp) [add()](https://www.w3schools.com/java/ref_linkedlist_add.asp) [addAll()](https://www.w3schools.com/java/ref_linkedlist_addall.asp) [clear()](https://www.w3schools.com/java/ref_linkedlist_clear.asp) [clone()](https://www.w3schools.com/java/ref_linkedlist_clone.asp) [contains](https://www.w3schools.com/java/ref_linkedlist_contains.asp) [forEach()](https://www.w3schools.com/java/ref_linkedlist_foreach.asp) [get()](https://www.w3schools.com/java/ref_linkedlist_get.asp) [getFirst()](https://www.w3schools.com/java/ref_linkedlist_getfirst.asp) [getLast()](https://www.w3schools.com/java/ref_linkedlist_getlast.asp) [indexOf()](https://www.w3schools.com/java/ref_linkedlist_indexof.asp) [isEmpty()](https://www.w3schools.com/java/ref_linkedlist_isempty.asp) [iterator()](https://www.w3schools.com/java/ref_linkedlist_iterator.asp) [lastIndexOf()](https://www.w3schools.com/java/ref_linkedlist_lastindexof.asp) [listIterator()](https://www.w3schools.com/java/ref_linkedlist_listiterator.asp) [remove()](https://www.w3schools.com/java/ref_linkedlist_remove.asp) [removeAll()](https://www.w3schools.com/java/ref_linkedlist_removeall.asp) [removeFirst()](https://www.w3schools.com/java/ref_linkedlist_removefirst.asp) [removeIf()](https://www.w3schools.com/java/ref_linkedlist_removeif.asp) [removeLast()](https://www.w3schools.com/java/ref_linkedlist_removelast.asp) [replaceAll()](https://www.w3schools.com/java/ref_linkedlist_replaceall.asp) [retainAll()](https://www.w3schools.com/java/ref_linkedlist_retainall.asp) [set()](https://www.w3schools.com/java/ref_linkedlist_set.asp) [size()](https://www.w3schools.com/java/ref_linkedlist_size.asp) [sort()](https://www.w3schools.com/java/ref_linkedlist_sort.asp) [spliterator()](https://www.w3schools.com/java/ref_linkedlist_spliterator.asp) [subList()](https://www.w3schools.com/java/ref_linkedlist_sublist.asp) [toArray()](https://www.w3schools.com/java/ref_linkedlist_toarray.asp) [Java HashMap Methods](https://www.w3schools.com/java/java_ref_hashmap.asp) [clear()](https://www.w3schools.com/java/ref_hashmap_clear.asp) [clone()](https://www.w3schools.com/java/ref_hashmap_clone.asp) [compute()](https://www.w3schools.com/java/ref_hashmap_compute.asp) [computeIfAbsent()](https://www.w3schools.com/java/ref_hashmap_computeifabsent.asp) [computeIfPresent()](https://www.w3schools.com/java/ref_hashmap_computeifpresent.asp) [containsKey()](https://www.w3schools.com/java/ref_hashmap_containskey.asp) [containsValue()](https://www.w3schools.com/java/ref_hashmap_containsvalue.asp) [entrySet()](https://www.w3schools.com/java/ref_hashmap_entryset.asp) [forEach()](https://www.w3schools.com/java/ref_hashmap_foreach.asp) [get()](https://www.w3schools.com/java/ref_hashmap_get.asp) [getOrDefault()](https://www.w3schools.com/java/ref_hashmap_getordefault.asp) [isEmpty()](https://www.w3schools.com/java/ref_hashmap_isempty.asp) [keySet()](https://www.w3schools.com/java/ref_hashmap_keyset.asp) [merge()](https://www.w3schools.com/java/ref_hashmap_merge.asp) [put()](https://www.w3schools.com/java/ref_hashmap_put.asp) [putAll()](https://www.w3schools.com/java/ref_hashmap_putall.asp) [putIfAbsent()](https://www.w3schools.com/java/ref_hashmap_putifabsent.asp) [remove()](https://www.w3schools.com/java/ref_hashmap_remove.asp) [replace()](https://www.w3schools.com/java/ref_hashmap_replace.asp) [replaceAll()](https://www.w3schools.com/java/ref_hashmap_replaceall.asp) [size()](https://www.w3schools.com/java/ref_hashmap_size.asp) [values()](https://www.w3schools.com/java/ref_hashmap_values.asp) [Java Scanner Methods](https://www.w3schools.com/java/java_ref_scanner.asp) [close()](https://www.w3schools.com/java/ref_scanner_close.asp) [delimiter()](https://www.w3schools.com/java/ref_scanner_delimiter.asp) [findInLine()](https://www.w3schools.com/java/ref_scanner_findinline.asp) [findWithinHorizon()](https://www.w3schools.com/java/ref_scanner_findwithinhorizon.asp) [hasNext()](https://www.w3schools.com/java/ref_scanner_hasnext.asp) [hasNextBoolean()](https://www.w3schools.com/java/ref_scanner_hasnextboolean.asp) [hasNextByte()](https://www.w3schools.com/java/ref_scanner_hasnextbyte.asp) [hasNextDouble()](https://www.w3schools.com/java/ref_scanner_hasnextdouble.asp) [hasNextFloat()](https://www.w3schools.com/java/ref_scanner_hasnextfloat.asp) [hasNextInt()](https://www.w3schools.com/java/ref_scanner_hasnextint.asp) [hasNextLine()](https://www.w3schools.com/java/ref_scanner_hasnextline.asp) [hasNextLong()](https://www.w3schools.com/java/ref_scanner_hasnextlong.asp) [hasNextShort()](https://www.w3schools.com/java/ref_scanner_hasnextshort.asp) [locale()](https://www.w3schools.com/java/ref_scanner_locale.asp) [next()](https://www.w3schools.com/java/ref_scanner_next.asp) [nextBoolean()](https://www.w3schools.com/java/ref_scanner_nextboolean.asp) [nextByte()](https://www.w3schools.com/java/ref_scanner_nextbyte.asp) [nextDouble()](https://www.w3schools.com/java/ref_scanner_nextdouble.asp) [nextFloat()](https://www.w3schools.com/java/ref_scanner_nextfloat.asp) [nextInt()](https://www.w3schools.com/java/ref_scanner_nextint.asp) [nextLine()](https://www.w3schools.com/java/ref_scanner_nextline.asp) [nextLong()](https://www.w3schools.com/java/ref_scanner_nextlong.asp) [nextShort()](https://www.w3schools.com/java/ref_scanner_nextshort.asp) [radix()](https://www.w3schools.com/java/ref_scanner_radix.asp) [reset()](https://www.w3schools.com/java/ref_scanner_reset.asp) [useDelimiter()](https://www.w3schools.com/java/ref_scanner_usedelimiter.asp) [useLocale()](https://www.w3schools.com/java/ref_scanner_uselocale.asp) [useRadix()](https://www.w3schools.com/java/ref_scanner_useradix.asp) [Java File Methods](https://www.w3schools.com/java/java_ref_file.asp) [Java FileInputStream](https://www.w3schools.com/java/java_ref_fileinputstream.asp) [Java FileOutputStream](https://www.w3schools.com/java/java_ref_fileoutputstream.asp) [Java BufferedReader](https://www.w3schools.com/java/java_ref_bufferedreader.asp) [Java BufferedWriter](https://www.w3schools.com/java/java_ref_bufferedwriter.asp) [Java Iterator Methods](https://www.w3schools.com/java/java_ref_iterators.asp) [Java Collections Methods](https://www.w3schools.com/java/java_ref_collections.asp) [Java System Methods](https://www.w3schools.com/java/java_ref_system.asp) [Java Errors & Exceptions](https://www.w3schools.com/java/java_ref_errors.asp) ## Java Examples [Java Examples](https://www.w3schools.com/java/java_examples.asp) [Java Videos](https://www.w3schools.com/java/java_videos.asp) [Java Compiler](https://www.w3schools.com/java/java_compiler.asp) [Java Exercises](https://www.w3schools.com/java/java_exercises.asp) [Java Quiz](https://www.w3schools.com/java/java_quiz.asp) [Java Code Challenges](https://www.w3schools.com/java/java_challenges.asp) [Java Practice Problems](https://www.w3schools.com/java/java_practice.php) [Java Server](https://www.w3schools.com/java/java_server.asp) [Java Syllabus](https://www.w3schools.com/java/java_syllabus.asp) [Java Study Plan](https://www.w3schools.com/java/java_study_plan.asp) [Java Interview Q\&A](https://www.w3schools.com/java/java_interview_questions.asp) [Java Certificate](https://www.w3schools.com/java/java_exam.asp) # Java Exceptions - Try...Catch [❮ Previous](https://www.w3schools.com/java/java_debugging.asp) [Next ❯](https://www.w3schools.com/java/java_exceptions_multiple.asp) *** ## Java Exceptions As mentioned in the [Errors chapter](https://www.w3schools.com/java/java_errors.asp), different types of errors can occur while running a program - such as coding mistakes, invalid input, or unexpected situations. When an error occurs, Java will normally stop and generate an error message. The technical term for this is: Java will throw an **exception** (throw an error). *** ## Exception Handling (try and catch) Exception handling lets you catch and handle errors during runtime - so your program doesn't crash. It uses different keywords: The `try` statement allows you to define a block of code to be tested for errors while it is being executed. The `catch` statement allows you to define a block of code to be executed, if an error occurs in the try block. The `try` and `catch` keywords come in pairs: ### Syntax[Get your own Java Server](https://www.w3schools.com/java/java_server.asp "W3Schools Spaces") ``` try { // Block of code to try } catch(Exception e) { // Block of code to handle errors } ``` Consider the following example: This will generate an error, because **myNumbers\[10\]** does not exist. ``` public class Main { public static void main(String[ ] args) { int[] myNumbers = {1, 2, 3}; System.out.println(myNumbers[10]); // error! } } ``` The output will be something like this: ``` Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10         at Main.main(Main.java:4) ``` **Note:** `ArrayIndexOutOfBoundsException` occurs when you try to access an index number that does not exist. [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_try_error) If an error occurs, we can use `try...catch` to catch the error and execute some code to handle it: ### Example ``` public class Main { public static void main(String[ ] args) { try { int[] myNumbers = {1, 2, 3}; System.out.println(myNumbers[10]); } catch (Exception e) { System.out.println("Something went wrong."); } } } ``` The output will be: ``` Something went wrong. ``` [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_try_catch) *** ## Finally The `finally` statement lets you execute code, after `try...catch`, regardless of the result: ### Example ``` public class Main { public static void main(String[] args) { try { int[] myNumbers = {1, 2, 3}; System.out.println(myNumbers[10]); } catch (Exception e) { System.out.println("Something went wrong."); } finally { System.out.println("The 'try catch' is finished."); } } } ``` The output will be: ``` Something went wrong. The 'try catch' is finished. ``` [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_try_catch_finally) *** [REMOVE ADS](https://order.w3schools.com/plans) *** ## The throw keyword The `throw` statement allows you to create a custom error. The `throw` statement is used together with an **exception type**. There are many exception types available in Java: `ArithmeticException`, `FileNotFoundException`, `ArrayIndexOutOfBoundsException`, `SecurityException`, etc: ### Example Throw an exception if **age** is below 18 (print "Access denied"). If age is 18 or older, print "Access granted": ``` public class Main { static void checkAge(int age) { if (age < 18) { throw new ArithmeticException("Access denied - You must be at least 18 years old."); } else { System.out.println("Access granted - You are old enough!"); } } public static void main(String[] args) { checkAge(15); // Set age to 15 (which is below 18...) } } ``` The output will be: ``` Exception in thread "main" java.lang.ArithmeticException: Access denied - You must be at least 18 years old.         at Main.checkAge(Main.java:4)         at Main.main(Main.java:12) ``` [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_throw) If **age** was 20, you would **not** get an exception: ### Example ``` checkAge(20); ``` The output will be: ``` Access granted - You are old enough! ``` [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_throw2) *** ## Errors and Exception Types The table below shows some of the most common errors and exceptions in Java, with a short description of each: | Error/Exception | Description | |---|---| | ArithmeticError | Occurs when a numeric calculation goes wrong | | ArrayIndexOutOfBoundsException | Occurs when trying to access an index number that does not exist in an array | | ClassNotFoundException | Occurs when trying to access a class that does not exist | | FileNotFoundException | Occurs when a file cannot be accessed | | InputMismatchException | Occurs when entering wrong input (e.g. text in a numerical input) | | IOException | Occurs when an input or output operation fails | | NullPointerException | Occurs when trying to access an object referece that is `null` | | NumberFormatException | Occurs when it is not possible to convert a specified string to a numeric type | | StringIndexOutOfBoundsException | Occurs when trying to access a character in a String that does not exist | **Tip:** For a list of all errors and exception types, go to our [Java Errors and Exception Types Reference](https://www.w3schools.com/java/java_ref_errors.asp). *** ## Exercise?**What is this?** Test your skills by answering a few questions about the topics of this page When an error occurs, Java will normally stop and generate an error message. The technical term for this is.. *** [❮ Previous](https://www.w3schools.com/java/java_debugging.asp) [Next ❯](https://www.w3schools.com/java/java_exceptions_multiple.asp) [★ +1](https://profile.w3schools.com/log-in?redirect_url=https%3A%2F%2Fwww.w3schools.com%2Fjava%2Fjava_try_catch.asp "Your W3Schools Profile") [Sign in to track progress](https://profile.w3schools.com/log-in?redirect_url=https%3A%2F%2Fpathfinder.w3schools.com&origin=https%3A%2F%2Fwww.w3schools.com%2Fjava%2Fjava_try_catch.asp "Sign in to track your progress") [![Get Certified Offer](https://www.w3schools.com/images/img_2026_cert_java_300.webp)](https://campus.w3schools.com/collections/course-catalog/products/java-course) #### [COLOR PICKER](https://www.w3schools.com/colors/colors_picker.asp) [![colorpicker](https://www.w3schools.com/images/colorpicker2000.png)](https://www.w3schools.com/colors/colors_picker.asp) [REMOVE ADS](https://order.w3schools.com/plans) *** [PLUS](https://order.w3schools.com/plans "Become a PLUS user and unlock powerful features") [SPACES](https://www.w3schools.com/spaces/index.php "Get your own website with W3Schools Spaces") [GET CERTIFIED](https://campus.w3schools.com/collections/certifications "Document your knowledge by getting certified") [FOR TEACHERS](https://www.w3schools.com/academy/index.php "Contact us about W3Schools Academy for educational institutions") [BOOTCAMPS](https://www.w3schools.com/bootcamp/index.php "W3Schools Bootcamps") [CONTACT US]("Contact us about sales or errors") × ## Contact Sales If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com ## Report Error If you want to report an error, or if you want to make a suggestion, send us an e-mail: help@w3schools.com ##### Top Tutorials [HTML Tutorial](https://www.w3schools.com/html/default.asp) [CSS Tutorial](https://www.w3schools.com/css/default.asp) [JavaScript Tutorial](https://www.w3schools.com/js/default.asp) [How To Tutorial](https://www.w3schools.com/howto/default.asp) [SQL Tutorial](https://www.w3schools.com/sql/default.asp) [Python Tutorial](https://www.w3schools.com/python/default.asp) [W3.CSS Tutorial](https://www.w3schools.com/w3css/default.asp) [Bootstrap Tutorial](https://www.w3schools.com/bootstrap/bootstrap_ver.asp) [PHP Tutorial](https://www.w3schools.com/php/default.asp) [Java Tutorial](https://www.w3schools.com/java/default.asp) [C++ Tutorial](https://www.w3schools.com/cpp/default.asp) [jQuery Tutorial](https://www.w3schools.com/jquery/default.asp) ##### Top References [HTML Reference](https://www.w3schools.com/tags/default.asp) [CSS Reference](https://www.w3schools.com/cssref/index.php) [JavaScript Reference](https://www.w3schools.com/jsref/default.asp) [SQL Reference](https://www.w3schools.com/sql/sql_ref_keywords.asp) [Python Reference](https://www.w3schools.com/python/python_reference.asp) [W3.CSS Reference](https://www.w3schools.com/w3css/w3css_references.asp) [Bootstrap Reference](https://www.w3schools.com/bootstrap/bootstrap_ref_all_classes.asp) [PHP Reference](https://www.w3schools.com/php/php_ref_overview.asp) [HTML Colors](https://www.w3schools.com/colors/colors_names.asp) [Java Reference](https://www.w3schools.com/java/java_ref_keywords.asp) [AngularJS Reference](https://www.w3schools.com/angularjs/angularjs_ref_directives.asp) [jQuery Reference](https://www.w3schools.com/jquery/jquery_ref_overview.asp) ##### Top Examples [HTML Examples](https://www.w3schools.com/html/html_examples.asp) [CSS Examples](https://www.w3schools.com/css/css_examples.asp) [JavaScript Examples](https://www.w3schools.com/js/js_examples.asp) [How To Examples](https://www.w3schools.com/howto/default.asp) [SQL Examples](https://www.w3schools.com/sql/sql_examples.asp) [Python Examples](https://www.w3schools.com/python/python_examples.asp) [W3.CSS Examples](https://www.w3schools.com/w3css/w3css_examples.asp) [Bootstrap Examples](https://www.w3schools.com/bootstrap/bootstrap_examples.asp) [PHP Examples](https://www.w3schools.com/php/php_examples.asp) [Java Examples](https://www.w3schools.com/java/java_examples.asp) [XML Examples](https://www.w3schools.com/xml/xml_examples.asp) [jQuery Examples](https://www.w3schools.com/jquery/jquery_examples.asp) [Get Certified](https://campus.w3schools.com/collections/course-catalog) [HTML Certificate](https://campus.w3schools.com/collections/certifications/products/html-certificate) [CSS Certificate](https://campus.w3schools.com/collections/certifications/products/css-certificate) [JavaScript Certificate](https://campus.w3schools.com/collections/certifications/products/javascript-certificate) [Front End Certificate](https://campus.w3schools.com/collections/certifications/products/front-end-certificate) [SQL Certificate](https://campus.w3schools.com/collections/certifications/products/sql-certificate) [Python Certificate](https://campus.w3schools.com/collections/certifications/products/python-certificate) [PHP Certificate](https://campus.w3schools.com/collections/certifications/products/php-certificate) [jQuery Certificate](https://campus.w3schools.com/collections/certifications/products/jquery-certificate) [Java Certificate](https://campus.w3schools.com/collections/certifications/products/java-certificate) [C++ Certificate](https://campus.w3schools.com/collections/certifications/products/c-certificate) [C\# Certificate](https://campus.w3schools.com/collections/certifications/products/c-certificate-1) [XML Certificate](https://campus.w3schools.com/collections/certifications/products/xml-certificate) [**](https://www.linkedin.com/company/w3schools.com/ "W3Schools on LinkedIn") [**](https://discord.com/invite/w3schools "Join the W3schools community on Discord") [**](https://www.facebook.com/w3schoolscom/ "W3Schools on Facebook") [**](https://www.instagram.com/w3schools.com_official/ "W3Schools on Instagram") [FORUM](https://www.w3schools.com/forum/index.php "Forum") [ABOUT](https://www.w3schools.com/about/default.asp "About W3Schools") [ACADEMY](https://www.w3schools.com/academy/index.php "Contact us about W3Schools Academy for educational institutions and organizations") W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our [terms of use](https://www.w3schools.com/about/about_copyright.asp), [cookies]() and [privacy policy](https://www.w3schools.com/about/about_privacy.asp). [Copyright 1999-2026](https://www.w3schools.com/about/about_copyright.asp) by Refsnes Data. All Rights Reserved. [W3Schools is Powered by W3.CSS](https://www.w3schools.com/w3css/default.asp). \--\>
Readable Markdown
## Java Exceptions - Try...Catch *** ## Java Exceptions As mentioned in the [Errors chapter](https://www.w3schools.com/java/java_errors.asp), different types of errors can occur while running a program - such as coding mistakes, invalid input, or unexpected situations. When an error occurs, Java will normally stop and generate an error message. The technical term for this is: Java will throw an **exception** (throw an error). *** ## Exception Handling (try and catch) Exception handling lets you catch and handle errors during runtime - so your program doesn't crash. It uses different keywords: The `try` statement allows you to define a block of code to be tested for errors while it is being executed. The `catch` statement allows you to define a block of code to be executed, if an error occurs in the try block. The `try` and `catch` keywords come in pairs: Consider the following example: This will generate an error, because **myNumbers\[10\]** does not exist. ``` public class Main { public static void main(String[ ] args) { int[] myNumbers = {1, 2, 3}; System.out.println(myNumbers[10]); // error! } } ``` The output will be something like this: **Note:** `ArrayIndexOutOfBoundsException` occurs when you try to access an index number that does not exist. [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_try_error) If an error occurs, we can use `try...catch` to catch the error and execute some code to handle it: ### Example ``` public class Main { public static void main(String[ ] args) { try { int[] myNumbers = {1, 2, 3}; System.out.println(myNumbers[10]); } catch (Exception e) { System.out.println("Something went wrong."); } } } ``` The output will be: [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_try_catch) *** ## Finally The `finally` statement lets you execute code, after `try...catch`, regardless of the result: ### Example ``` public class Main { public static void main(String[] args) { try { int[] myNumbers = {1, 2, 3}; System.out.println(myNumbers[10]); } catch (Exception e) { System.out.println("Something went wrong."); } finally { System.out.println("The 'try catch' is finished."); } } } ``` The output will be: [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_try_catch_finally) *** *** ## The throw keyword The `throw` statement allows you to create a custom error. The `throw` statement is used together with an **exception type**. There are many exception types available in Java: `ArithmeticException`, `FileNotFoundException`, `ArrayIndexOutOfBoundsException`, `SecurityException`, etc: ### Example Throw an exception if **age** is below 18 (print "Access denied"). If age is 18 or older, print "Access granted": ``` public class Main { static void checkAge(int age) { if (age < 18) { throw new ArithmeticException("Access denied - You must be at least 18 years old."); } else { System.out.println("Access granted - You are old enough!"); } } public static void main(String[] args) { checkAge(15); // Set age to 15 (which is below 18...) } } ``` The output will be: [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_throw) If **age** was 20, you would **not** get an exception: ### Example ``` checkAge(20); ``` The output will be: [Try it Yourself »](https://www.w3schools.com/java/tryjava.asp?filename=demo_throw2) *** ## Errors and Exception Types The table below shows some of the most common errors and exceptions in Java, with a short description of each: | Error/Exception | Description | |---|---| | ArithmeticError | Occurs when a numeric calculation goes wrong | | ArrayIndexOutOfBoundsException | Occurs when trying to access an index number that does not exist in an array | | ClassNotFoundException | Occurs when trying to access a class that does not exist | | FileNotFoundException | Occurs when a file cannot be accessed | | InputMismatchException | Occurs when entering wrong input (e.g. text in a numerical input) | | IOException | Occurs when an input or output operation fails | | NullPointerException | Occurs when trying to access an object referece that is `null` | | NumberFormatException | Occurs when it is not possible to convert a specified string to a numeric type | | StringIndexOutOfBoundsException | Occurs when trying to access a character in a String that does not exist | **Tip:** For a list of all errors and exception types, go to our [Java Errors and Exception Types Reference](https://www.w3schools.com/java/java_ref_errors.asp). *** ## Exercise?**What is this?** Test your skills by answering a few questions about the topics of this page When an error occurs, Java will normally stop and generate an error message. The technical term for this is.. *** [![Get Certified Offer](https://www.w3schools.com/images/img_2026_cert_java_300.webp)](https://campus.w3schools.com/collections/course-catalog/products/java-course)
ML Classification
ML Categories
/Computers_and_Electronics
99.3%
/Computers_and_Electronics/Programming
95.5%
/Computers_and_Electronics/Programming/Java_(Programming_Language)
93.7%
Raw JSON
{
    "/Computers_and_Electronics": 993,
    "/Computers_and_Electronics/Programming": 955,
    "/Computers_and_Electronics/Programming/Java_(Programming_Language)": 937
}
ML Page Types
/Article
98.8%
/Article/Tutorial_or_Guide
96.9%
Raw JSON
{
    "/Article": 988,
    "/Article/Tutorial_or_Guide": 969
}
ML Intent Types
Informational
99.9%
Raw JSON
{
    "Informational": 999
}
Content Metadata
Languageen-us
Authornull
Publish Timenot set
Original Publish Time2018-11-05 13:28:40 (7 years ago)
RepublishedNo
Word Count (Total)3,305
Word Count (Content)829
Links
External Links8
Internal Links798
Technical SEO
Meta NofollowNo
Meta NoarchiveNo
JS RenderedYes
Redirect Targetnull
Performance
Download Time (ms)58
TTFB (ms)52
Download Size (bytes)46,480
Shard40 (laksa)
Root Hash10756103332767711440
Unparsed URLcom,w3schools!www,/java/java_try_catch.asp s443