aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes native Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "native" Watch "native" New topic
Author

native

umang bhartia
Ranch Hand

Joined: Sep 29, 2000
Posts: 60
hi every 1
Well i m not able to understand the working of native, and why it is used, can any one explain me about this, and how it is declared?
thank u
Jonathan Jeban
Ranch Hand

Joined: Oct 08, 2000
Posts: 52
Hi Umang,
Native method is a method implemented in langs such as C, C++,
FORTRAN, Assembly langauages..
The need for Native methods...
1.In Java it is impossible to access libraries and applns in
other langs unless one is willing to use the underlying OS.
(So Native means - native to the platform one is operating)
2. java is slower than a compiled language.
Declaration:
It is declared without the body.Even there is no need for empty
braces.
example :
start() method in Thread class declared as follows..
public synchronized native void start();

Hope this helps...
Jeban

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: native
 
Similar Threads
eclipse
WA #1.....word association
Your native place and your working city
Populate Table Rows With Data from AJAX
most beautiful city