USERS LOGIN:
 User:
 Pass:

FILES BY LETTERS:
ALL | # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
FILES BY YEARS:
2024 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002 2001 2000 1999 1998 1997 1996 1995 1994 1993
NEW UPDATES:
Latest updates
CATEGORIES
  • All in one tools
  • Antivirus & Malware
  • Audio & Video
  • Backup tools
  • Browsers&Plugins
  • CD/DVD/Blu-Ray
  • CD installations
  • Codec packs
  • Compression tools
  • Comunication
  • Desktop tools
  • Developer tools
  • Drivers
  • Drive:SSD,HDD...
  • Emulators
  • Emulator NES
  • File sharing
  • File Transfer
  • Fiinance managers
  • Games
  • Game cheats
  • Game emulators
  • Game mods
  • Game No-CD/DVD
  • Game patches
  • Game pubishers
  • Game requirements
  • Game trainers
  • Game torrents
  • Game unlockers
  • Games Full
  • Graphics & Photos
  • How to?
  • Icons
  • Internet Tools
  • Messages & Emails
  • Music torrents
  • Network & tools
  • Office / News
  • Portable versions
  • Security & Firewalls
  • Serial numbers
  • Social Apps
  • Sys info
  • System utilities
  • Video help
  • Virtualization
  • VPN / Privacy
  • Windows tweaks
  • Popular:



    Guest | Registration   
     HOW TO | Java Interview Questions and Answers Set 1 ...
     HOW TO:  90 articles / 3 comments ... A-Z | # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z  
    Java Interview Questions and Answers Set 1

    May 3, 2024 517 views, 0 comments
    ---------------------------------------------------------------------------------------------- HOW TO?? | Java Interview Questions and Answers Set 1...

    1. What is difference between JDK,JRE and JVM?

    JVM

    • JVM is an acronym for Virtual Machine, it is an abstract machine which provides the runtime environment in which bytecode can be executed. It is a specification.
    • JVMs are available for many hardware and software platforms (so JVM is platform dependent).

    JRE

    • JRE stands for Runtime Environment. It is the implementation of JVM.

    JDK

    • JDK is an acronym for Development Kit. It physically exists. It contains JRE + development tools.

    2. How many types of memory areas are allocated by JVM?

    Many types:

    • Class(Method) Area
    • Heap
    • Stack
    • Program Counter Register
    • Native Method Stack

    3. What is JIT compiler?

    Just-In-Time(JIT) compiler:It is used to improve the performance. JIT compiles parts of the byte code that have similar functionality at the same time, and hence reduces the amount of time needed for compilation.Here the term “compiler” refers to a translator from the instruction set of a virtual machine (JVM) to the instruction set of a specific CPU.

    4. What is platform?

    A platform is basically the hardware or software environment in which a program runs. There are two types of platforms software-based and hardware-based. provides software-based platform.

    5. What is the main difference between platform and other platforms?

    The platform differs from most other platforms in the sense that it’s a software-based platform that runs on top of other hardware-based platforms.It has two components:

    • Runtime Environment
    • API(Application Programming Interface)

    6. How to create a daemon thread in ?

    We use the class setDaemon(true) to create this thread. We call this method before the start() method, and else we get IllegalThreadStateException.

    7. What is classloader?

    The classloader is a subsystem of JVM that is used to load classes and interfaces.There are many types of classloaders e.g. Bootstrap classloader, Extension classloader, System classloader, Plugin classloader etc.

    8. What is the default value of the local variables?

    The local variables are not initialized to any default value, neither primitives nor object references.

    9.Garbage collector thread is what kind of a thread?

    t is a daemon thread. It is a low priority thread running in the background.

    10.Can I import same package/class twice? Will the JVM load the package twice at runtime?

    One can import the same package or same class multiple times. Neither compiler nor JVM complains about it.But the JVM will internally load the class only once no matter how many times you import the same class.


    ----------------------------------------------------------------------------------------------
    S.Bojan


    Similar articles: Views:
    Java Runtime Environment (64 & 32 bit) 8 Update 421
    377
    Java Runtime Environment (64 & 32 bit) 8 Update 391
    552
    Java Interview Questions and Answers Set 1
    518

    Comments 0

    There are no comments ......


    Note:

    Guests comments are allowed ...

      POST YOUR COMMENT


     
    Last added:
  • .htaccess Hacks to Speed Up, O
  • Microsoft to launch Windows Re
  • Miners and how to avoid them
  • How to install a game or updat
  • How to Fix the Missing "S
  • How to enable Windows 11'
  • How to fix CrowdStrike BSOD is
  • Java Interview Questions and A
  • No more clean reinstall! Use t
  • Block Visitors by Country Usin
  • How to get the Classic Context
  • Fix USB Flash Drive Freezes Wi
  • How to FIX ERROR CODE: 0x0003

  • Rating:
    SOCIJAL MEDIA:

    ADD THIS TO FACEBOOK


    RATE:
    1 2 3 4 5


    Recent Comments
    Re: How to How to fix missing Windows Security icon in taskbar?
    michael: Solution 3 works for me THX ...
    Re: How to Uninstall Windows Updates Using The Command Prompt
    misigo: thanks the solution worked ...
    Re: How to Fix SFC /SCANNOW There Is A System Repair Pending
    Brett Muscio: Typically Error 87 occurs when spaces are missed when entering the commands. Try copying and pasting the code ...

    Site Author 1998 - 2025 ©, All rights reserved | For your question klik here

    EU-SEARCH | EU-SEARCH Images | FILESI (english) | NEWS