GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 183 of 921    Print  
What is the difference between the prefix and postfix forms of the ++ operator
The prefix form performs the increment operation and returns the value of the incrementoperation. The postfix form returns the current value all of the expression and thenperforms the increment operation on that value.


  
Total Answers and Comments: 0 Last Update: N/A   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that havebeen shifted out. 
Latest Answer : While dealing with (+)ve numbers there is no difference between >>> and >> operators.Both operators shift zeros into the upper bits of a number.The difference arises when dealing with (-)ve numbers.Since (-)ve numbers,(-)ve numbers have ...

When a task invokes its yield() method, it returns to the ready state. When a task invokesits sleep() method, it returns to the waiting state. 
Latest Answer : yield method is mainly used to release the lock of resource and pull up in to steady state from wait pool. Sleep() will pull the thread to sleep for the given time. It will throws exception while trying to intrupt in b/w the sleep state ...

The sizeof operator is not a keyword. 
Latest Answer : No,sizeof is not a keyword. ...

Under preemptive scheduling, the highest priority task executes until it enters the waitingor dead states or a higher priority task comes into existence. Under time slicing, a taskexecutes for a predefined 
Latest Answer : 1.    Pre-emptive Scheduling.Ways for a thread to leave running state -·         It can cease to be ready to execute ( by calling a blocking i/o method)·         ...

The CheckboxMenuItem class extends the MenuItem class to support a menu item thatmay be checked or unchecked. 

If an expression involving the Boolean & operator is evaluated, both operands areevaluated. Then the & operator is applied to the operand. When an expression involvingthe && operator is evaluated, the 
Latest Answer : & -> for bitwise operation&&-> for logical comparison ...

The = operator is right associative. 
Latest Answer : Prefix Unary operatorsObject creation and castTernaryAssignment ...

A break statement results in the termination of the statement to which it applies (switch,for, do, or while). A continue statement is used to end the current loop iteration andreturn control to the loop 
Latest Answer : The break keyword halts the execution of the current loop and forces control out of the loop. The continue is similar to break, except that instead of halting the execution of the loop, it starts the next iteration. ...

A non-static inner class may have object instances that are associated with instances ofthe class's outer class. A static inner class does not have any object instances. 
Latest Answer : The static inner classes  can be accessed with out creating it's objects or we can  access  static inner classes with direct class name but in the case of  non-static inner classes access we have to create the object of that class. ...

String objects are constants. StringBuffer objects are not. 
Latest Answer : see the following line of codeclass abc{ public static void main(String args[]) {  String ab=new String("test");ab.replaceFirst("e","b");System.out.println(ab); }}guess what the result be No it will not replace e with b .Thats ...


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

C++ Dereference Operator

C Dereference Operator In this C tutorial you will learn how to access the value of variables pointed by the pointer variables using pointer concept discussed in detail mosgoogle center It is possible to access the value of variables pointed by the pointer variables using pointer This is performed
 

C++ Operator Overloading Part II

C Operator Overloading Part II Operator overloading is a very important aspect of object oriented programming Binary operators can be overloaded in a similar manner as unary operators In this C tutorial you will learn about Binary Operating Overloading explained along with syntax and example mosgoog
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

sizeof Operator

What is sizeof operator? sizeof will return the number of bytes reserved for a variable or data type. The sizeof operator is a compile-time operator that returns an integer value. In other words since sizeof is a compile time operator, when used in a expression, it does not get compiled into executa
 

Modulus Operator

What is the functionality and restrictions of Modulus Operator? When a division is performed, the remainder of the operation is given by modulus operator. The modulus operator is denoted in c by symbol %. For instance we have two integer values x and y, the operation x % y called as x modulus y give
 

Operator, Operand and Expression in C

Operator, Operand, and Expression in are symbols which take one or more operands or expressions and perform arithmetic or logical computations. Types of operators available in C are as follows: Arithmetic Assignment Logical/relational Bitwise These have operators under each
 

Prefix and Postfix Operator

How does the prefix and postfix operator on expression? The operators present in prefix and postfix are prefix increment operator denoted by ++ prefix decrement operator denoted by -- postfix increment operator postfix decrement operator The difference between the two is that i
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape