Sinisterly
Difference static and non static, public and private - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Java, JVM, & JRE (https://sinister.ly/Forum-Java-JVM-JRE)
+--- Thread: Difference static and non static, public and private (/Thread-Difference-static-and-non-static-public-and-private)

Pages: 1 2 3 4


Difference static and non static, public and private - blackeagle - 10-23-2013

i just need some1 to explain me the difference between public and private and the difference between static and non static methods !!

thanks in advance for you help Smile


RE: help pls - Deque - 10-23-2013

static vs non-static: http://www.hackcommunity.com/Thread-Tutorial-Java-static-and-non-static

A public method or variable can be accessed by instances of other classes.
Private on the other hand can only be accessed within the own class.

I edited your title. Make it more descriptive. Everyone who posts a question needs help.


RE: help pls - Deque - 10-23-2013

static vs non-static: http://www.hackcommunity.com/Thread-Tutorial-Java-static-and-non-static

A public method or variable can be accessed by instances of other classes.
Private on the other hand can only be accessed within the own class.

I edited your title. Make it more descriptive. Everyone who posts a question needs help.


RE: help pls - Deque - 10-23-2013

static vs non-static: http://www.hackcommunity.com/Thread-Tutorial-Java-static-and-non-static

A public method or variable can be accessed by instances of other classes.
Private on the other hand can only be accessed within the own class.

I edited your title. Make it more descriptive. Everyone who posts a question needs help.


RE: Difference static and non static, public and private - Psycho_Coder - 10-23-2013

Hello I think you would get better answers if you google for these questions. Even @Deque had posted a tutorial on how to ask questions http://www.hackcommunity.com/Thread-Tutorial-How-To-Ask-Questions read that search google you will get hundereds of detailed answers. I don't know what books you are reading but I would recommend you to follow this http://docs.oracle.com/javase/tutorial/reallybigindex.html

Deue has already explained so I am not giving you any explanations. Still I would ask you to read about Static imports and Static blocks as they are important in many perspective. Even after googling you have doubts then you ask us freely and if its programming then I am allowing you to mention me as well if needed (I don't know about others but from my side I am allowing you).

Please don't mind instead try to understand my point.


RE: Difference static and non static, public and private - Psycho_Coder - 10-23-2013

Hello I think you would get better answers if you google for these questions. Even @Deque had posted a tutorial on how to ask questions http://www.hackcommunity.com/Thread-Tutorial-How-To-Ask-Questions read that search google you will get hundereds of detailed answers. I don't know what books you are reading but I would recommend you to follow this http://docs.oracle.com/javase/tutorial/reallybigindex.html

Deue has already explained so I am not giving you any explanations. Still I would ask you to read about Static imports and Static blocks as they are important in many perspective. Even after googling you have doubts then you ask us freely and if its programming then I am allowing you to mention me as well if needed (I don't know about others but from my side I am allowing you).

Please don't mind instead try to understand my point.


RE: Difference static and non static, public and private - Psycho_Coder - 10-23-2013

Hello I think you would get better answers if you google for these questions. Even @Deque had posted a tutorial on how to ask questions http://www.hackcommunity.com/Thread-Tutorial-How-To-Ask-Questions read that search google you will get hundereds of detailed answers. I don't know what books you are reading but I would recommend you to follow this http://docs.oracle.com/javase/tutorial/reallybigindex.html

Deue has already explained so I am not giving you any explanations. Still I would ask you to read about Static imports and Static blocks as they are important in many perspective. Even after googling you have doubts then you ask us freely and if its programming then I am allowing you to mention me as well if needed (I don't know about others but from my side I am allowing you).

Please don't mind instead try to understand my point.


RE: Difference static and non static, public and private - blackeagle - 10-23-2013

@Deque thank you very much i'm gonna read ur tut soon Smile
@Psycho_Coder well bro tbh i don't study in any book i study it at uni but i didnt understand alot the way the teacher explained i wasn't paying attention and i usually use google but i preffered to ask you guys since i know that deque and you and some members here have great knowledge in java and usually i wont find some1 explaining it as good as you guys !!
anw i'm gonna check deque's tut and see !!
thx for letting me mention you if i need help i really appreciate it Smile


RE: Difference static and non static, public and private - blackeagle - 10-23-2013

@Deque thank you very much i'm gonna read ur tut soon Smile
@Psycho_Coder well bro tbh i don't study in any book i study it at uni but i didnt understand alot the way the teacher explained i wasn't paying attention and i usually use google but i preffered to ask you guys since i know that deque and you and some members here have great knowledge in java and usually i wont find some1 explaining it as good as you guys !!
anw i'm gonna check deque's tut and see !!
thx for letting me mention you if i need help i really appreciate it Smile


RE: Difference static and non static, public and private - blackeagle - 10-23-2013

@Deque thank you very much i'm gonna read ur tut soon Smile
@Psycho_Coder well bro tbh i don't study in any book i study it at uni but i didnt understand alot the way the teacher explained i wasn't paying attention and i usually use google but i preffered to ask you guys since i know that deque and you and some members here have great knowledge in java and usually i wont find some1 explaining it as good as you guys !!
anw i'm gonna check deque's tut and see !!
thx for letting me mention you if i need help i really appreciate it Smile