[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-718162-105":59,"doc-detail-718162-en":130,"doc-similar-718162":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","basic-java-interview-questions-for-freshers","Basic Java Interview Questions for Freshers","","A set of interview-ready Java questions designed for freshers, moving from foundational concepts to intermediate coverage. It explains core topics such as Java features, JVM/JDK/JRE, classes and objects, data types, constructors, equality operators, inheritance, polymorphism, abstraction, encapsulation, static and final, packages, access modifiers, and memory concepts. The intermediate section adds ArrayList vs Linked List, exception handling, checked vs unchecked exceptions, strings and mutability, wrappers, interfaces, super, abstract classes vs interfaces, and multithreading and synchronization.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":20,"@type":76,"position":81},"https://docshare.wps.com/document/exam/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/basic-java-interview-questions-for-freshers/718162/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/basic-java-interview-questions-for-freshers/718162.png","ImageObject",300,407,{"name":92,"@type":93},"Oliver","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-16",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are the key features of Java?","Question",{"text":112,"@type":113},"Java is platform-independent, object-oriented, secure, and robust. It supports multithreading and automatic garbage collection.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is the difference between JDK, JRE, and JVM?",{"text":117,"@type":113},"JDK includes the compiler plus JRE. JRE is for running Java applications, while JVM executes Java bytecode.",{"name":119,"@type":110,"acceptedAnswer":120},"How do checked and unchecked exceptions differ?",{"text":121,"@type":113},"Checked exceptions are caught at compile-time (e.g., IOException). Unchecked exceptions are caught at runtime (e.g., NullPointerException).","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},718162,1794855115,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":19,"category_name":20,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},8796095461610,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Basic Java Interview Questions for Freshers  \nThese questions cover foundational concepts and are commonly asked in entry-level job interviews.  \nWhat are the key features of Java?  \nJava is platform-independent, object-oriented, secure, and robust and supports multithreading and automatic garbage collection.  \nWhat is the JVM?  \nThe JVM (Java Virtual Machine) runs Java bytecode and allows Java programs to be platform-independent.  \nWhat is the difference between JDK, JRE, and JVM?  \n● JDK: Java Development Kit (includes compiler + JRE)  \n● JRE: Java Runtime Environment (for running Java apps)  \n● JVM: Java Virtual Machine (executes bytecode)  \nWhat is a Class in Java?  \nA class is a blueprint for creating objects. It defines properties and methods.  \nWhat is an Object in Java?  \nAn object is an instance of a class containing state and behavior.  \nWhat are the data types in Java?  \nJava has two types:  \n● Primitive (int, char, boolean, etc. )  \n● Non-Primitive (arrays, classes, interfaces)  \nWhat is a Constructor?  \nA constructor is a special method used to initialize objects. It has the same name as the class.  \nWhat is the difference between == and equals()?  \n● == checks reference equality.  \n● equals() checks value/content equality.  \nWhat is Inheritance in Java?  \nInheritance allows one class to acquire the properties of another class using the extends keyword.  \nWhat is Polymorphism?  \nPolymorphism allows objects to take many forms. It can be:  \n● Compile-time (method overloading)  \n● Runtime (method overriding)  \nWhat is Abstraction?  \nAbstraction hides internal details and shows only functionality. Achieved using abstract classes and interfaces.  \nWhat is Encapsulation?  \nEncapsulation wraps data and methods in a single unit (class) and restricts access using access modifiers.  \nWhat is the 'static' keyword?  \nUsed to declare class-level methods and variables.  \nWhat is final in Java?  \nFinal makes variables constant, methods un-overridable, and classes non-inheritable.  \nWhat is a Package in Java?  \nA package groups related classes and interfaces to prevent naming conflicts.  \nWhat are Access Modifiers?  \nThey control visibility:  \n● public  \n● private  \n● protected  \n● default  \nWhat is the default value of an int variable?  \nZero (0) .  \nWhat is method overloading?  \nTwo or more methods with the same name but different parameters.  \nWhat is method overriding?  \nA subclass provides its version of a method declared in the parent class.  \nWhat is the difference between Stack and Heap memory?  \n● Stack stores local variables.  \n● Heap stores objects.  \nJava Interview Questions for Freshers – Intermediate Level Once you clear basic interview questions, interviewers often test your problem-solving and coding logic.  \nWhat is the difference between ArrayList and Linked List?  \n● ArrayList is faster for retrieval.  \n● Linked List is better for insert/delete operations.  \nWhat is Exception Handling?  \nIt manages runtime errors using try-catch blocks to prevent program crashes.  \nWhat is the difference between checked and unchecked exceptions?  \n● Checked: Caught at compile-time ( IOException)  \n● Unchecked: Caught at runtime ( NullPointerException)  \nWhat is the difference between String, StringBuilder, and StringBuffer?  \n● String: Immutable  \n● StringBuilder: Mutable, not thread-safe  \n● StringBuffer: Mutable, thread-safe  \nWhat are Wrapper Classes in Java?  \nWrapper classes convert primitives to objects (e.g. , int to Integer) .  \nWhat is an interface?  \nAn interface defines a contract with abstract methods. Implemented using the implements keyword.  \nWhat is the use of the super keyword?  \nIt refers to the parent class constructor or method.  \nWhat is the difference between an abstract class and an interface?  \n● Abstract Class: Can have methods with implementation.  \n● Interface: Only abstract methods (till Java 7) , multiple inheritance.  \nWhat is Multithreading?  \nAllows concurrent execution of two or more threads to ","cbCaiq1zdkzx34ks","https://ap.wps.com/l/cbCaiq1zdkzx34ks","pdf",488136,"English","# Basic Java Interview Questions for Freshers\n## Core Java Concepts\n## Intermediate Level Questions\n# Advanced Java Interview Questions for Freshers with Answers\n## Core Advanced Topics","[{\"question\":\"What are the key features of Java?\",\"answer\":\"Java is platform-independent, object-oriented, secure, and robust. It supports multithreading and automatic garbage collection.\"},{\"question\":\"What is the difference between JDK, JRE, and JVM?\",\"answer\":\"JDK includes the compiler plus JRE. JRE is for running Java applications, while JVM executes Java bytecode.\"},{\"question\":\"How do checked and unchecked exceptions differ?\",\"answer\":\"Checked exceptions are caught at compile-time (e.g., IOException). Unchecked exceptions are caught at runtime (e.g., NullPointerException).\"}]","Basic Java Interview Questions for Freshers | PDF",18,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d674e757827a2ca13bbaec1f12ad5669.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0c394f847d42c09b5df74f22d658881c.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/42560ae94e3f34f1406b6cb57b43068a.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/2ff790a82ac1817e35b27475308c80a3.webp",980,1268,{"list":162,"token":66},[163,169,175,181,187,192,199,206,213,220],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":46,"category_name":20,"create_tm":168},391108,"Java Interview Questions For Freshers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917644796/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=xAIxhUys%2Frz88J6BDRS8OzTNN%2Bg%3D","java-interview-questions-for-freshers",1790349238,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":52,"category_name":20,"create_tm":174},718164,"Top 1000 Java Interview Question & Answers - Study Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230019204707/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=iE42gJ6St2KwC5rHfYOtu8IZJbE%3D","top-1000-java-interview-question-answers-study-guide",1794855117,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":46,"category_name":20,"create_tm":180},391107,"Java Interview Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917361239/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=YDV7qzUP296QUhx9BsPGSLwEeP4%3D","java-interview-questions",1790349236,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":143,"category_name":20,"create_tm":186},391106,"Fundamental Questions of Java - Technical Interview Questions & Answers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917644778/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=ZN3QZ3vh7NBI3DoUAC%2FJpdr3kIc%3D","fundamental-questions-of-java-technical-interview-questions-answers",1790349234,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":29,"category_name":20,"create_tm":129},718163,"Core Java Interview Questions - Basic Interview Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230018614136/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=k85%2FUkU1ngqlRUTBOt3tzEI4oRQ%3D","core-java-interview-questions-basic-interview-questions",{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":20,"create_tm":198},391193,"Virtusa Interview Questions for Freshers - Technical and HR","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917367994/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=4GG5xZajhhqlarZ9WEpjSMb5Bmc%3D","virtusa-interview-questions-for-freshers-technical-and-hr",21,1790350005,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":20,"create_tm":205},202513,"CISM 254 - Advanced Computer Programming – Java Syllabus","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882889321/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=afq9eSBfBuGPQqBTVCJJl%2FxiLjM%3D","cism-254-advanced-computer-programming-java-syllabus",26,1788547610,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":20,"create_tm":212},311713,"The AP Computer Science A Cheat Sheet - Unit 1A - Primitives & Expressions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907590524/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=Xojj8grryOe%2FvecYpklinKmcjr0%3D","the-ap-computer-science-a-cheat-sheet-unit-1a-primitives-expressions",22,1789894693,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":20,"create_tm":219},314863,"AP Computer Science A Unit 7 Quiz - Practice Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907680779/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=0fo9jNo%2Fpn1UvRuAIWc%2BHXEkDPs%3D","ap-computer-science-a-unit-7-quiz-practice-questions",11,1789901976,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":197,"category_name":20,"create_tm":225},391200,"Java MCQ Questions and Answers - Basic to Advanced","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917652685/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=o5iJ9VWXrIopgToj1kOhEQK2c%2B0%3D","java-mcq-questions-and-answers-basic-to-advanced",1790350021]