Java Interview Questions - Answers
Java Interview Questions - Answers
iii) Java is platform independent. We can run the same code across different
platforms with only the JVM.
iv) Java supports multithreading, it has the potential for a program to perform
several tasks at the same time.
JRE is a software package that contains Java class libraries and JVM in
order to successfully run a Java Application.
6. What is inheritance?
In object oriented programming inheritance is a powerful feature which allows
a class to inherit all the methods and attributes from another class. The class
that inherits from another is called child-class or subclass and which it
inherits from is called parent or super class. In java we use ‘extends’
keywords for inheritance.
9. What is WORA?
This is a term or an acronym which stands for Write once run anywhere. The
term refers to a program's ability to run across all platforms. This slogan was
created by Sun Microsystem to illustrate the cross-platform benefits of Java.
(….with example)