Tutorial Topics
Drawing Pad Using Applet Emirp number - Java Program
Object oriented Basic theory - Java
2141    Arnab De    06/07/2018

Object oriented Basic theory

Some Question Answer about core Java and basic object oriented theory and some Interview level Questions for Students.

Java is platform independence – Explain.

We can write a java program in any platform or operating system. After compiling this java code converted into byte code. This code can interpret in any platform or operating system if and only if that platform is JVM supported. That is we can write java program in Windows and run it in Linux. That is why java known as platform independence

What is JVM and is it platform independent?

The heart of java programming is Java Virtual Machine (JVM). The main function of the JVM is converting byte code into machine readable code. JVM is not platform independent. Each and every operating system have their own JVM. But byte code is same for every JVM, after reading bytecode each JVM convert it into executable code as per operating system. JVM is called virtual because it provides an interface that doesn’t depend on the underlying OS.


What is the difference between JDK and JVM?

Java Development Kit (JDK) is used for java development. JVM is a part of JDK. JVM used to converting byte code into machine readable code.

JDK manage all the requirement (executables, binaries and tools) needs for debug, compile or execute a Java Program. But JVM handled the execution part of the java program.

What is the difference between JVM and JRE?

The implementation of JVM is known as Java Runtime Environment (JRE). It consists of various java binaries, other classes and JVM to execute any program successfully. JRE doesn’t contain any development tools like java debugger, compiler, etc. Without JRE we can’t execute any java program. After compiling the java program JRE is need for execute the byte code in any system.


Why Java is not pure Object Oriented language?

Java supports primitive data types like int, char, byte, float, double etc. That is why java is not consider as pure object oriented language.

This allowance of primitive data types is due to the simplicity of the language while writing our code. But each and every primitive data type backe up by a class called Wrapper class.


What is the importance of main method in Java?

main() method is the entry point of any standalone java program. The syntax of main method is 

public static void main(String args[]).

public – This method is public due to make it’s accessibility globally.

static – To call the main method without create any object.

Drawing Pad Using Applet Emirp number - Java Program
Author Details
Arnab De
I have over 16 years of experience working as an IT professional, ranging from teaching at my own institute to being a computer faculty at different leading institute across Kolkata. I also work as a web developer and designer, having worked for renowned companies and brand. Through tutorialathome, I wish to share my years of knowledge with the readers.
Enter New Comment
Comment History
No Comment Found Yet.
Albert Einstein
Unthinking respect for authority is the greatest enemy of truth.
Albert Einstein
Today So Far
Total View (Lakh)
26/05/2018     41743
01/01/2018     35913
28/06/2017     33955
25/06/2018     33203
02/08/2017     32306
06/07/2017     26716
01/08/2017     26706
15/05/2017     26325
14/07/2017     21730
21/04/2018     20623