what are the purposes of native, transiant key words?
Answer Posted / ranganathkini
When a method is marked with the native keyword. Then it
means that the method is implemented externally in a
non-Java language (more likely C/C++).
Native functions are used to perform operations beyond the
control of JVM. Native methods are by default not portable
unlike the Java programs.
A field that is marked by the transient keyword means that
during serialization of the class instance, that field will
be ignored and not serialized.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain different types of wrapper classes in java?
Explain the difference between arraylist and linkedlist in java?
What comes to mind when someone mentions a shallow copy in java?
What is byte value?
design an lru cache in java?
Are arrays classes in java?
What are the concepts of 'OOPS'?
What is the main difference between java platform and other platforms?
What is the difference between C++ and Java and your preferences?
what r advatages of websphere? & how to deploy?
Can we have 2 main methods in java class?
how are methods defined?
How do you remove spaces in java?
What are the different types of collections in java?
What is final keyword?