What r the good examples of transient kinda variable?
Can anyone plz tell me few good examples of transient variables?
Anything that can be calculated from other members of the object, e.g.
class Grades {
double exam1;
double exam2;
double exam3;
transient double average;
public Grades(double exam1, double exam2, double exam3) {
this.exam1= exam1;
this.exam2= exam2;
this.exam3= exam3;
this.average = (exam1+exam2+exam3)/3;
}
Similar Messages
-
What are the good ways to send a big file( 20MB-100MB) file to my friend?
what are the good ways to send a big file( 20MB-100MB) file to my friend?
Thanks in advanceif this is with the internet, iChat is probly your best bet,
but if you just want a transfer,
plug a firewire into both of your computers, shutdown one of them, hold "T" and press the power button, the restarted computer should pop up as an external drive on the second computer. -
What is the good way to charge the battery
I don't know if this topic been answered before.
I want to know what is the good way to charge the battery on Macbook pro? Should I start charging battery when it's 50% or 20% or 10% left? and Is it good to leave the charge plug in after it fully charged?
thanks guysEverything you need to know about your battery is explained here:
http://discussions.apple.com/thread.jspa?threadID=1764220 -
What is the good thing about Product(Red) accept for helping AIDS
What is the good thing about Product(Red) accept for helping AIDS?
http://www.joinred.com
http://www.apple.com/ca/product-red/ -
What is the best way to create shared variable for multiple Real time (PXI) to GUI PC? I have 16 Nos of PXI system in network and 1 nos of GUI PC. I want to send command to all the PXI system with using single variable from GUI PC(Like Start Data acquisition, Stop data Acquisition) and I also want data from each PXI system to GUI PC display purpose. Can anybody suggest me best performance system configuration. Where to create variable?(Host PC or at individual PXI system).
Dear Ravens,
I want to control real-time application from host(Command from GUI PC to PXI).Host PC should have access to all 16 sets PXI's variable. During communication failure with PXI, Host will stop data display for particular station.
Ravens Fan wrote:
Either. For the best performance, you need to determine what that means. Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables? If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
You want to located the shared variable library on whatever machine is more critical. That is probably each PXI machine, but only you know your application.
Ravens Fan wrote:
Either. For the best performance, you need to determine what that means. Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables? If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
You want to located the shared variable library on whatever machine is more critical. That is probably each PXI machine, but only you know your application. -
What is the best method to store session variables
As the title says, what is the best method to store session
variables in a Production environment?
I have been reading the posts on sessions and have been
getting different ideas on where to store session variables, in a
db, registery, cookies etc etc
Can someone clarify possible best practice on this matter?
MatrixFrom my experience, db is the best to store client variable
data. Registry will cause you trouble in future (when data gets
overloaded) and cookies will not serve the purpose for a few % of
your users. -
What is the proper way to javadoc a variable length argument list
What is the proper way to javadoc a variable length argument list?
Lets say I have the following function:
public void foo(Integer... intArray){
}I am just not sure how I would doc that, well, is there anything special I should note?
Thank you for your time,
BrandonSame as any other argument. Name it and say what it's for.
-
What is the good voice xml api for java
dear buddies,
what is the best voice xml api for java? has somebody comeacross and work involving this, i would like to hear more about this
thanks
KuhaMaybe the VXML forum is a better place: http://www.voicexml.org/
Good luck. -
What is the use of private static method/variable?
Hi All,
I have read lots of books and tried lots of things but still not very clear on the
topic above.
When exactly do we HAVE to use private static methods?
private implies its only for class, cannot be accessed outside.
But then static means, it can be accessed giving classname.method.
They seem to be contradicting each other.
Any examples explaining the exact behaviour will be well appreciated.
Thanks,
Chandra MohanStatic doesn't really "mean" that the method/field is intended for use outside the class - that is exactly what the access modifier is for.
Static implies that it is for use in relation to the class itself, as opposed to an instance of the class.
One good example of a private static method would be a utility method that is (only) invoked by other (possibly public) static methods; it is not required outside the class (indeed, it might be dangerous to expose the method) but it must be called from another static method so it, in turn, must be static.
Hope this helps. -
What is the correct syntax for using a variable in an ad hoc query?
Hi all
I am an occasional DB user and at the moment need to update about 1000+ records so that a certain column gets a unique value.
So I thought that I would use a variable for this.
I then built this kind of SQL statement for just a small subset of the records:
variable recNumber number;
exec :recNumber := 1;
UPDATE TABLE_TO_BE_UPD
SET COL_TO_BE_UPD = COL_TO_BE_UPD + recNumber
WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
I get the invalid SQL statement error when attempting to execute above (besides the prompt that asks for a value which I would like to omit).
Anyway I also tried this one:
CREATE SEQUENCE seqCounter;
UPDATE TABLE_TO_BE_UPD
SET COL_TO_BE_UPD = COL_TO_BE_UPD + seqCounter.NEXTVAL
WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
From this one I got the error ORA-01722: invalid number...I am guessing this comes because seqCounter is of type number and the COL_TO_BE_UPD is of type character...(?)
So what I would like to ask is what is the correct way to define and use a counter type of variable to append a number at the end of a character string?
Also another question that I would like to ask is that are variables that are used in ad hoc queries also called 'bind variables'?
Thanks muchlyIf you want to append a unique number to a column then this would do it:
UPDATE TABLE_TO_BE_UPD
SET COL_TO_BE_UPD = COL_TO_BE_UPD ||to_char(rownum)
WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B'); -
What are the best practices to use GLOBAL Variables
Hi,
Please guide how Global Variables can be declared and how they can be initialized.
Further please guide what are the impacts of Global Variables(if any) on the memory of CLIENT or SERVER, if they are not initialized or freed up after usage.
Thanks.
Regards.spilgrim wrote:
My preference is not to use them and to use parameters or package variables. There is not real control on globals so you can end up with an applicatios that has lots of them that are only used once but persist for the user session.I second that. I don't know how often I searched for bugs caused by typos in the names of global variables. Plus the fact that they are only of datatype VARCHAR2. If you are using share_library_data you could also use Package globals in a forms library to share data between called and calling forms. Or you could use a database package...
cheers -
I have created a project that consists of several VIs. Only the main VI has a front panel and the others perform functions. The function VIs are dependent on controls on the main VI's front panel. I have several ways of passing the value of the controls. One is to use a global variable and just place it on the dependent VIs. Another option is to strictly connect the terminal from the control to a VI connector block and pass the value directly. My last option is to create a reference of the control and reference it inside the dependent VIs, but this would also require connections to be made to the VI block.
What are the advantages/disadvantages of these options?
-Stephen5thGen wrote:
I have created a project that consists of several VIs. Only the main VI has a front panel and the others perform functions. The function VIs are dependent on controls on the main VI's front panel. I have several ways of passing the value of the controls.
1) One is to use a global variable and just place it on the dependent VIs.
2) Another option is to strictly connect the terminal from the control to a VI connector block and pass the value directly.
3) My last option is to create a reference of the control and reference it inside the dependent VIs, but this would also require connections to be made to the VI block.
What are the advantages/disadvantages of these options?
-Stephen
1) Globals are evil and introduce race conditions.
2) The sub-VI only get the value when it was called and updates that occur while the sub-VI is runing are not sensed by the sub-VI
3) This uses property node "value" or "value signaling" both of which run the user interface thread which is single-threaded and you incur a thread swap hit to performance. You also have a potential for race conditions.
The are various methods for sharing dat to/from sub-VI which include Queues and Action Engines.
I hope that hleps,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
What are the good PRs Report ?
Dear Al,
I have used ME5K and ME5A .. but i have ome issues with them because they don't display what i really want .. and there some conflict in ME5A "Closed Prs indicator for example display the prs which not yet even released" and "Released Only display PRs Active"
so if you can give other reports could help in this .. or giving me a hand on ME5A
ThanksHi,
By flagging 'Requisns for overall release' check box the system lists all purchase requisitions that have to be released (approved) in their entirety.
The purpose of the 'Requisns.f.item-wise release' flag is not to exclude purchase requisitions that have already been released from the selection.
To select only blocked purchase requisitions, use the dynamic selections for 'Purchase requisition' and select the 'Subject to Release' field.
Hope the above provides a little more clarity.
Regards,
Vivek -
Hello
what do u Guys think is the best font for a magazine and which size to look pretty good i was thinking of cabri roman size 10 i mean what do you think
Many ThanxI like this Guys and i liked the adobe Garomand because of its open type thing even the cabri thing works
SO tell me about the Headings of the body and Tables
Many Thanx
Imran -
What is the good period for REPLICATOR & DISTRIBUTOR scheduling ?
Hi everybody,
Just to give you more details and avoid some "simple" answer. My R/3 solution can create an equipment all day long without any rule, so I am forced to schedule very often the REPLICATORS & DISTIBUTOR program (each 5 minutes !).
But I noticed my client fails after a long time without synchronisation ... and for example after a Week end. Even a reset can not help my MI client, it only gives an error message during the synchronisation that's all.
The only solution I found is to erase the MI client ... not very profressional.
Have you any feedback about that ?Hi Ajith,
Thanks for your answer, you effectively right.My MAM30_031/030 are T51, but just to accelerate the transfert from R/3 to MI I let in REPLICATOR these two syncbos.
I know I should not and let R/3 take the control, so no more problem exists with REPLICATOR (because it runs only on T01).
Nevertheless my issue on Distributor is still existing ! I will send you a full trace tomorrow.
Regards, Jérôme
Maybe you are looking for
-
I'm using write to spreadsheet file for dumping the data of the test. I have 5-6 different variables each holding different kind of results (basically voltage values, time stamp). I want to write single variable results in one page and second variabl
-
Is there any way to put folders in your movies section of the ipod? Id like to pucrhase/rip episodes of tv shows but I would like to organize them. I havent really tried to mess around with folders yet so I apologize if this is obviously do able. ANy
-
I have a 16:9 PAL movie exported from Final Cut Express (using DV PAL Anamorphic sequence settings). The resulting movie file on disc is 720x576 pixels, which is the correct pixel dimensions for DVD. When I open the movie in iDVD, it does not detect
-
RCA error in change analysis "No config stores found "
Hi, I have configured E2E RCA in solman. In solman_workcenter t.code. RCA -> E2E ->select system->if i click change analysis it is showing errror "No config stores found for 'GRD 0020251123 ABAP or no changes found' '' . but if i click trace, execep
-
I'm having problems with my sound card. When I play the witcher in the very first act when i'm in the cave fighting, the sound gets fuzzy then goes out, and comes back when i stop fighting. Also in counterstike source when there's lots of action goin