[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-391106-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-391106-en":131},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","fundamental-questions-of-java-technical-interview-questions-answers","Fundamental Questions of Java - Technical Interview Questions & Answers","","Fundamental Questions of Java provides concise technical interview answers covering core Java fundamentals and OOP concepts. It explains the relationship between JDK and JRE, benefits of Java, Java platform components, Java data types, and control statements. The document also outlines checked vs unchecked exceptions, class and interface types, libraries and frameworks, and basic networking models. It further introduces procedural programming versus OOP and key OOP principles such as abstraction, encapsulation, and inheritance.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/exam/","Exam",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/fundamental-questions-of-java-technical-interview-questions-answers/391106/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/fundamental-questions-of-java-technical-interview-questions-answers/391106.png","ImageObject",300,407,{"name":42,"@type":43},"Taylor Morgan","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-09","2026-09-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",13,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the difference between JDK and JRE in Java?","Question",{"text":63,"@type":64},"The JDK (Java Development Kit) is for developers to create Java applications and includes tools, libraries, and compilers. The JRE (Java Runtime Environment) is for end-users to run Java applications and provides the runtime environment and essential libraries, but not development tools.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What are the different types of Java data types?",{"text":68,"@type":64},"Java data types are divided into primitive types and non-primitive types. Primitive examples include boolean, byte, short, int, long, float, double, and char, while non-primitive examples include String, Array, Class, and Interface (and Enum is also listed as a non-primitive type in the document).",{"name":70,"@type":61,"acceptedAnswer":71},"What are checked and unchecked exceptions?",{"text":72,"@type":64},"Checked exceptions must be declared in the method signature and must be handled or declared, otherwise the compiler generates an error. Unchecked exceptions do not need to be declared in the method signature and the compiler will not generate an error if they are not handled.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},391106,1790413032,{"code":4,"msg":82,"data":83},"success",[84,88,92,95,100,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":93,"slug":94},70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":96,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":33,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":4},1099523885336,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Technical  \nInterview Questions  \n+91-7260058093 [www.algotutor.io](www.algotutor.io)  [info@algotutor.io](info@algotutor.io)  \nFundamental Questions of Java  \nQ 1. What is the difference between JDK and JRE?  \nAns: The JDK (Java Development Kit) is used by developers for creating Java applications and includes the necessary tools, libraries, and compilers.  \nThe JRE (Java Runtime Environment) is used by end-users to run Java applications and provides the runtime environment and essential class libraries, but does not include development tools.  \nQ 2. What are the benefits of using Java?  \nAns: These are the benefits of using Java:  \n Portability: Java code can be run on any platform that has a Java Virtual Machine (JVM) .  \n Security: Java has a built-in security model that helps to protect users from malicious code.  \n Object-oriented: Java is an object-oriented programming language, which makes it easy to create modular and reusable code.  \n Robust: Java is a robust language that is designed to be reliable and efficient.  \n Widely used: Java is a widely used language that has a large community of developers and support resources.  \nQ 3. What are the different components of the Java platform?  \nAns: The Java platform is a software environment that provides a standard way for developing and running Java applications. It consists of the following components:  \n Java Virtual Machine (JVM)  \n Java Runtime Environment (JRE)  \n Java Development Kit (JDK)  \nQ 4. What are the different types of Java data types?  \nAns: There are two types of data types in Java: primitive data types and non-primitive data types.  \nPrimitive data types Non-primitive data types  \n boolean  String  \n byte  Array  \n short  Class  \n int  Interface  \n long  Enum  \n float  \n decimal places  \n double  \n char  \nQ 5. What are the different types of Java control statements?  \nAns: There are three types of control statements in Java:  \n Decision-making statements (if, if else & switch)  \n Looping statements (while, do while & for)  \n Jump statements ( continue & return)  \n02  \nQ 6. What are the different types of Java exceptions?  \nAns: There are two types of exceptions in Java: checked exceptions and unchecked exceptions.  \n Checked exceptions are exceptions that must be declared in the method signature. If a checked exception is thrown in a method, the method must either handle the exception or declare it to be thrown. If the method does not handle the exception, the compiler will generate an error.  \nUnchecked exceptions are exceptions that do not need tobe declared in the method signature. Unchecked exceptions can be thrown by any method, and the compiler will not generate an error if they are not handled.  \n03  \nQ 7. What are the different types of Java classes & Java interfaces?  \nAns: There are two main types of Java classes:  \n Normal classes are the most common type of class in Java. They can have fields, methods, and constructors.  \n Abstract classes are classes that cannot be instantiated. They can only be used as a base class for other classes.  \nThere are also two main types of Java interfaces:  \n Normal interfaces are a collection of abstract methods. A class can implement an interface, thereby inheriting the abstract methods of the interface.  \n Marker interfaces are interfaces that do not contain any methods. They are used to indicate that a class has a certain property or behavior.  \nQ 8. What are the different types of Java libraries & Java frameworks?  \nAns: A Java library is a collection of reusable Java classes and interfaces.  \nsome examples of Java libraries:  \n Apache Commons  \n Google Guava  \n Joda-Time  \n JUnit  \n Mockito  \nA Java framework is a collection of reusable Java classes, interfaces, and code that provides specific functionality.  \nsome examples of Java libraries:  \n Spring  \n Hibernate  \n JSF  \n Grails  \n Struts  \n04  \nQ 9. What are the different types of Java tools?  \nAns: There are two types of threads in Java: user threads ","cbCaipyXbeDhapsK","https://ap.wps.com/l/cbCaipyXbeDhapsK","pdf",5087708,22,"English","# Fundamental Questions of Java\n## Core Java Concepts\n## Data Types and Control Statements\n## Exceptions, Classes, Interfaces\n## Libraries, Frameworks, Tools\n## Networking\n# Object-Oriented Programming\n## Procedural Programming vs OOP\n## Core OOP Concepts","[{\"question\":\"What is the difference between JDK and JRE in Java?\",\"answer\":\"The JDK (Java Development Kit) is for developers to create Java applications and includes tools, libraries, and compilers. The JRE (Java Runtime Environment) is for end-users to run Java applications and provides the runtime environment and essential libraries, but not development tools.\"},{\"question\":\"What are the different types of Java data types?\",\"answer\":\"Java data types are divided into primitive types and non-primitive types. Primitive examples include boolean, byte, short, int, long, float, double, and char, while non-primitive examples include String, Array, Class, and Interface (and Enum is also listed as a non-primitive type in the document).\"},{\"question\":\"What are checked and unchecked exceptions?\",\"answer\":\"Checked exceptions must be declared in the method signature and must be handled or declared, otherwise the compiler generates an error. Unchecked exceptions do not need to be declared in the method signature and the compiler will not generate an error if they are not handled.\"}]","Fundamental Questions of Java - Technical Interview Questions & Answers | PDF",1790349234,55]