Syvum Home Page

Home > Discussions > For all activities

Discussion topic: Contributed Answer/Explanation to Q. 12

Viewing messages

To go to the homepage of this topic, click here.
Page 1 of 4  >  >>
From: suman65Reply 1 of 73Reply
Subject: Contributed Answer/Explanation to Q. 12
   25

Posted at: Fri Nov 27 15:10:26 2009 (GMT)

From: saajan123Reply 2 of 73Reply
Subject: Contributed Answer/Explanation to Q. 26
   please give me the answer

Posted at: Mon Dec 14 02:04:30 2009 (GMT)

From: saajan123Reply 3 of 73Reply
Subject: Contributed Answer/Explanation to Q. 1
   give me the answer

Posted at: Mon Dec 14 02:08:25 2009 (GMT)

From: haifaReply 4 of 73Reply         View replies (1)
Subject: Contributed Answer/Explanation to Q. 1
   1. Encapsulation

Posted at: Tue Dec 15 12:19:06 2009 (GMT)

From: haifaReply 5 of 73Reply
Subject: Contributed Answer/Explanation to Q. 1
   1. Encapsulation	 2. Inheritance

Posted at: Tue Dec 15 12:19:43 2009 (GMT)

From: haifaReply 6 of 73Reply
Subject: Contributed Answer/Explanation to Q. 5
   3

Posted at: Tue Dec 15 12:20:52 2009 (GMT)

From: haifaReply 7 of 73Reply
Subject: Contributed Answer/Explanation to Q. 12
   30

Posted at: Tue Dec 15 12:22:38 2009 (GMT)

From: haifaReply 8 of 73Reply
Subject: Contributed Answer/Explanation to Q. 20
   helloworld

Posted at: Tue Dec 15 12:23:36 2009 (GMT)

From: haifaReply 9 of 73Reply
Subject: Contributed Answer/Explanation to Q. 21
   5

Posted at: Tue Dec 15 12:23:55 2009 (GMT)

From: haifaReply 10 of 73Reply
Subject: Contributed Answer/Explanation to Q. 22
   l

Posted at: Tue Dec 15 12:24:17 2009 (GMT)

From: haifaReply 11 of 73Reply
Subject: Contributed Answer/Explanation to Q. 23
   false

Posted at: Tue Dec 15 12:24:37 2009 (GMT)

From: joydebReply 12 of 73Reply
Subject: Contributed Answer/Explanation to Q. 4
   rer
   er

Posted at: Thu Dec 24 13:58:15 2009 (GMT)

From: sanjanapaiReply 13 of 73Reply         View replies (1)
Subject: Contributed Answer/Explanation to Q. 2
   // and /* */
   <p>
   // for single line comments & /* */ for multiple lines comments.
   </p>
   <p>
   eg1-
   </p>
   <p>
   class Example
   </p>
   <p>
   {
   </p>
   <p>
           public void main(int n) //enter a desired number
   </p>
   <p>
           {
   </p>
   <p>
                   System.out.println(n);
   </p>
   <p>
           }
   </p>
   <p>
   }
   </p>
   <p>
   eg2-
   </p>
   <p>
   class Example
   </p>
   <p>
   {
   </p>
   <p>
           public void main(int n)
   </p>
   <p>
           {
   </p>
   <p>
                   /* The number input above 
   </p>
   <p>
                            is printed by the statement
   
   </p>
   <p>
                            given below */
   </p>
   <p>
                  System.out.println(n);
   </p>
   <p>
           }
   </p>
   <p>
   }
   </p>

Posted at: Sun Jan 24 06:34:50 2010 (GMT)

From: sanjanapaiReply 14 of 73Reply
Subject: Contributed Answer/Explanation to Q. 2
   // and /* */
   <p>
   // for single line comments & /* */ for multiple lines comments
   </p>

Posted at: Sun Jan 24 06:36:10 2010 (GMT)

From: sanjanapaiReply 15 of 73Reply
Subject: Contributed Answer/Explanation to Q. 3
   10th
   in an array the position of array element begins from 0. Thus, num[9] of the
   array 'num' refers to the 10th element

Posted at: Sun Jan 24 06:37:24 2010 (GMT)

From: sanjanapaiReply 16 of 73Reply
Subject: Contributed Answer/Explanation to Q. 4
   An operator is a symbol which makes the compiler perform a specific
   operation on the operands, an expression is a combination of operands and
   operators that perform a specific operation.
   
   some operands are +, % , -, +=, ++, --
   
   
   example of an expression: int result = x%y;

Posted at: Sun Jan 24 06:43:10 2010 (GMT)

From: sanjanapaiReply 17 of 73Reply
Subject: Contributed Answer/Explanation to Q. 5
   3
   
   m - = n is the shortcut for m = m - n
   
   
   Thus m = 5 - 2 = 3

Posted at: Sun Jan 24 06:44:19 2010 (GMT)

From: sanjanapaiReply 18 of 73Reply
Subject: Contributed Answer/Explanation to Q. 6
   7
   
   n= m+m/n
   
   
    =5+5/2
   
   
    =5+2        //assuming that m and n have data type int
   
   
    =7

Posted at: Sun Jan 24 06:46:26 2010 (GMT)

From: sanjanapaiReply 19 of 73Reply
Subject: Contributed Answer/Explanation to Q. 9
   Ans.
   
   Constructor- 1. same name as class name
   
   
                        2. no return type
   
   
                       3. invoked when object is created
   
   
                       4. access specifier must always
   public
   
   
   Function - 1. cannot have name same as class name
   
   
                   2. may have return type or void
   
   
                   3. invoked when object calls it using dot
   operator
   
   
                   4. access specifier not necessary to be
   public

Posted at: Sun Jan 24 06:51:59 2010 (GMT)

From: dj_glitzzzReply 20 of 73Reply
Subject: Contributed Answer/Explanation to Q. 13
   25

Posted at: Tue Jan 26 14:08:40 2010 (GMT)

Page 1 of 4  >  >>

To post to this forum, you must be signed in as a Syvum member. Please sign in / register as a member.

Contact Info © 1999-2017 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright