+2 votes
in JAVA by
Is it possible to define a method in Java class but provide it’s implementation in the code of another language like C in Java?

1 Answer

0 votes
by

Yes, we can do this by use of native methods. In case of native method based development, we define public static methods in our Java class without its implementation and then implementation is done in another language like C separately.

Related questions

0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
0 votes
asked Dec 1, 2021 in Cloud Computing by DavidAnderson
...