Most frequently asked Java Interview Questions:
Here are some frequently asked java interview Questions. These questions will help you in interview as well as will improve elementary knowledge about java topics mentioned in the page.
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:
Java Class File Name should be the same as the class Name having main() method & should have extension as .java.
Once java code has been created & file is saved with Classname.java.
Use javac command to compile file.
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
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.