Thursday, October 1, 2020

Home






Mastering Java Interview Questions: Your Comprehensive Guide


       If you're preparing for a Java interview or just looking to enhance your foundational knowledge of Java, you're in the right place. We've compiled a list of frequently asked Java interview questions that not only aid you in interviews but also strengthen your understanding of essential Java topics.

Java Basics                             




Hello readers

           We welcome you to dnb-java.blogspot.com, this blog is not a tutorial but the guide for you to crack interviews for java. I will be keep on updating with some more technologies, which are helpful in java to improve your code & functionality.






 

JVM (Java Virtual Machine), JRE (Java Runtime Environment), JDK (Java Development Kit)

            These are basic things in java. which do don't bother about & ignore. But we should have clarity about these topics. These are basic & most important questions, which will be asked in every interview, irrespective of  whether You are freshers of experienced.
     



Some of the basic topics this blog contains:

  •        difference between 32-bit and 64-bit JVM
  •       Types of memory areas are allocated by JVM
  •        classloader
  •        JIT compiler
  •        singleton class
  •        Encapsulation
  •       Polymorphism
  •       Abstraction

Java Commands:
             Knowing how to compile and run Java code is a fundamental skill. Follow these steps for smooth execution:
  1. Save your Java code with the filename as the class name and the extension .java.

  2. Compile the code using the javac command:

                                   javac Classname.java                                                                                                         

           Once you run above javac command. It creates .class file, with the same name of program.
           once code is compiled, it is converted into byte-codes. & now program is ready to run in any machine irrespective of operating system. It only requires JVM. This converted code runs over JVM.

           To Run java code use command java (without any extension).
                                   java Classname                                                                                                         


Related Links :
            Threads                 https://dnb-java.blogspot.com/p/thread.html
           Linux Commands   https://dnb-java.blogspot.com/p/linuxcommands.html
          Windows Commands  https://dnb-java.blogspot.com/p/rwindowscommands.html


Additional Resources :
                 https://dnb-ai1.blogspot.com/


           We welcome to you too for posting comments & share more documents related to topic. Which can help more people to get updated & always get ready to launch for interview.




    Home

    Mastering Java Interview Questions: Your Comprehensive Guide         If you're preparing for a Java interview or just lookin...