HiveBrain v1.2.0
Get Started
← Back to all entries
patternjavaCritical

What is the native keyword in Java for?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
nativejavatheforwhatkeyword

Problem

While playing this puzzle (It's a Java keyword trivia game), I came across the native keyword.

What is the native keyword in Java used for?

Solution

The native keyword is applied to a method to indicate that the method is implemented in native code using JNI (Java Native Interface).

Context

Stack Overflow Q#6101311, score: 366

Revisions (0)

No revisions yet.