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
Why stringbuffer is faster than string?
Can a list be null in java?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What is == and === in javascript?
Is empty in java?
What is the basic concept of java?
List any five features of java?
What is method in research paper?
How java enabled high performance?
How do you escape in java?
What is local class in java?
What is unsigned char?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is a generic code?
Can we declare the static variables and methods in an abstract class?