int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b;
System.out.println("The value is"+a+b+c;
Answer Posted / kiranksj
a is already defined in main so it throws an error
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you read an integer value from the keyword when the application is runtime in java? example?
What are heterogeneous objects?
What is the difference between int and integer in java?
Explain the private field modifier?
What does java edition mean?
What is boolean used for?
What is the statements?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What is string manipulation?
How many bits is a string in java?
What is the difference between static (class) method and instance method?
What is singletonlist in java?
What is the use of flag?
How to create a base64 decoder in java8?
When does a class need a virtual destructor?