ANSWER: Java is platform independent as it can be used on any system regardless of having different operating systems and file systems. The way it does this by using the Java virtual machine (“JVM”). Look at the flow chart below for how it does it.
Tag Archives: platform independent
Java Interview Questions
1. What’s the difference between Abstract vs. Interface? ANSWER: An abstract class can’t be instantiated, but it can be subclassed. An abstract class usually contains abstract and non-abstract methods that subclasses are forced to provide an implementation for. An interface is a completely “abstract class” that is used to group related methods with empty bodies. …