File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Type of Methods & Variables" Watch "Type of Methods & Variables" New topic

Type of Methods & Variables

Somnath Mittroe

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.


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

I agree. Here's the link:
subject: Type of Methods & Variables
It's not a secret anymore!