

{"id":20838,"date":"2018-07-11T04:00:36","date_gmt":"2018-07-11T04:00:36","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=20838"},"modified":"2020-02-01T12:54:46","modified_gmt":"2020-02-01T07:24:46","slug":"tricky-java-interview-questions","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/","title":{"rendered":"Tricky Java Interview Questions &#8211; A Latest Collection of Tips &amp; Tricks"},"content":{"rendered":"<h2>1. Tricky Java Interview Questions<\/h2>\n<p>Today, we are discussing the last part of our series tricky Java interview questions. These tricky<strong><a href=\"https:\/\/data-flair.training\/blogs\/java-tutorial\/\"> Java <\/a>i<\/strong>nterview questions will boost your knowledge and confidence to crack the Java interview in the first attempt. For more detailed knowledge, follow every link provided in tricky Java interview questions.<\/p>\n<p>So, let&#8217;s start exploring tricky Java interview questions and answers.<\/p>\n<div id=\"attachment_42243\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-42243\" class=\"size-full wp-image-42243\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg\" alt=\"Tricky Java Interview Questions\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-42243\" class=\"wp-caption-text\">Tricky Java Interview Questions<\/p><\/div>\n<h2>2. Interview Questions for Java<\/h2>\n<p>Below, we are discussing some important tricky Java Interview Questions:<\/p>\n<p><strong>Q.1 Difference between a class and an object?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">An object is an instance or living representation of the prototype whereas a class is a definition or prototype.<\/span><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/class-and-object-in-java\/\">Learn more about Java Class &amp; Object.<\/a><\/strong><\/p>\n<p><strong>Q.2 What are the four cornerstones of OOP?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Polymorphism, Abstraction, Encapsulation, and Inheritance.<\/span><\/p>\n<p><strong>Q.3 Explain Java\u2019s &#8220;write once and run anywhere&#8221; Nature?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Java compiles to a bytecode, the intermediate language between source code and machine code. This bytecode doesn&#8217;t platformed specific and hence often fed to any platform. <\/span><\/p>\n<p><strong>Q.4 How to restart a Dead Thread Be?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">A dead thread can&#8217;t be restarted.<\/span><\/p>\n<p><strong>Q.5 What happens if an exception not caught?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">It leads to the termination of the program within which through when an uncaught <strong><a href=\"https:\/\/data-flair.training\/blogs\/exception-handling-in-java\/\">exception<\/a><\/strong> results in the uncaughtException() method of the thread\u2019s ThreadGroup, it invokes.<\/span><\/p>\n<p><strong>Q.6 Describe a compilation unit?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">A Java source code file.<\/span><\/p>\n<p><strong>Q.7 Explain a task&#8217;s priority and also tell how it is used in scheduling?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">An integer value is the priority of a class that identifies the relative order in which it should be executed with respect to other tasks. The scheduler tries to schedule higher priority tasks before lower priority tasks.<\/span><\/p>\n<p><strong>Q.8 State the value which will Readline() return once it&#8217;s Reached the tip of a file?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Returns null once it reaches the end of a file.<\/span><\/p>\n<p><strong>Q.9 When will an object&#8217;s Finalize() method Invoke? <\/strong><\/p>\n<p><span style=\"font-weight: 400\">An object\u2019s <strong><a href=\"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/\">finalize() method<\/a><\/strong> can&#8217;t invoke\u00a0by the garbage collector whereas the thing continues to be reachable. However, an object\u2019s finalize() method could also invoke by different objects.<\/span><\/p>\n<p><strong>Tricky Java Interview Questions for freshers &#8211; Q. 1,2,3,4,6,8<\/strong><\/p>\n<p><strong>Tricky Java Interview Questions for experienced &#8211; Q. 5,7,9<\/strong><\/p>\n<p><strong>Q.10 Will garbage collection guarantee that a program won&#8217;t run out of memory?<\/strong><\/p>\n<p><span style=\"font-weight: 400\"><a href=\"https:\/\/data-flair.training\/blogs\/garbage-collection-in-java\/\"><strong>Garbage collection<\/strong> <\/a>doesn&#8217;t guarantee that a program won&#8217;t run out of memory. It&#8217;s possible for programs to use up memory resources quicker than they&#8217;re garbage collected. It&#8217;s also possible for programs to make objects that don&#8217;t subject to garbage pickup.<\/span><\/p>\n<p><strong>Q.11 Is Sizeof a keyword?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">The sizeof operator isn&#8217;t a keyword.<\/span><\/p>\n<p><strong>Q.12 What state will a thread enter once it terminates its processing?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">When a thread terminates its processing, it enters the dead state.<\/span><\/p>\n<p>Let&#8217;s discuss Tricky Java Interview Questions <strong><a href=\"https:\/\/data-flair.training\/blogs\/java-interview-questions-and-answers\/\">Part 2<\/a><\/strong>, <strong><a href=\"https:\/\/data-flair.training\/blogs\/interview-questions-for-java\/\">Part 3<\/a><\/strong>, <strong><a href=\"https:\/\/data-flair.training\/blogs\/java-interview-questions-with-answers\/\">Part 4<\/a><\/strong><\/p>\n<p><strong>Q.13 Will a lock acquire on a class?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Yes, a lock often acquires on a class. This lock acquires on the class\u2019s class object.<\/span><\/p>\n<p><strong>Q.14 How to use observer and Observable?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Objects that subclass the Observable class maintain a list of observers. An observable object once when update it invokes the update() method of every one of its observers to advise the observers that it&#8217;s changed state. <\/span><\/p>\n<p><strong>Q.15 What&#8217;s s transient variable?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">A transient <strong><a href=\"https:\/\/data-flair.training\/blogs\/variables-in-java\/\">variable<\/a><\/strong> may a variable that will not serialize.<\/span><\/p>\n<p><strong>Q.16 What is the Output From System.out.println(&#8220;hello&#8221;+null);?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Hellonull.<\/span><\/p>\n<p><strong>Q.17 What are E and Pi?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">E is the base of the natural logarithm and PI is mathematical value pi.<\/span><\/p>\n<p><strong>Tricky Java Interview Questions for freshers &#8211; Q. 10,11,12,15,16,17<\/strong><\/p>\n<p><strong>Tricky Java Interview Questions for experienced &#8211; Q. 13,14<\/strong><\/p>\n<p><strong>Q.18 If an object is garbage collected, will it become reachable again?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Once associate degree object is garbage collected, it ceases to exist. It will not become reachable again.<\/span><\/p>\n<p><strong>Q.19 Will an exception is rethrown?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Yes, an <strong><a href=\"https:\/\/data-flair.training\/blogs\/java-exception\/\">exception<\/a><\/strong> often rethrown.<\/span><\/p>\n<p><strong>Q.20 What&#8217;s the purpose of the file class?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">The <strong><a href=\"https:\/\/data-flair.training\/blogs\/java-file-class\/\">File class<\/a><\/strong>\u00a0use to make objects that give access to the files and directories of a local file system.<\/span><\/p>\n<p><strong>Q.21 Is a class subclass of itself?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">No. a class isn&#8217;t a subclass of itself.<\/span><\/p>\n<p><strong>Q.22 What modifiers may use with an interface declaration?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">An <strong><a href=\"https:\/\/data-flair.training\/blogs\/java-functional-interface\/\">interface<\/a><\/strong> may declare as public or abstract.<\/span><\/p>\n<p><strong>Q.23 What classes of exceptions may catch by a catch clause?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">A catch clause will catch any exception that will allot to the Throwable kind. <\/span><\/p>\n<p><strong>Q.24 Tell us the difference between the reader\/writer class hierarchy and also the Inputstream\/outputstream class Hierarchy?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">The InputStream\/OutputStream class hierarchy is byte-oriented and the reader\/writer class hierarchy is character-oriented<\/span><\/p>\n<p><strong>Q.25 Will an Object Garbage Collected whereas it&#8217;s Still Reachable?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">A reachable object can&#8217;t garbage collected. Solely unreachable objects may garbage collected.<\/span><\/p>\n<p><strong>Tricky Java Interview Questions for freshers &#8211; Q. 18,19,20,21,22,13<\/strong><\/p>\n<p><strong>Tricky Java Interview Questions for experienced &#8211; Q. 24,25<\/strong><\/p>\n<h2>3. Conclusion<\/h2>\n<p>Hence, you have completed the last part of our series tricky Java Interview Questions. Hope, these frequently asked tricky Java Interview Questions helped you to make your career brighter. Still, if any doubt regarding tricky Java Interview Questions, ask in the comment tab.<\/p>\n<p><strong>See also-<\/strong><\/p>\n<p>java Interview Questions <a href=\"https:\/\/data-flair.training\/blogs\/questions-for-java-interview\/\"><strong>Part 5<\/strong><\/a>, <a href=\"https:\/\/data-flair.training\/blogs\/latest-java-interview-questions\/\"><strong>Part 6<\/strong><\/a>, <a href=\"https:\/\/data-flair.training\/blogs\/java-programming-interview-questions\/\"><strong>Part 7<\/strong><\/a><\/p>\n<p><strong><a href=\"https:\/\/www.oracle.com\/in\/java\/index.html\">For reference<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1892,&quot;href&quot;:&quot;https:\\\/\\\/www.oracle.com\\\/in\\\/java\\\/index.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20180309182901\\\/https:\\\/\\\/www.oracle.com\\\/in\\\/java\\\/index.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 06:58:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-14 08:15:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-23 01:57:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-29 01:19:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-02 23:36:00&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-06 06:22:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-12 06:21:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-15 12:15:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-25 12:34:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-02 15:49:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-09 12:30:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-13 10:51:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 10:36:53&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-02 04:16:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-05 09:34:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-09 07:51:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-14 06:56:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 17:15:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-23 03:11:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-28 14:33:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-02 05:56:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-06 15:00:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-09 19:26:12&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-15 15:14:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-22 14:49:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-28 14:05:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-08 06:18:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-11 07:09:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-14 19:30:32&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-18 11:05:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-26 06:56:11&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-30 09:54:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-12 18:01:18&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-12 18:01:18&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Tricky Java Interview Questions Today, we are discussing the last part of our series tricky Java interview questions. These tricky Java interview questions will boost your knowledge and confidence to crack the Java&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":42243,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[1855,3033,6960,7559,7560],"class_list":["post-20838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-best-java-interview-questions","tag-crack-java-interview","tag-interview-questions-for-java","tag-java-interview-questions-and-answers","tag-java-interview-questions-for-experienced"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tricky Java Interview Questions - A Latest Collection of Tips &amp; Tricks - DataFlair<\/title>\n<meta name=\"description\" content=\"Tricky java Interview questions and answers, what questions are to be asked in Java Interview, how to crack Java Interview, Guide to Java Programming\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tricky Java Interview Questions - A Latest Collection of Tips &amp; Tricks - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Tricky java Interview questions and answers, what questions are to be asked in Java Interview, how to crack Java Interview, Guide to Java Programming\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-11T04:00:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-01T07:24:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tricky Java Interview Questions - A Latest Collection of Tips &amp; Tricks - DataFlair","description":"Tricky java Interview questions and answers, what questions are to be asked in Java Interview, how to crack Java Interview, Guide to Java Programming","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/","og_locale":"en_US","og_type":"article","og_title":"Tricky Java Interview Questions - A Latest Collection of Tips &amp; Tricks - DataFlair","og_description":"Tricky java Interview questions and answers, what questions are to be asked in Java Interview, how to crack Java Interview, Guide to Java Programming","og_url":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-07-11T04:00:36+00:00","article_modified_time":"2020-02-01T07:24:46+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Tricky Java Interview Questions &#8211; A Latest Collection of Tips &amp; Tricks","datePublished":"2018-07-11T04:00:36+00:00","dateModified":"2020-02-01T07:24:46+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/"},"wordCount":870,"commentCount":3,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg","keywords":["best java interview questions","crack java Interview","Interview questions for Java","Java Interview Questions and answers","java interview questions for experienced"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/","url":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/","name":"Tricky Java Interview Questions - A Latest Collection of Tips &amp; Tricks - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg","datePublished":"2018-07-11T04:00:36+00:00","dateModified":"2020-02-01T07:24:46+00:00","description":"Tricky java Interview questions and answers, what questions are to be asked in Java Interview, how to crack Java Interview, Guide to Java Programming","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Java-Interview-Questions-and-Answers.jpg","width":1200,"height":628,"caption":"Tricky Java Interview Questions"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/tricky-java-interview-questions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Java Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/java\/"},{"@type":"ListItem","position":3,"name":"Tricky Java Interview Questions &#8211; A Latest Collection of Tips &amp; Tricks"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/20838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=20838"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/20838\/revisions"}],"predecessor-version":[{"id":44698,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/20838\/revisions\/44698"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/42243"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=20838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=20838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=20838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}