16,022,660 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10491035 (Top 16 by date)
Member 10491035
28-Dec-13 18:14pm
View
After going through various generics articles I think that answers should be
1. False
2. False
3. True
4. True
Let me know if my understanding is correct
Member 10491035
28-Dec-13 15:26pm
View
I posted the code for the algorithm...IS it okay and optimized. Please let me know
Member 10491035
28-Dec-13 14:26pm
View
Thank you
Member 10491035
28-Dec-13 12:41pm
View
StringBuilder is used for strings that change constantly. - False
StringBuilder should be used only with big enough strings - True
String type is optimized to accommodate changes without much impact. --> False ( As we are creating new string everytime for every change i think its not optimized )
Let me know if my understanding is correct
Member 10491035
28-Dec-13 12:25pm
View
I posted the code for the algorithm above...Can anyone please check and let me know if it is correct and optimized or not?
Member 10491035
28-Dec-13 2:50am
View
Thank you for answering. Is my understanding on the other statements of constructor correct?
Member 10491035
28-Dec-13 2:18am
View
Thank you for answering first question. How about coupling of classes in inheritance? Are they tightly coupled or loosely coupled?
Member 10491035
28-Dec-13 1:52am
View
I think inheritance supports tight coupling. It is because the child classes are exposed to the majority of the parent class. Correct me if my understanding is wrong
Member 10491035
28-Dec-13 1:06am
View
I went through the article. That clarifies the first question of mine. if you try to do some other manipulation (like removing a part from the string, replacing a part in the string, etc.), then it's better not to use StringBuilder at those places. This is because we are anyway creating new strings. So that means for strings that change constantly it is better to use String instead of StringBuilder.
I couldnt find anything which clarifies my Questions 2 and 3
Member 10491035
28-Dec-13 0:26am
View
Is Postback is normally used on page _load event to detect if the page is getting generated due to postback requested by a control on the page or if the page is getting loaded for the first time. When page is requested again without any event(directly write URL in browser) then again IsPostBack is false. PostBack occurs when event occurs (button click, dropdown change).
when u reload the page then isPostBack becomes false.
Thanks a lot it worked.
Member 10491035
27-Dec-13 20:22pm
View
Thanks for the help. My question is clarified.
Member 10491035
27-Dec-13 19:07pm
View
Hi Nelek,
I even tried this and wrote an algorithm as follows
1. Take an array that has the list of all reserve words in c#
2. Take a user input for string to be checked for keywords from the user
3. split the user text using regular expression ( check for space or comma or ... )
4. now we have the individual tokens of the user provided input
5. Now group the tokens and have their count
5. Now we need to iterate through tokens and for each keyword found print the element along with count.
I am not sure whether this is the optimized way to do it. Please let me know if anything needs to be corrected in the logic
Member 10491035
27-Dec-13 18:57pm
View
If an exception is thrown while in the try block then the remainder of the try block will not be executed and the catch block will start executing. Once the catch block completes then the finally block gets executed and normal execution resumes with the code below the finally block.
So the text printed is
Before
DivideByZeroException
Finally
End
Is my above justification correct?
Member 10491035
27-Dec-13 18:37pm
View
Thank you so much. I understood that clearly now
Member 10491035
27-Dec-13 18:27pm
View
Does that mean whenever I am writing the catch exceptions I should write the specific expected exceptions first and the generic one (i.e Exception ex ) at the end? Now if the code is modified as above then the statements printed on console are before,dividebyzeroexception,finally and end. Is that correct?
Member 10491035
27-Dec-13 18:12pm
View
Hi nelek,
I already tried it myself. I couldn't figure out the structural flaw..but the text shown for execution I think it should be before,dividebyzeroexception,finally and end. Please let me know if my understanding is correct. I am new to c# programming. Though I guess an answer I am doubtful to post it in the public form.
Show More