{"id":285,"date":"2017-02-01T21:13:05","date_gmt":"2017-02-01T21:13:05","guid":{"rendered":"http:\/\/kaizen-koka.com\/?p=285"},"modified":"2017-07-21T17:35:45","modified_gmt":"2017-07-21T17:35:45","slug":"core-java-interview-questions","status":"publish","type":"post","link":"https:\/\/kaizen-koka.com\/?p=285","title":{"rendered":"Core Java Interview Questions"},"content":{"rendered":"<p>\n\t<span style=\"font-size:14px;\"><span style=\"font-family:tahoma,geneva,sans-serif;\">Q) Why is java platform independent?<br \/>\n\tQ) Explain OOPS concepts?&nbsp;<br \/>\n\tQ) Explain abstractions?<br \/>\n\tQ) Explain encapsulation?<br \/>\n\tQ) What is an instance of a class?<br \/>\n\tQ) Explain is-a vs has-a relationship?<br \/>\n\tQ) Explain inheritance and types of inheritance?<br \/>\n\tQ) Does java support multiple inheritances?<br \/>\n\tQ) Difference between abstract class vs Interface?<br \/>\n\tQ) Explain method overloading vs overriding OR compile time vs runtime polymorphism?<br \/>\n\tQ) Explain class loaders in java?<br \/>\n\tQ) Explain different ways of creating an object in java?<\/span><\/span>\n<\/p>\n<p>\n\t<br \/>\n\t<span style=\"font-size:14px;\"><span style=\"font-family:tahoma,geneva,sans-serif;\">Q) Can super class reference variable holding subclass object?<br \/>\n\tQ) Can we overload the static method?&nbsp;<br \/>\n\tQ) Can we override static method?<br \/>\n\tQ) Can we overload a private method?&nbsp;<br \/>\n\tQ) Can we override a private method?<br \/>\n\tQ) Can we overload the final method?&nbsp;<br \/>\n\tQ) Can we override the final method?&nbsp;<br \/>\n\tQ) How to create immutable class and object in java?<br \/>\n\tQ) What are immutable classes?<br \/>\n\tQ) Difference between creating a String object with&amp; without new keyword?<br \/>\n\tQ) Explain memory management in java?<br \/>\n\tQ) Explain Garbage Collector in Java? What is Xmx and Xms in java? What is parallel GC in java?<br \/>\n\tQ) Explain finalize keyword in java?<br \/>\n\tQ) Explain static keyword?<br \/>\n\tQ) Can we access non-static members from static method directly?<br \/>\n\tQ) Access Modifiers and its scopes?<br \/>\n\tQ) Explain try catch finally?<br \/>\n\tQ) When does finally block doesn&#39;t execute?<br \/>\n\tQ) Explain throw, throws keywords in java?<br \/>\n\tQ) Steps to implement buit in exceptions ?<br \/>\n\tQ) Explain caught vs uncaught exceptions? Runtime vs compile time exceptions? list few built-in compile and runtime exceptions?<br \/>\n\tQ) Explain dry principle in java?<br \/>\n\tQ) Explain generics in java?<\/span><\/span>\n<\/p>\n<p>\n\tQ) Explain about reflections?\n<\/p>\n<p>\n\tQ) Explain JVM memory partition?\n<\/p>\n<p>\n\t******************************************************<br \/>\n\tQ) How do you initialize Servlet Context And Servlet Config in Web.xml?<br \/>\n\tQ) What is the front controller for Spring framework ?<br \/>\n\tQ) Can you explain Spring MVC flow ?<br \/>\n\tQ) How does second level cache works in Hibernate ?<br \/>\n\tQ) Difference between get() and load() in Hibernate ?<br \/>\n\tQ) What is criteria query in Hibernate ?<br \/>\n\tQ) What is the Annonation for one-to-many mappings?<br \/>\n\tQ) What are stero type annontaions?<br \/>\n\tQ) What are the ways to load a property file in Spring?<br \/>\n\tQ) Explain @Autowired Annotaion?<br \/>\n\tQ) Difference between @Bean vs @Autowired annotation?<br \/>\n\tQ) When do you need a qualifier ?<br \/>\n\tQ) Can you explain how to do Spring and Hibernate Integration ?<br \/>\n\t******************************************************<br \/>\n\tQ) Command to run spring boot application<br \/>\n\tQ) What are the steps involved in launching aws ec2 instance ?<br \/>\n\tQ) What is .pem key file in AWS ?<br \/>\n\tQ) How does AWS resolve DNS names ?<br \/>\n\tQ) Explain AUTO Scaling group ?<br \/>\n\tQ) Explain about ELB ?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q) Why is java platform independent? Q) Explain OOPS concepts?&nbsp; Q) Explain abstractions? Q) Explain encapsulation? Q) What is an instance of a class? Q) Explain is-a vs has-a relationship? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[11],"tags":[],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-interview-questions"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p70lnf-4B","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=285"}],"version-history":[{"count":4,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/285\/revisions\/444"}],"wp:attachment":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}