Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8472719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:09:13+00:00 2026-06-10T17:09:13+00:00

I was on the IBM page looking for some filenet example code for .NET

  • 0

I was on the IBM page looking for some filenet example code for .NET and I found this:

namespace CESample
{
    // Represents the connection with the Content Engine.
    public class CEConnection
    {
        private IDomain domain;
        private IObjectStoreSet ost;
        private ArrayList osNames;
        private String domainName;
        private bool isCredentialsEstablished;

        // Constructor
        public CEConnection()
        {
            domain = null;
            ost = null;
            osNames = new ArrayList();
            domainName = null;
            isCredentialsEstablished = false;
        }

        //... other methods

Its this alright, to set always every variable to null while creating an object? And How about the bool and new ArrayList()? Is that how we should do that? Setting boolean always to false?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:09:14+00:00Added an answer on June 10, 2026 at 5:09 pm

    Everything except the array list is unneeded.

    Fields are automatically initialized with their respective default value before the code inside the constructor is executed.

    This code is equivalent:

    public class CEConnection 
    { 
        private IDomain domain; 
        private IObjectStoreSet ost; 
        private ArrayList osNames; 
        private String domainName; 
        private bool isCredentialsEstablished; 
    
        // Constructor 
        public CEConnection() 
        { 
            osNames = new ArrayList(); 
        } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am studying 'Web Service' this week and found good tutorial and example code.
I found http://www.ibm.com/developerworks/xml/library/x-xml2jsonphp/ , but I don't know how to use this code to
Look at this page: http://www14.software.ibm.com/webapp/download/search.jsp?go=y&rs=ifxjdbc I see that the 3.50.JC9 is newer than 3.70JC3DE,
I have a page in my application that refreshes some content (a list of
Please see this IBM site - http://www.ibm.com/us/en/ If you see the site banners, there
I am following IBM's example from their website: (listing #5) http://www.ibm.com/developerworks/library/l-bash-parameters/index.html #!/bin/bash echo OPTIND
The IBM RTC RESTful api gives an example of a shell script for authenticating
I have an ASP.NET page running in SSL and the checking happens in the
I'm having a great deal of trouble with this searching page I'm building. I
Using WebSphera 7.0.0.19. To logout user from application page after some idle time use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.