Java Interview Questions and Answers Freshers | Java | Code Decode

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 เม.ย. 2024
  • In this video of code decode we have covered Java interview questions and answers for freshers
    Udemy Course Discounted Link
    www.udemy.com/course/master-s...
    If you want to participate in Mock Interview send your nominations using below google form
    forms.gle/yfxTWUnzWhwpRM1WA
    *Q) What is Java?*
    Developed by Sun Microsystems, Java is a highly popular, object-oriented programming language.
    This platform independent programming language is utilized for Android development, web development, artificial intelligence, cloud applications, and much more.
    *Q) How is the Java code that you write is executed on the machine/CPU?*
    The java code we write is first compiled to Bytecodes which are platform independent, these bytecodes are then converted to Native/machine codes, and that is how the java code that we write in simple language is converted to machine-understandable language and we can see the output.
    Let's first understand the process of how Java code is translated into bytecode and then into machine code, and who performs each step:
    1. *Java Code to Bytecode:*
    - **Java Compiler (javac)**: You, as a programmer, write Java code in a human-readable format. When you're done writing your code, you use the Java compiler (typically invoked through the command `javac` ) to compile your Java source code files (`.java` files) into bytecode files (`.class` files).
    - **Compilation Process**: The Java compiler (`javac` ) analyzes your Java source code and translates it into bytecode instructions. These bytecode instructions are stored in `.class` files. Each `.java` source file typically corresponds to one `.class` file.
    2. *Bytecode to Machine Code:*
    - **Java Virtual Machine (JVM)**: The JVM is a virtual machine that executes Java bytecode. It's responsible for translating bytecode into native machine code that can be executed by the underlying hardware.
    - **Interpreter and Just-In-Time (JIT) Compiler**:
    - **Interpreter**: Initially, the JVM may use an interpreter to execute bytecode. The interpreter reads and executes each bytecode instruction one at a time. This allows the Java program to start running quickly.
    - **Just-In-Time (JIT) Compiler**: As the program runs, the JVM may identify portions of the bytecode that are executed frequently (hot spots). When it detects such portions, it may use the JIT compiler to optimize and translate those bytecode sections into native machine code.
    - **Optimized Native Code**: Once the bytecode is translated into native machine code by the JIT compiler, the JVM executes this optimized native code directly on the CPU, just like any other native application.
    In summary, the Java compiler (`javac`) translates human-readable Java code into bytecode, which is then executed by the Java Virtual Machine (JVM). The JVM interprets the bytecode and may use a combination of interpreter and JIT compiler to translate bytecode into optimized native machine code for execution on the underlying hardware.
    Most Asked Core Java Interview Questions and Answers: • Core Java frequently a...
    Advance Java Interview Questions and Answers: • Advance Java Interview...
    Java 8 Interview Questions and Answers:
    • Java 8 Interview Quest...
    Hibernate Interview Questions and Answers:
    • Hibernate Interview Qu...
    Spring Boot Interview Questions and Answers:
    • Advance Java Interview...
    Angular Playlist:
    • Angular Course Introdu...
    SQL Playlist: • SQL Interview Question...
    GIT: • GIT
    Subscriber and Follow Code Decode
    Subscriber Code Decode: th-cam.com/users/CodeDecode?...
    LinkedIn : / codedecodeyoutube
    Instagram: / codedecode25
    #springbootinterviewfresher #codedecode #javadeveloper

ความคิดเห็น • 17

  • @MithileshKumar-hv4bu
    @MithileshKumar-hv4bu 2 หลายเดือนก่อน +1

    Hello mam I hope you are doing well and love your content
    One request please make a video on How to explain
    project in a interview ..

  • @MithileshKumar-hv4bu
    @MithileshKumar-hv4bu 2 หลายเดือนก่อน +1

    one of the best video . also please include String immutable topic , thread question and final , finally , finalize topic ........

    • @CodeDecode
      @CodeDecode  2 หลายเดือนก่อน

      Thanks Mithilesh sure we will do that 👍

  • @tanveersyed1049
    @tanveersyed1049 2 หลายเดือนก่อน +1

    Nice video these r very frequently asked

    • @CodeDecode
      @CodeDecode  2 หลายเดือนก่อน

      Thanks

  • @CuckoofluteYT
    @CuckoofluteYT 2 หลายเดือนก่อน

    Please do cover string handling topic …
    What means this keyword?

  • @CuckoofluteYT
    @CuckoofluteYT 2 หลายเดือนก่อน +1

    My recent favourite youtube channel ❤your videos are really worth to watch and it’s easily understood….Thanks a million for making such useful content for free…❤❤Like Tcs java interview questions also do a video on IBM backend developer interview questions mam…😊

    • @CodeDecode
      @CodeDecode  2 หลายเดือนก่อน +1

      Sure 👍👍

  • @user-dm4pk8jm9d
    @user-dm4pk8jm9d 2 หลายเดือนก่อน +1

    great video, thanks

    • @CodeDecode
      @CodeDecode  2 หลายเดือนก่อน

      👍😀

  • @nikhilaggarwal9325
    @nikhilaggarwal9325 2 หลายเดือนก่อน +1

    High quality

    • @CodeDecode
      @CodeDecode  2 หลายเดือนก่อน

      👍😀

  • @striverop
    @striverop 2 หลายเดือนก่อน +1

    packages in java please cover questions on this topic thanks for this video

    • @CodeDecode
      @CodeDecode  2 หลายเดือนก่อน +1

      Noted👍

  • @rishiraj2548
    @rishiraj2548 2 หลายเดือนก่อน

    🙏🙂👍

  • @MithileshKumar-hv4bu
    @MithileshKumar-hv4bu 2 หลายเดือนก่อน +1

    Hello mam if any course is Angular with Typescript please tell me I need that course .....🙏

    • @CodeDecode
      @CodeDecode  หลายเดือนก่อน

      It's on our channel itself