Some understanding questions...
- From: "Christian-Josef Schrattenthaler" <NoSpam@xxxxxxxxx>
- Date: Thu, 16 Jun 2005 11:01:22 +0200
Hi!
I am still a beginner with Java/VJ#.NET/ASP.NET, and now I have some understanding questions:
1. private, public and protected:
1.1. If I want to use my variables only inside of my class-file they must be private?
1.2. Is this correct: If I want to use variables or methods from outside the class-file thy must be public?
1.3. What means protected?
2. Sometimes I heard "If the page request is not a postback". What does this mean?
3. What means static?
3.1. I know that I could use staic variables only from staitc mehtods. But for what is "static"?
4. Exception handling with try/catch:
4.1. If I want to catch all Exceptions, I do this with "catch(Exception ex) {...}"?
4.2. Else I could specify the exact Exception "catch(OleDbException) {...}"?
Thanks for any help!!!
Greetings,
christian.
.
- Follow-Ups:
- Re: Some understanding questions...
- From: Christian-Josef Schrattenthaler
- Re: Some understanding questions...
- Prev by Date: Re: Need help with DataGrid and Pager.
- Next by Date: Re: Some understanding questions...
- Previous by thread: lifecycle for an applet
- Next by thread: Re: Some understanding questions...
- Index(es):
Relevant Pages
|