C#.net Interview Question
A=10
B=5
C=A+B
Print C
The above will be given in a multiline textbox. You need to
parse the above input, store values for A,B&c. And you have
to display the value of C.
Answer Posted / murthyknm
public class Sum
{
public static void main(String aaa[])
{
int A=10,B=5,C=0;
C=A+B;
System.out.println(" "+C);
}
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What are the important components of cohesion?
Why polymorphism is used in oops?
Can private class be inherited?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is abstraction and encapsulation?
Which method cannot be overridden?
Why is object oriented programming so hard?
Is react oop?
can inline function declare in private part of class?
What are the benefits of polymorphism?
Get me an image implementation program.
How do you use inheritance in unity?
How do you define social class?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is an interface in oop?