This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Type of Methods & Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Type of Methods & Variables" Watch "Type of Methods & Variables" New topic
Author

Type of Methods & Variables

Somnath Mittroe
Greenhorn

Joined: Jun 01, 2004
Posts: 1
Hi All,

I am new to Java programming, and is picking the concept (pretty slowly). Can anybody enumerate the various type of methods, and various type of variable, with implementation examples.

Thanks in advance.

Bye,

Somnath
shreehari Gopalakrishnan
Ranch Hand

Joined: Jun 01, 2004
Posts: 30
First of all U have to select and concentrate to a good book
and u have to Study it from first page to last

study an another book only after completing one book

More over spoon feeding will not helps to create a Master !


Anyways ....

Java has three kinds of variables namely,
1,The instance variable
2,The local Variable
3,The class variable

Local Variable
--------------

The variables put inside a function such as counters,temp variables, which is used to store the information needed by a single method

Instance variable
------------------

Tha variable used to define attributes or state of a particular object. it is used to store the information needed by multiple methods in objects

Class variable
----------------

The class variables are global to a class and used for communicating between two objects



Types of methods ???

We can say

Static methods
Native methods
abstract methods

Read Complete Java 2 Rererence it is quite nice for beginners


 
wood burning stoves
 
subject: Type of Methods & Variables
 
Similar Threads
passing parameters in jsp
matching a string in a line
Dynamic Casting to subclass
how to execute shell script from java class
is there an isDigit( ) method ?