Why Java is called as purely platform independent..?
Explain briefly..dont Give regular answers
Explain with your own example..?
Answer Posted / chandrasekhar
we know that c,c++ are platform dependent the reason is
c,c++ directly communicate with OS.The .exe file of c,c++
contains 4 types:-1.)program
2.)libraries
3.)processor
4.)OS
so c,c++ are platform dependent
Java prpogram connect with JVM and then interact with OS
The .class file contains only 2 types:1.)program
2.)libraries
so java is platform independent
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
placement papaers of spring computing technology
What is the original name of java?
What are the drawbacks of reflection?
Why spring singleton is not thread safe?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
Why java strings are immutable in nature?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
What is method overloading with type promotion?
What are daemon Threads in java?
What are the three parts of a lambda expression? What is the type of lambda expression?
Can we override private methods?
How do you replace a string in java?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is an example of a constant variable?
What is super keyword explain with example?