what are the purposes of native, transiant key words?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ravikiran
native is the keyword used for methods to cll the methods
defined in a platform dependent language like c
transient is the keywrd used infront of varibles which will
restirct the process of serialization
| Is This Answer Correct ? | 1 Yes | 1 No |
When does Exception occurs?
What is the set interface in java programming?
How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.
What happens to a static var that is defined within a method of a class?
What is the difference between conversation & casting?
Hi Every One I Have Small Doubt Please answer This???????????????????????????? I Want to use AbstractList class methods(java.util.AbstractList) My Program is import java.util.*; class DemoOne extends AbstractList { public static void main(String[] args) { AbstractList a=new DemoOne();//This One is Correct?? DemoOne a1=new DemoOne();//This One is Correct?? Both Are Not Working System.out.println("Hello World!"+a); System.out.println("Hello World!"+a1); } } Error IS: DemoOne.java:2: DemoOne is not abstract and does not override abstract method get(int) in java.util.AbstractList class DemoOne extends AbstractList AnyOne can Please Provide The Solution????????????????????????? Plzzzzzzz
Define array. Tell me about 2-D array.
What is java life cycle?
heavy components means what?
what is method reference in java 8?
Why do we use public static with the main function in Java?
13 Answers College School Exams Tests, Infosys,