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 | 4 No |
Post New Answer View All Answers
What do you mean by overloading?
Whats is abstraction in oops?
What is the renewal class?
What is overloading in oop?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What are classes oop?
Why is oop better than procedural?
What is polymorphism used for?
What is difference between pop and oop?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Why do we use oops?
What is purpose of inheritance?
Why is static class not inherited?
write string class as your own class in java without using any built-in function
What is the example of polymorphism?