ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Difference between prefix and postfix forms of the 
++operator?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Difference between prefix and postfix forms of the ++operator?
Answer
# 1
The prefix ++ operator first increments the value by one and
then returns the new value.

The postfix ++ operator first returns the value and then
increments it.
 
Is This Answer Correct ?    9 Yes 0 No
Ranganathkini
 
  Re: Difference between prefix and postfix forms of the ++operator?
Answer
# 2
prefix will increment first and assigns to the variable
postfix will assing the value to the variable and then 
increments
 
Is This Answer Correct ?    6 Yes 1 No
Ravikiran
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable? HCL4
What is ResourceBundle class?  1
I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.  1
Which is the best way to use for String concatenation in Java? HCL5
How OOPS concept is achieved in Java? JPMorgan-Chase4
why marker interfaces are there in java Digital-Group3
What is static variable and static method? TCS8
How to add two numbers with out using Arithmetic , union operators in java....? But we can use bitwise operators... but how...? CTS2
What is the difference between Resultset and Rowset. IBM5
What is the purpose of a statement block?  1
When you Click a Button, What event will be fired?  2
what is the replacement for GOTO in java? CTS2
What modifiers can be used with a local inner class?  2
How to prevent a field from serialization ?  2
what is difference between requestprocessor and request dispatcher? Tech-Mahindra1
Java violates few objected oriented concepts. Can you explain in what way? Ness-Technologies3
what is meta-Inf? Polaris2
What is Ideal Design of Class?  2
Difference between prefix and postfix forms of the ++operator?  2
What is non static block in java Ness-Technologies6
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com