Click here to Skip to main content
16,020,377 members
Home / Discussions / Java
   

Java

 
AnswerRe: ResultSet to Int Pin
pancakeleh16-Jan-11 21:23
pancakeleh16-Jan-11 21:23 
GeneralRe: ResultSet to Int Pin
David Skelly16-Jan-11 22:29
David Skelly16-Jan-11 22:29 
GeneralRe: ResultSet to Int Pin
Richard MacCutchan17-Jan-11 0:36
mveRichard MacCutchan17-Jan-11 0:36 
GeneralRe: ResultSet to Int Pin
jschell17-Jan-11 8:27
jschell17-Jan-11 8:27 
GeneralRe: ResultSet to Int Pin
pancakeleh17-Jan-11 14:30
pancakeleh17-Jan-11 14:30 
GeneralRe: ResultSet to Int Pin
Khalil Adam19-Jan-11 1:27
Khalil Adam19-Jan-11 1:27 
Questionwhat is the basic purpose of static class/methode Pin
khurram_shahzad15-Jan-11 3:21
khurram_shahzad15-Jan-11 3:21 
AnswerRe: what is the basic purpose of static class/methode Pin
Nagy Vilmos15-Jan-11 10:44
professionalNagy Vilmos15-Jan-11 10:44 
Static can be used in various ways.

Anything that needs to be shared across all instances of a class can either be made static - easy - or passed around in another object - hard.
Certain design patterns - I'm thinking the singleton here - rely on static methods to encapsulate class functionality and control behaviour.
Any method that does not (or must not) use instance data should be static to prevent it accessing the instance data.
There is no need to instantiate an object to call a static method - say a helper class providing oft called methods - have a look at the static methods on String.


Panic, Chaos, Destruction.
My work here is done.


or "Drink. Get drunk. Fall over." - P O'H

OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre

GeneralRe: what is the basic purpose of static class/methode Pin
khurram_shahzad17-Jan-11 3:49
khurram_shahzad17-Jan-11 3:49 
AnswerRe: what is the basic purpose of static class/methode Pin
Richard MacCutchan15-Jan-11 21:41
mveRichard MacCutchan15-Jan-11 21:41 
AnswerRe: what is the basic purpose of static class/methode Pin
_Erik_17-Jan-11 3:21
_Erik_17-Jan-11 3:21 
GeneralRe: what is the basic purpose of static class/methode Pin
khurram_shahzad17-Jan-11 3:49
khurram_shahzad17-Jan-11 3:49 
AnswerRe: what is the basic purpose of static class/methode Pin
Ramaiah Raj30-Jan-11 20:07
Ramaiah Raj30-Jan-11 20:07 
QuestionHow to compare two classes instances Pin
khurram_shahzad14-Jan-11 15:54
khurram_shahzad14-Jan-11 15:54 
AnswerRe: How to compare two classes instances Pin
Richard MacCutchan15-Jan-11 0:19
mveRichard MacCutchan15-Jan-11 0:19 
GeneralRe: How to compare two classes instances Pin
khurram_shahzad15-Jan-11 3:10
khurram_shahzad15-Jan-11 3:10 
GeneralRe: How to compare two classes instances Pin
Richard MacCutchan15-Jan-11 4:39
mveRichard MacCutchan15-Jan-11 4:39 
GeneralRe: How to compare two classes instances Pin
Cedric Moonen16-Jan-11 21:01
Cedric Moonen16-Jan-11 21:01 
GeneralRe: How to compare two classes instances Pin
Richard MacCutchan17-Jan-11 0:24
mveRichard MacCutchan17-Jan-11 0:24 
GeneralRe: How to compare two classes instances Pin
khurram_shahzad17-Jan-11 3:45
khurram_shahzad17-Jan-11 3:45 
AnswerRe: How to compare two classes instances Pin
Cedric Moonen16-Jan-11 20:59
Cedric Moonen16-Jan-11 20:59 
GeneralRe: How to compare two classes instances Pin
khurram_shahzad17-Jan-11 3:47
khurram_shahzad17-Jan-11 3:47 
Questionwhich simulator/editor is good for JAVA Pin
aesthetic.crazy13-Jan-11 11:11
aesthetic.crazy13-Jan-11 11:11 
AnswerRe: which simulator/editor is good for JAVA Pin
RaviRanjanKr13-Jan-11 21:16
professionalRaviRanjanKr13-Jan-11 21:16 
AnswerRe: which simulator/editor is good for JAVA Pin
Richard MacCutchan13-Jan-11 22:15
mveRichard MacCutchan13-Jan-11 22:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.