int a=1,b=10;
System.out.println(a+b--);
Answers were Sorted based on User's Feedback
Answer / nagesh
answer is 110 because a+b print a+ and then +b so ans is 110 if u are print 11 the use (a+b)+ so the addition is performed
| Is This Answer Correct ? | 2 Yes | 5 No |
Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?
what is life cycle of applet?
How will you create the class for the following scenario? Employees under one employee?
When abstract methods are used?
How would overload a function based on return type?
difference between java ,c#&java,c++
What is proper subset?
What does it mean to flush a file?
What is passing by reference in java?
Why are functions called methods in java?
What is a Java switch statement, and how can it be used?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
2 Answers iGate, Seed Infotech,