Home / Posts (page 3)

Posts

Interview Question-Java Virtual Machine

When a Java program is compiled it is converted to byte code which is then executed by the Java interpreter by translating the byte code into machine instructions. Java interpreter is part of Java runtime environment. Byte code is an intermediate code independent of any machine and any operating system. …

Read More »

Inheritance:

Inheritance is an ability to derive new classes from existing classes. A derived class is known as subclass which inherits the instance variables and methods of the super class or base class, and can add some new instance variables and methods.You are not limited to just one layer of inheritance. …

Read More »