aspose file tools*
The moose likes Beginning Java and the fly likes Native methods/member variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Native methods/member variables" Watch "Native methods/member variables" New topic
Author

Native methods/member variables

Willie Toma
Ranch Hand

Joined: May 11, 2001
Posts: 78
Can member variables, or any variables, be considered native?
Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
I believe only methods can be native.
Originally posted by Willie Toma:
Can member variables, or any variables, be considered native?


------------------
What's this H2SO4 doing in my fridge?? ( thud )


By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Snylt Master
Ranch Hand

Joined: Jul 07, 2001
Posts: 55
I believe Dale is right.
According to Complete java 2 Certification Study Guide:
I Quote "The native modifier can refer only to methods....Native
indicates that the body of a method is to be found elsewhere."
Hope this helps!
// SnyltMaster


Preparing for the Java 2 Certification exam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Native methods/member variables
 
Similar Threads
variable shadowing
Q. on G.C
need help..
Question from Exam lab practice Exam 1 about polymorphism
Error deserializing Object