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

Java

 
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 
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 
Static methods are frequently used in several design patterns (Singleton, DataFactory...) but, to give you something very simple and easy to understand, think about Math class. How do yo use it?

a = Math.abs(n);
a = Math.floor(n);
a = Math.sqrt(n);
...


So, as you can see, we don't have to create an instance of Math class, becouse we just use its static methods. In these cases, we say the Math class only offers services, and that is why all of its methods are static.
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 
AnswerRe: which simulator/editor is good for JAVA Pin
TorstenH.14-Jan-11 0:03
TorstenH.14-Jan-11 0:03 
GeneralRe: which simulator/editor is good for JAVA Pin
Richard MacCutchan14-Jan-11 0:28
mveRichard MacCutchan14-Jan-11 0:28 
AnswerRe: which simulator/editor is good for JAVA Pin
aesthetic.crazy14-Jan-11 12:59
aesthetic.crazy14-Jan-11 12:59 

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.