[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573485-105":53,"doc-detail-573485-en":126},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","java-programming-cheatsheet-built-in-data-types-and-operators-quick-reference","JAVA PROGRAMMING CHEATSHEET - Built-in Data Types and Operators - Quick Reference","","Java Programming Cheatsheet provides a compact quick reference for core Java syntax and fundamentals. It summarizes built-in data types including int, double, boolean, char, and String, along with common operators and typical literals. It also covers declaration and assignment statements, integer ranges, bit-wise and floating-point operations, boolean logic, comparison operators, selected Java library calls, and type conversion examples with resulting values.",{"@graph":63,"@context":118},[64,80,101],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/java-programming-cheatsheet-built-in-data-types-and-operators-quick-reference/573485/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/java-programming-cheatsheet-built-in-data-types-and-operators-quick-reference/573485.png","ImageObject",442,249,{"name":88,"@type":89},"jayni","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-18","2026-10-14",true,{"@type":98,"interactionType":99,"userInteractionCount":73},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"What are Java’s built-in data types covered in this cheatsheet?","Question",{"text":108,"@type":109},"It lists int, double, boolean, char, and String, with brief notes on values and operators for each.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"Which operators are highlighted for integers and booleans?",{"text":113,"@type":109},"Integers include arithmetic operators and a remainder operator, plus bit-wise operations. Booleans include logical operations like and, or, and not, with corresponding operators.",{"name":115,"@type":106,"acceptedAnswer":116},"How does the cheatsheet explain type conversion and its effects?",{"text":117,"@type":109},"It shows example expressions and their resulting values for numeric-to-numeric casting and parsing, including cases where truncation changes the output.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},573485,1792317734,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":73,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":135,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":141},3985747859343,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","JAVA PROGRAMMING CHEATSHEET  \n(HTTPS://INTROCS.CS.PRINCETON.EDU/JAVA/11CHEATSHEET/)  \nHello,World.  \nBuilt-in data types.  \n\n| type   | set of values   | common operators   | sample literal values   |\n| --- | --- | --- | --- |\n| int   | integers   | +-*/%   | 99122147483647   |\n| double   | floating-point numbers   | +-*/   | 3.142.56.022e23   |\n| boolean   | boolean values   | &&   | true false   |\n| char   | characters   |  | 'A''1''%''\\n'   |\n| String   | sequences of characters   | +   | \"AB\"\"Hello\"\"2.5\"   |\n\nDeclaration and assignment statements.  \n# Integers.\n\n\n| values   |  |  | integers between-2³¹and+2³¹-1   |  |  |  |  |  |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| typical literals   |  |  | 1234   | 99   | 01000000   |  |  |  |\n| operations   | g   | add   | subtract   |  | multiply   |  | divide   | remainder   |\n| operators   |  | +   | -   |  | *   |  | /   | %   |\n\n\n| Bit-wise operations:   | &     | ^   | ～   |\n| --- | --- | --- | --- |\n\nFloating-point numbers.  \n\n| values   | real numbers(specified by IEEE754 standard)   |  |  |  |  |\n| --- | --- | --- | --- | --- | --- |\n| typical literals   | 3.14159   | 6.022e23   | 2.01.4142135623730951   |  |  |\n| operations   | subtract  \u003Cbr>add   |  | multiply   |  | divide   |\n| operators   | +   |  | ☆   |  | /   |\n\nBooleans.  \n\n| values   | true or false   |  |\n| --- | --- | --- |\n| literals   | true false   |  |\n| operations   | and  \u003Cbr>or   | not   |\n| operators   | &&  \u003Cbr>II   |  |\n\nComparison operators.  \n\n| op   | meaning   | true   | false   |\n| --- | --- | --- | --- |\n| 三二   | equal   | 2 ==2   | 2 ==3   |\n| !=   | not equal   | 3 !=2   | 2 !=2   |\n| \u003C   | less than   | 2\u003C13   | 2\u003C2   |\n| \u003C=   | less than or equal   | 2\u003C=2   | 3\u003C=2   |\n| >   | greater than   | 13>2   | 2>13   |\n|  | greater than or equal   | 3>=2   | 2 >=3   |\n\nJava library calls.  \n\n| method call   | library   | return type   | value   |\n| --- | --- | --- | --- |\n| Integer.parseInt(\"123\")   | Integer   | int   | 123   |\n| Double.parseDouble(\"1.5\")   | Double   | double   | 1.5   |\n| Math.sqrt(5.0*5.0-4.0*4.0)   | Math   | double   | 3.0   |\n| Math.1og(Math.E)   | Math   | double   | 1.0   |\n| Math.random()   | Math   | double   | random in (0,1)   |\n| Math.round(3.14159)   | Math   | long   | 3   |\n| Math.max(1.0,9.0)   | Math   | double   | 9.0   |\n\nType conversion.  \n\n| expression   | expression  \u003Cbr>type   | expression  \u003Cbr>value   |\n| --- | --- | --- |\n| (1+2+3+4)/4.0   | double   | 2.5   |\n| Math.sqrt(4)   | double   | 2.0   |\n| \"1234\"+99   | String   | \"123499\"   |\n| 11 *0.25   | double   | 2.75   |\n| (int)11*0.25   | double   | 2.75   |\n| 11*(int)0.25   | int   | 0   |\n| (int)(11*0.25)   | int   | 2   |\n| (int)2.71828   | int   | 2   |\n| Math.round(2.71828)   | long   | 3   |\n| (int)Math.round(2.71828)   | int   | 3   |\n| Integer.parseInt(\"1234\")   | int   | 1234   |","cbCaiumQrd0iI0XY","https://ap.wps.com/l/cbCaiumQrd0iI0XY","pdf",904420,20,"English","# Built-in data types\n## Integers\n## Floating-point numbers\n## Booleans\n## Comparison operators\n## Java library calls\n## Type conversion","[{\"question\":\"What are Java’s built-in data types covered in this cheatsheet?\",\"answer\":\"It lists int, double, boolean, char, and String, with brief notes on values and operators for each.\"},{\"question\":\"Which operators are highlighted for integers and booleans?\",\"answer\":\"Integers include arithmetic operators and a remainder operator, plus bit-wise operations. Booleans include logical operations like and, or, and not, with corresponding operators.\"},{\"question\":\"How does the cheatsheet explain type conversion and its effects?\",\"answer\":\"It shows example expressions and their resulting values for numeric-to-numeric casting and parsing, including cases where truncation changes the output.\"}]","JAVA PROGRAMMING CHEATSHEET - Built-in Data Types and Operators - Quick Reference | PDF",1791940743,7]