Choose the Correct answer 

1.  The ___________ gives the information about the current mode (Insert (Or) Type over). 

        Status bar 

 

 

2.  When a text is selected the _____ changes can be made. 

        All the above 

 

 

3.  Each time the button is clicked, the paragraph is indented another _________. 

        1/2 inch 

 

 

4.  Each time the button is clicked, the paragraph is indented another ________ 

        1/2 inch 

 

 

5.  ________ recognises some common mistakes and typographical mistakes and makes the replacement automatically. 

        Auto correct option 

 

 

6.  If the word is not in the dictionary the that word will underlined by _____ colour. 

        Red 

 

 

7.  The border is dragged to resize the column ________. 

        width 

 

 

8.  The area of the bottom of the page is called _________ 

        Footer 

 

 

9.  The option that gives an overall picture of the document is _______. 

        print preview 

 

 

10.  Manipulation of database can be done in ___________ 

        7 ways 

 

 

11.  ^(Caret) is _______ operator is spreadsheet. 

        arithmetic 

 

 

12.  The position of the cell pointer can be changed using _______. 

        Arrow key 

 

 

13.  _________ Option prints the worksheet with the grid lines. 

        Format ® Page ® Sheet table ® Grid 

 

 

14.  After clicking Insert chart, the cursor becomes 

        + sign 

 

 

15.  Lotus 1-2-3 was introduced by ______. 

        Lotus Development Corporation 

 

 

16.  What is displayed in the lower part of the window? 

        Default value 

 

 

17.  The two types of data processing are manual data processing and ______. 

        computerised data processing 

 

 

18.  On clicking table format, which of the following is displayed on the screen? 

        A dialog box to changed font size, colour & style 

 

 

19.  In general, human beings are liable to make computational and ______ errors. 

        parallax 

 

 

20.  New ® Spread sheet opens _____________ 

        New worksheet 

 

 

21.  The highlighted object in VB is usually _____________ 

        a form control 

 

 

22.  The tab that enables user to create a new project is _________ 

        New 

 

 

23.  By default, Project Explorer is docked in -----. 

        top-right side 

 

 

24.  Which contains the Visual Basic code that is added to an event for any object on the form ? 

        Form module 

 

 

25.  The memory locations are called _________ 

        Variables 

 

 

26.  How many bytes does the object data type occupy? 

        4 

 

 

27.  To change the height and width properties at run time, the code is placed in the ----- event. 

        Form_activate 

 

 

28.  The control checkbox has the default property _________ 

        Value 

 

 

29.  In Visual Basic, activex controls file have ________ extensions. 

        .vbx 

 

 

30.  The control which exists as seperate files with either .vbx or .ocx extension is -----. 

        Active X 

 

 

31.  Visual Basic enables _______ 

        Creation of menu 

 

 

32.  The menu item name, that the user wants to se on the menu bar is known as _________ 

        Caption 

 

 

33.  Which is the default event of an option button? 

        Up 

 

 

34.  Which of the following properties can be modified to change the appearance of the standard checkbox? 

        All the above 

 

 

35.  The only way to turn off then timer is to set its ________ property false. 

        Enable 

 

 

36.  Which control can provide any types of line related processing with an application? 

        Combobox 

 

 

37.  Which key is pressed in any message box that contains a cancel button/ 

        Esc 

 

 

38.  The value if 33 is the sum of -----. 

        vbOKCancel and vbQuestion 

 

 

39.  The ____________ control must be added to the tool box through the components dialogbox. 

        Animation 

 

 

40.  __________ sets the frame, where the animation will start. 

        Start 

 

 

41.  To run the animation, some code must be created to open the ----- file. 

        .AVI 

 

 

42.  _________ occurs when a mouse button is pressed. 

        Mouse down 

 

 

43.  Which event is triggered whenever the associated object gets control? 

        GotFocus 

 

 

44.  An event can be ignored simply by not adding any code to its ----- procedure. 

        event 

 

 

45.  _____________ method provide a way to draw a rectangle with a single statement. 

        Line 

 

 

46.  The printer collections is a object that contains all printers which are ___________ 

        Available in operating system 

 

 

47.  Ellipses and arcs drawn by __________ 

        Circle method 

 

 

48.  The FSO object model enable the user to gain information about -----. 

        folder 

 

 

49.  ____ Statement is used to Dimension a variable as type file system object. 

        DIM 

 

 

50.  ________ is used to gain alters to an existing drive, file or folder. 

        Get 

 

 

51.  The document which is nessary for making applications and applets is _______ 

        JDK 

 

 

52.  What are the features are not supported by Java? 

        pointers, null terminated strings, structure and unions. 

 

 

53.  Which of the following language is suitable for writting programs, work on any type of computer? 

        high level language. 

 

 

54.  The relational operaters return a value. 

        Boolean 

 

 

55.  Statements of the programs are executed sequentally is known as ______ 

        Flow of control statement 

 

 

56.  __________ operator is used to mean "NOT EQUAL TO". 

        != 

 

 

57.  Which statement is used to break out of the switch statement? 

        Break. 

 

 

58.  Array elements are numbered as from _______. 

        0 

 

 

59.  In indexOf(ch) method, if character is not found, then what it will be returned? 

        -1 

 

 

60.  indexOf(ch) method is used to ______ 

        To search a particular character and returns an integer 

 

 

61.  Argument _ list is a list of __________arguments that are used by the function as an input for processing. 

        One and more 

 

 

62.  In Java, the main function returns _________ value. 

        Void 

 

 

63.  In object oriented programming languages, functions are called as ______ 

        Methods 

 

 

64.  ________ extends the functionality of a web browser. 

        Applets 

 

 

65.  Which package in Java provides supports for events? 

        Java . awt . event 

 

 

66.  _________ language is preferred for software development. 

        C 

 

 

67.  Variables that define ______ of the class. 

        state 

 

 

68.  What technique is used to achieve the polymorphism in java? 

        Overloading 

 

 

69.  The main method should be declared as _______ 

        Static 

 

 

70.  Volatile variable means that ______ 

        Variable value can change un expectedly  

 

 

71.  New classes, which are derived from, an existing classes is known as _____. 

        Subclass 

 

 

72.  Instance of the class is also known as ________ 

        Object 

 

 

73.  _________ attributes is used to change the size of the applet displayed area. 

        Both (1) and (2) 

 

 

74.  The _____ method is called anytime the applet needs to redrawn. 

        repaint ( ) 

 

 

75.  _______ method notifies all the waiting threads. 

        notifyAll ( ) 

 

Answer any 20 of the following 

76.  How can you enter the text in the document?

 

 

    

 

Once a new document is opened, the text of the document can be typed in big blank area of the screen. To create a document the user can start typing straight away. As the characters are typed they appear on the screen and the flashing vertical bar called the insertion point, moves to the right. This insertion point always indicates where the new text will appear. When the text being typed reaches the end of the line, StarWriter will automatically wrap the text to the next line. The Enter key must not be pressed at the end of the each line. The Enter key should be pressed only at the end of a paragraph or when a blank line is to be inserted. When a passage is filled up, StarWriter automatically creates a new page.

 

 

 

 

 

 

77.  Explain what is Indenting the text.

 

    

 

 

 

Alignment changes are most appropriate for headings or other special paragraphs in the document. But to make a long document easy and inviting to read, some of the paragraph formatting features described in this section, including indents can be used. For instance, indent the first line of each paragraph. This visual clue helps the reader to see how the document is divided into paragraphs. The paragraphs also indented, such as quotations that are set apart from the main document text. As another option, one may want to use a special kind of indent, called a hanging indent, for numbered lists.

 

 

 

 

 

 

 

 

 

 

 

 

78.  What is the use of suggestion list in Spelling check dialog box?

 

     Suggestion list displays the alternative spelling for the misspelet word. 

 

 

 

79.  How will you add a required number of rows and columns in a table?

 

     The simplest way to add a row is to press tab in the last row of the table. StarWriter adds a new row. One can also add a row or column in the table by clicking the add row or add column icon. To insert more than one row or column in the table, the user can use Format->Column->Insert or Format->Row->Insert command. 

 

 

 

80.  How the ruler can be used to change the margin? 

     If the user is not having the exact value for the margins, then the Ruler option on the View menu can be used to change the margins. The ruler can be used to change the margin by clicking View->Ruler (or) the user may then place the mouse pointer on the margin that is to be changed- that is between the gray and white area of rulers. When the pointers is in the right spot, it changes into a line with arrows on both sides. 

 

 

 

81.  How can you use the formula in spreadsheet?

 

    

 

 

After entering data in the worksheet you can perform calculations on the data in the worksheet. This is done using formulae. In order to create formulae, you first need to know the syntax, that describes the format of specifying a formula. The syntax of formula begins with an equal sign followed by a combination of values, operators and cell references.

 

 

 

 

 

 

 

82.  What is database?

 

    

 

 

 

A database is a repository of collections of related data or facts. Data in a database is most commonly viewed in one or more two - dimensional tables, each consisting of columns and rows. The entire collection of related data in one table is referred to as a File or a Table. Each row in a table represents a Record, which is a set of data for each database entry. Each table column represents a field, which groups each piece or item of data among the records into specific categories or types of data.

 

 

 

 

 

 

 

 

83.  How is Visual Basic Programming diffent from programming in another high level language? 

    

Visual Basic has evolved from the original BASIC language and now contains several hundred statements, functions, and keywords, many of which related directly to the windows GUI. Beginners can create useful applications by learning just a few of the keywords, yet the power of the language allows professionals to accomplish anything that can be accomplished using any other windows programming language.

 

 

 

 

84.  How will you open an existing project in Visual basic? 

    

There are numerous ways to open an existing project.

 

*The last four projects that were opened are available directly from the File menu.

 

*To open an existing project not listed on the File menu, the user selects File ® Open Project.

 

*While starting, Visual Basic presents a dialog box with three tabs for New, Existing and Recent projects.

 

*From Windows Explorer, one can launch the project by double clicking the .vbp file associated with the project.

 

Thus an existing project can be opened in any one of the above ways.

 

 

 

 

85.  What are the rules for declaring a variable in VB?

 

 

    

The rules for declaring a variable are as follows:-

 

* The name must begin with a letter (a-z, A-Z).

 

* The name can contain only letters, numbers or the underscore character.

 

* It must not exceed 255 characters.

 

* It cannot be a Visual Basic reserved word. However, it can contain a reserved word (for example, OpenCustomer is valid, open in invalid).

 

 

 

 

86.  What is the use of command button control? 

    

Command button allows the user to simply cick them to perform actions. When the user chooses the button, it not only carries out the appropriate action, it also looks as if it is pushed and released. Whenever the user clicks a button, the click event procedure is invoked.

 

 

 

 

87.  What are standard group setting? 

    

The standard group setting are,

 

 

* File

 

 

* Edit

 

 

* View

 

 

* Format

 

 

* Tools

 

 

* Window

 

 

* Help

 

 

 

 

 

 

88.  What is the difference between the drop down list combo box and the drop down combo box? 

    

The only difference between the dropdown list combobox and dropdown combobox is that the user cannot add entries to the list or enter a value not on the list.

 

 

 

 

89.  List the icon constants with value and description. 

    

Following is the Icon constant's name, value and description:

 

Name                      Value        Description

 

VbCritical                - 16 - Display Critical Message

 

vbQuestion              - 32 - Display Warning Query icon

 

vbExclamation        - 48 - Display warning messages icon

 

vbInformation         -64 - Display Information Message Icon

 

 

 

 

 

 

90.  What are the file graphic formats?

 

 

    

Type  Extension

Bitmap  .BMP 

Cursor  .CUR 

Graphics Interchange Format  .GIF 

Icons  .ICO 

JPEG files  .JPG or .JPEG 

Metafiles  .WMF 

 

 

 

 

 

91.  How will you use collection of printers for printing in Vb?

 

    

The printers collection is an object that contains all the printers that are available on the operating system. The list of printers is the same as those available in the print setup dialog box or the windows control panel. Each printer in the collection has a unique index for identification. Starting with 0, each printer in the collection can be referenced by its number.

 

To select the printer from the collection, the following syntax is used:

 

Set Printer = Printer (n).

 

 

 

 

 

92.  What are the types of scope?

 

    

The scope of a variable refers to how long it can be used and which routines can see it. There are three different types of scope a variable can have: global, module, and local.

 

 

 

 

 

93.  Write an java program to display an your name and address of your school. 

     class DisplaySchool

{

public static void main(String args [ ])

{

System.out.println("My name is sakthi");

System.out.println("my school name is PMR Matriculation Higher Secondary School,V-Block,East Mugapair,Chennai-600050");

}

} 

 

 

 

94.  What are relational Operators? 

    

 

The relational Operators in Java are listed below :-

 

Relational Operator  Meaning 

==  Equal to 

!=  Not equal to 

>  Greater than 

<  Less than 

>=  Greater than or equal to 

<=  Less than or equal to 

 

 

 

 

 

 

95.  How do we initialze a value for a one-Dimensional array? 

     Syntax for declaring and initialzing an the 1-D array is Datatype variablename[ ]=new datatype[];with in the square bracket write the size.

eg.

int a[5]=new int[ ]; 

 

 

 

96.  How many ways are available to declare an String? 

     To delare an string

 

String var_name;---------->1

 

String var_name=string_literal;---->2 

 

 

 

97.  What are the different types of abstraction? 

     1.Procedural Abstraction

 

2.Data Abstraction

 

3.Information Hiding

 

4.Encapulation

 

5.Inheritence 

 

 

 

98.  What is class? 

    

 

 

 

 

It is an blue print or Template for an object. Classes are used to group objects into distinct categories based on common operations and more importantly to decide on the inherited properties. Thus classes are object types.

 

Or

 

 

 

Class which defines new data type and it is logical construction or template for an object. Using class we can create so many objects of that type.

 

 

 

 

 

 

 

 

 

99.  What are the parts of classes?

 

 

    

 

 

 

 

A class can consist data into a single entity.

 

 

 

* Variables, which define the state of the class

 

 

* Methods, which define the behavior of the class and

 

 

* Constructors, that declare and initialize instances of the class.

 

 

 

 

 

 

 

100.  What things you have to remember when using notification?

 

 

    

 

 

 

A few things to remember when using notification:

 

1. Wait ( ) can only be called within a synchronized method;

 

2. Always wait ( ) in a loop, never assume that being woken up means that the condition on which you are waiting is satisfied (don't use if);

 

3. Make sure each wait ( ) has a matching notifyAll ( );

 

4. Notification is object - based.

 

 

 

101.

What are the various functions of the icons in the table formatting tool bar?

     * - Table Fixed

* - Table Fixed, Proportional

* - Table, Variable

* - Merge Cells - This icon is used to combine two or
               more cell into a single cell.

* -
Split Cells - This icon is used to split a cell into two
                or more cells.

* - Optimise - Clicking on this icon displays a pop
                up menu with options like Space columns equally,
                Space rows equally, Optimum row height and
                Optimum column width.

* - Inserting Row - This icon is used to insert a row
               below the current row.

* - Inserting Column - This icon inserts a column to
               the right of the current column.

* - Delete Row - This icon delets the current row
               from the table.

* - Delete Column - This icon deletes the current column
                from the table.

* - Borders - This icon displays a floating toolbar with
               different border option for the table.

* - Line Style - This icon is used to choose the style
                of line to be used for the border.

* - Background Colour - Clicking on this icon displays
                a palette of colours that can be used as a background
                colour for the table.

 

102.

What are functions? How you can use them in your worksheet? Give an example.

         Functions are predefined formulae that are available in starcalc.
    These functions are available in starcalc in the pull down menu of function Autopilot window. The functions available are divided into different categories. The categories are listed in pull down menu.

    To select a function, the user has to go to Insert menu and selects the function option. The Function Autopilot dialog box appears. A list of all functions is displayed in the Function box when all is selected in the category box. If a category is selected the functions are related to the concerned category alone will be displayed in the function box.



    To select a function first

* select the category in the Category box.


* Scroll down the list to find the function that is to be selected. Click once on the function name to see a short description of that function name to see a short description of that function on the right side of the window. Double click on it to insert it into the worksheet.

    The function Autopilot shortcut icon on the formula bar can be used to select and insert functions.


    For example, to insert the SQRT function, place the cursor in the cell it is necessary to insert the function and click on the function AutoPilot icon. Select mathematical form categories. Select the SQRT function from the list of functions which appears by double clicking on it. The function AutoPilot displays a brief description of the function and prompts the user to enter the number on the cell address on which the function should work. Enter the number 64.


    When the user clicks on OK, the result is displayed in the cell in the worksheet.

 

103.

What are all the steps involved in designing a form in Starbase?

     

To design a form in Starbase the procedure followed is:

(a) To start with, the option Form in the Explorer window is right clicked and then New->Form->Autopilot is selected.

(b) Then the table or query is selected for which the form is to be designed and the next button is clicked. The field names of the selected table are displayed.

(c) The field names, the user wishes to include in the form is selected using the -> and -> buttons and then the Next button is clicked.

(d) Next Starbase displays the field Alignment window. Here the user can choose a style for displaying the fields in the form a style is selected and then the next button is clicked.

(e) A Page style is selected for the form. The page style decides the font type, size, color and background of the text in the form.

(f) Next, the name of the form is entered and the Finish button is clicked once. The form is created. The user can use the form to view, add, delete and edit the record in the table.

 

104.

Give an example for Select Case statement.

     

Key Down event would check for a series of keys that might have been pressed. Following is the Key Down process using the Select Case statement.

                 Select Case Key Down

                 Case vbKeyF1

                     'Process F1 code

                 Case vbKeyF2

                     'Process F2 code

                 Case vbKeyF3

                     'Process F3 code

                 Case vbKeyF4

                     'Process F4 code

                 Case vbKeyF5

                    'Process F5 code

                 Case vbKeyF6

                     'Process F6 code

                 Case vbKeyF7

                     'Process F7 code

                 Case Else

                     'Process default code

                 End If

 

105.

How will you use the input Box function?

     






     

Using the InputBox Function :-

                        The following code shows the syntax of an input box, It is very similar to the message box. However, there are a few unique differences.

StrAnswer = InputBox (strPrompt [ , strTitle] [ , strDefault] [ , intXpos] [ , intYpos])

            If either the strTitle or the strDefault (or both) is left out, the commas are still required as placeholders. the strPrompt is a text value that is to be displayed so that the user knows what is required.

            The strPrompt cannot be longer than 1,024 characters. The strTitle is used for the input box's title, and Visual Basic displays the application's name for the title if it is not specified. The strDefault is the default string that would appear in the text box. This allows the user to either accept that value or change it. the user would accept the default value by pressing Enter.

            intXpos and intYpos allow to position the InputBox dialog in a specific location on the screen, where intXpos is the coordinate or horizontal position, and intXpos is the Y coordinate or the vertical position on the screen.

            When the user enters a response in the input box and clicks the OK button, the variable indicated at strAnswer will hold the user's answer. If the user presses Esc or clicks the Cancel button, a null or empty value would be returned.An input box that was generated from the following InputBox function:

strUser = InputBox ("What is your salary?",
"Getting a salary", "Enter your salary here")

If strUserName <> " " Then
      MsgBox "Hellow" & strUserName

Else
      MsgBox "The Input function was Cancelled"
End If

The preceding example also shows how to check to see whether the Cancel button was clicked and respond accordingly.






 

106.

Explain various types of Graphic control in detail?

     




            The Picture Box Control : -

                       The picture Box control can be added to the form by double - clicking the picture box icon in the toolbox. Then the picture property of the control should be modified to represent the image needed to be displayed on the form. This is done either programmatically (using the LoadPicture statement) or by clicking the ellipsis (...) and browsing to find the image to use.




                       A picture box added to a form. As it can be seen from the example, an image can be added to the form and the size of the picture box can also be changed. However, the picture box simply holds the picture. Changing its size does not stretch the image. Visual Basic provides an Autosize property for the picture box control. Setting this value to True will resize the object to the size of the image. If this property value is False only that portion of the image that can be displayed inside the picture box control will be seen.



            The Image Control :-

                       An image control is a rectangular portion in which the picture files can be loaded.

                       The image control can be added to the form by double - clicking the icon in the toolbox. Then the picture property of the control can be modified to represent the image to be displayed on the form. This can be done either programmatically (by using the LoadPicture) or by clicking the ellipsis (...) and browsing to find the image to use.




            Line Control : -

                       The Line control and the shape control available in Visual Basic can be very effectively utilized to create very attractive graphical user interfaces.

                       A line control is a straight - line segment that is drawn at design time. The position, length, colour and style of the Line control can be positioned to customize the look of an application.




            Shape Control :-

                       A shape control is a Visual element that contains several predefined shapes. In order to view a specified shape, the control is added to the form by double clicking it. The default shape will be a rectangle. The shape property is selected from the properties window, which drops down a list of shapes, from which a user can select the desired one. All the predefined shapes available in the shape control.

            The FillColor, FillStyle properties of the Shape control can be changed so that the desired colour and style can be obtained.



            Animation Control:

                       One who is familiar with windows would have seen the use of animation to inform that some action is being done. For instance, the animation shown. This gives the message that the delete process is under progress. The animation control enables one to provide the same functionality within the application. It enables the user to display .AVI clips, miniature movies sequentially to create the animation. These animation run as background tasks, which allows the application to keep processing whatever is required.



 

107.

How will you link control to the ado data control?

     




           

Linking Controls to the Add Data Control :-

            At this point of time only an ADO Data Control is on the form. This control is to be connected to the Access sample database table - student. Now, three text boxes and three labels are added to the form so that it looks similar each of text boxes is selected and its DataSource property is set to Adodc1. Selecting the value from the dropdown list box does this easily. Adodc1 is the only choice because it is the only data source on the form. Forms can have multiple data sources, but too many can seriously degrade the performance of the application.

The first text box is selected and its DataField property is set Roll _ No. Then, a double - click is made on the field for the DataFormat propetry. The Format Type is set to Number, as shown.

The Data Field of the other two fields are set to Name and Marks. The DataFormat property for these controls are set as General and Number respectively. If the project is run, the form appears as shown. The arrow button on the ADO Data Control can be used to move around in the records of the table.




 

108.

Explain For statement with example?

     



           

The For Statement:-

                   

    As the names indicates, the for statement is used to repeat one or more statements for a specified number of times. The general format of the for statement is

            for (initialization, test, increment)
      {
            Statement 1;
            Statement 2;
            ....
            ....
      }

Where

           

Initialization - statement that assigns an initial value to the control variable. The control variable is a variable that is used to keep track of the number of times the loop has to be repeated. this statement is executed once at the beginning of the loop.

           

Test - a condition that compares the control variable with a value to find out if the loop has been repeated the required number of times. If the condition is true, the loop is repeated again. If the condition is false, control is passed to statement after the loop. The test is performed at the start of every iteration.

           

Increment _ a statement that increases (or decreases) the value of the control variable by a specified number every time the loop is executed. This statement in executed at the end of every iteration.

           

Given below is a flowchart to explain the for loop.

Program :

Class loop1
{
      // Program to display numbers from 1 to 10
      Public static void main (String args [])
      {
            int count;
            for (count = 1; count<= 10; count ++)
                  System . Out . Print1n (count);
      }
}

           

When this program is executed, first, the control variable of the loop, count is initialized to 1. Next, the condition count <= 10 is evaluated to see if the loop should be executed at least once. Since the condition is true, the number 1 is displayed on the screen. Next, the control variable, count is incremented by 1 and the condition is evaluated again. Since it is true, 2 is displayed on the screen. In this way the loop is repeated till the condition becomes false.



 

109.

Explain Recursion with an example?

     

Recursion:

 

A function calling itself is known as Recursion.For example let we consider these two programs.In first program the factorial of given number is calculated by using for loop without using sub routine.In second program the function fact(num),is calling itself several times until the value of num reaches to 1.
Class prog
{
// program to find the factorial of a number
public static void main (String args[])
{ int num = Integer . parseInt (args[0]);
long fact = 1;
if (num ! = 0)
for (int i = l; i <= num i++)

{
fact = fact * i;
}
System . out . println ("The factorial of " + num + " is " + fact):
}
}

When this program is executed with the command line argument 7, it will display,

The factorial of 7 is 5040.

This program can also be written in another way.

Program

Class prog
{
// program to find the factorial of a number
Public static void main (String args[])
{
int num = Integer . parseInt (args[0]);
System . out . println ("The factorial pf " + num +" is " + fact (num));
}

Static long fact (int num)
{
long answer;
if (num = = 0 | num = = 1)
return 1;
answer = fact (num - 1) * num;
return answer;
}

}

In this program a function fact is used to calculate the factorial. The function fact, calculates the factorial by calling itself. This is called as recursion and such a function is called recursive function.

 

110.

Give an example for Public and Private modifiers with constructors?

     


// Program to illustrate the use of Public and Private modifiers with constructors
Class Clsl
{
      int   i;
      int   j;

      Public clsl (int   i, int   j)
      {
            this . i = i;
            this . j = j;
      }

      Private clsl ( )
      {
            System . out . println ("Private constructor called from another class");
      }
}

Prog

{
      Public static void main (String args[])
      {
            // Invoking the public constructor
            clsl obj1 = new clsl (5, 7);
            System . out . println ("i = " + obj1 . i + " j = " + obj1 . J);

            // Invoking the private constructor
            clsl obj2 = new clsl ( );
      }
}

      This program will result in a compiler error No constructor matching clsl ( ) found in class clsl. This is because the constructor cls1 ( ) is declared Private and as a result cannot be accessed from the class prog. This program will display

i = 5     j = 7

if the statement invoking the constructor cls1 ( ) is removed.