{"id":34864,"date":"2016-05-26T14:36:49","date_gmt":"2016-05-26T09:06:49","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=34864"},"modified":"2024-01-02T17:46:24","modified_gmt":"2024-01-02T12:16:24","slug":"java-bitwise-operator-using-efficiently-to-improve-performance","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/","title":{"rendered":"Java Bitwise Operator using efficiently to improve Performance"},"content":{"rendered":"<p>Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution.<\/p>\n<p>Lets calculate the mathematical expression x<sup>n\u00a0<\/sup>i.e. x&#8217;s power n.<\/p>\n<p>To solve this problem anyone can easily say its just one loop with n\u00a0times and adding a in that loop. Thats very simple and fast. Really? Lets analyze it, we have just used O(n) complexity to find the result which means 8<sup>20<\/sup> will take 20 loop iterations to calculate it.<\/p>\n<pre>x<sup>n<\/sup> = x * x ...... * x (n times)\r\n<\/pre>\n<p>Do we really need so much iterations to calculate it?<\/p>\n<p>Following mathematical formula can help us to reduce the O(n) complexity\u00a0to O(log n) complexity<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/01\/exponentiation.png\" alt=\"Blog image\" width=\"304\" height=\"130\" \/><\/p>\n<p>Bitwise operator can be used to achieve this by shifting the bits of power. Following sample code is self explainatory.<\/p>\n<p>[java]<br \/>\npublic class PowerAofB {<br \/>\n\tpublic static void main(String[] args) {<br \/>\n\t\t\/\/ Basic way with O(n)<br \/>\n\t\tint a = 9;<br \/>\n\t\tint b = 12;<br \/>\n\t\tlong result = 1;<br \/>\n\t\tfor (int i = 1; i &lt;= b; i++) {<br \/>\n\t\t\t\tresult *= a;<br \/>\n\t\t}<br \/>\n\t\tSystem.out.println(result);<\/p>\n<p>\t\t\/\/ Efficient way with O(log n)<br \/>\n\t\tSystem.out.println(ipow(a,b));<br \/>\n\t}<\/p>\n<p>\tprivate static long ipow(int base, int exp)<br \/>\n\t{<br \/>\n\t    long result = 1;<\/p>\n<p>\t    while (exp != 0)<br \/>\n\t    {<br \/>\n\t    \tif ((exp &amp; 1) == 1){<br \/>\n\t            result *= base;<br \/>\n\t    \t}<br \/>\n\t        \/\/right shifting bytes with sign 1 position<br \/>\n\t        \/\/equivalent of division of 2<br \/>\n\t        exp &gt;&gt;= 1;<br \/>\n\t        base *= base;<br \/>\n\t    }<\/p>\n<p>\t    return result;<br \/>\n\t}<br \/>\n}<br \/>\n[\/java]<\/p>\n<p>Comparison between basic approach and new approach<\/p>\n<table style=\"border: 1px solid black\" cellspacing=\"0\">\n<tbody>\n<tr style=\"border: 1px solid black;vertical-align: middle\">\n<td style=\"border: 1px solid black;padding-right: 10px;padding-left: 10px\" align=\"left\" bgcolor=\"#9999FF\" height=\"35\">Approach<\/td>\n<td style=\"border: 1px solid black;padding-right: 10px;padding-left: 10px\" align=\"right\" bgcolor=\"#9999FF\">Example<\/td>\n<td style=\"border: 1px solid black;padding-right: 10px;padding-left: 10px\" align=\"right\" bgcolor=\"#9999FF\">iteration count<\/td>\n<td style=\"border: 1px solid black;padding-right: 10px;padding-left: 10px\" align=\"right\" bgcolor=\"#9999FF\">Execution time (nano seconds)<\/td>\n<\/tr>\n<tr style=\"border: 1px solid black;vertical-align: middle\">\n<td style=\"border: 1px solid black\" align=\"left\" bgcolor=\"#CCCCCC\" height=\"50\">Basic Way<\/td>\n<td style=\"border: 1px solid black\" align=\"right\">12<small><sup>15<\/sup><\/small><\/td>\n<td style=\"border: 1px solid black\" align=\"right\">15<\/td>\n<td style=\"border: 1px solid black\" align=\"right\">1140<\/td>\n<\/tr>\n<tr style=\"border: 1px solid black;vertical-align: middle\">\n<td style=\"border: 1px solid black\" align=\"left\" bgcolor=\"#CCCCCC\" height=\"50\">Using Bitwise Operator<\/td>\n<td style=\"border: 1px solid black\" align=\"right\">12<small><sup>15<\/sup><\/small><\/td>\n<td style=\"border: 1px solid black\" align=\"right\">5<\/td>\n<td style=\"border: 1px solid black\" align=\"right\">570<\/td>\n<\/tr>\n<tr style=\"border: 1px solid black;vertical-align: middle\">\n<td style=\"border: 1px solid black\" align=\"left\" bgcolor=\"#CCCCCC\" height=\"50\">Basic Way<\/td>\n<td style=\"border: 1px solid black\" align=\"right\">4<sup><small>122<\/small><\/sup><\/td>\n<td style=\"border: 1px solid black\" align=\"right\">122<\/td>\n<td style=\"border: 1px solid black\" align=\"right\">4561<\/td>\n<\/tr>\n<tr style=\"border: 1px solid black;vertical-align: middle\">\n<td style=\"border: 1px solid black\" align=\"left\" bgcolor=\"#CCCCCC\" height=\"50\">Using Bitwise Operator<\/td>\n<td style=\"border: 1px solid black\" align=\"right\">4<sup><small>122<\/small><\/sup><\/td>\n<td style=\"border: 1px solid black\" align=\"right\">8<\/td>\n<td style=\"border: 1px solid black\" align=\"right\">1710<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><small style=\"color:blue\">Image\u00a0Reference:\u00a0http:\/\/www.programminglogic.com\/fast-exponentiation-algorithms\/ <\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn\u00a0i.e. x&#8217;s power n. To solve this problem anyone can easily [&hellip;]<\/p>\n","protected":false},"author":922,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":12,"footnotes":""},"categories":[446,1994,1],"tags":[3397,4844,3396,2683],"class_list":["post-34864","post","type-post","status-publish","format-standard","hentry","category-java","category-software-development","category-technology","tag-complexity","tag-java","tag-operators","tag-performance"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x&#039;s power n. To solve this problem anyone can easily\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sandeep Gupta\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x&#039;s power n. To solve this problem anyone can easily\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x&#039;s power n. To solve this problem anyone can easily\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#article\",\"name\":\"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog\",\"headline\":\"Java Bitwise Operator using efficiently to improve Performance\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeep-gupta\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2024\\\/01\\\/exponentiation.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#articleImage\"},\"datePublished\":\"2016-05-26T14:36:49+05:30\",\"dateModified\":\"2024-01-02T17:46:24+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#webpage\"},\"articleSection\":\"Java\\\/JVM, Software development, Technology, Complexity, Java, Operators, performance\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#listItem\",\"name\":\"Java Bitwise Operator using efficiently to improve Performance\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#listItem\",\"position\":3,\"name\":\"Java Bitwise Operator using efficiently to improve Performance\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeep-gupta\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeep-gupta\\\/\",\"name\":\"Sandeep Gupta\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/e2945e1d-0be8-4468-b9d0-81471b9f234c_1566-Sandeep-Gupta-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Sandeep Gupta\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/\",\"name\":\"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog\",\"description\":\"Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x's power n. To solve this problem anyone can easily\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/java-bitwise-operator-using-efficiently-to-improve-performance\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeep-gupta\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sandeep-gupta\\\/#author\"},\"datePublished\":\"2016-05-26T14:36:49+05:30\",\"dateModified\":\"2024-01-02T17:46:24+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog","description":"Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x's power n. To solve this problem anyone can easily","canonical_url":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#article","name":"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog","headline":"Java Bitwise Operator using efficiently to improve Performance","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sandeep-gupta\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2024\/01\/exponentiation.png","@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#articleImage"},"datePublished":"2016-05-26T14:36:49+05:30","dateModified":"2024-01-02T17:46:24+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#webpage"},"articleSection":"Java\/JVM, Software development, Technology, Complexity, Java, Operators, performance"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/www.tothenew.com\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#listItem","name":"Java Bitwise Operator using efficiently to improve Performance"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#listItem","position":3,"name":"Java Bitwise Operator using efficiently to improve Performance","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/sandeep-gupta\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/sandeep-gupta\/","name":"Sandeep Gupta","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/e2945e1d-0be8-4468-b9d0-81471b9f234c_1566-Sandeep-Gupta-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Sandeep Gupta"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/","name":"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog","description":"Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x's power n. To solve this problem anyone can easily","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sandeep-gupta\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sandeep-gupta\/#author"},"datePublished":"2016-05-26T14:36:49+05:30","dateModified":"2024-01-02T17:46:24+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog","og:description":"Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x's power n. To solve this problem anyone can easily","og:url":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Java Bitwise Operator using efficiently to improve Performance | TO THE NEW Blog","twitter:description":"Many of us know the various operators available in Java. But do we really use them all efficiently. Here I am illustrating one simple example which can show the high performance gain with bitwise operatator than the standard solution. Lets calculate the mathematical expression xn i.e. x's power n. To solve this problem anyone can easily","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"34864","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 21:28:18","updated":"2024-02-29 09:32:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tJava Bitwise Operator using efficiently to improve Performance\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"Java Bitwise Operator using efficiently to improve Performance","link":"https:\/\/www.tothenew.com\/blog\/java-bitwise-operator-using-efficiently-to-improve-performance\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/34864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/922"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=34864"}],"version-history":[{"count":1,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/34864\/revisions"}],"predecessor-version":[{"id":59857,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/34864\/revisions\/59857"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=34864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=34864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=34864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}