answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

What happens when steam is heated?

This depends on infinitely various contextual variables within the scenario and the precise meaning of the question. Certain events are assured to occur in consequence, and an indeterminate but almost near-infinite number of other consequences are potential.


What is difference between call by value and pass by value?

When you pass by value, the function's parameter is assigned the value of the argument that was passed. When you pass by reference, the function's reference parameter is assigned the address of the argument. In other words, pass by value copies the value, pass by reference passes the variable itself.Pass by reference is always the preferred method of passing arguments to functions when those arguments are complex objects. If the argument is a primitive data type then the cost in copying the value is minimal, but copying a complex object is expensive in terms of performance and memory consumption. If the function parameter is declare constant, you can be assured the object's immutable members will not be affected by the function. If it is non-constant and you do not wish your object to be altered, you can either copy the object and pass the copy, or pass the object by value if the function is overloaded to cater for this eventuality (good code will provide both options).


Is uknownAX a hacker in pr2?

Yes, he is, because he keylogged Melanie (the administrator), got into her account, banned everyone on PR2 for eternity, then modded random people (I don't see how this works but I was assured it happened), and he was going at it before Jiggmin and b@by*G took over. Jiggmin worked for three hours at the crashed servers, while B@by*G started demodding the mods who didn't deserve it.


What is difference between organised and unorganised sector?

1. Organized sector cover those enterprises or places of work where the terms of employment are regular and people have assured work. But unorganized sector is characterized by small and scattered units which are largely outside the control of government. 2. Workers in organized sector enjoy security of employment. But employment is not secure in unorganized sector. People can be asked to leave without any reason. 3.They are paid for the overtime. But there is no provision for overtime.


What is finally block in java?

The Finally block in java is used along with the try-catch statements. The usual structure is try { ..... } catch(Exception e){ .... } finally { ..... } In the finally block we usually have code that is used to perform clean up activities corresponding to the code in the try block. When an exception occurs in the try block control comes to the catch block and the rest of the code in the try block would not execute. In such cases we may need to have some code that cleans up the objects that we created/used in the try block. No matter what happens, the code inside the finally block would definitely execute. The best use of finally block is when we are connecting to the database. In the try block we would have the statements that instantiate the connection, prepared statement, result set etc. If the query fails then all these objects would be left open and the code would continue. So in the finally block we usually nullify these statements so that even in case of an error the unused objects are cleared. Example: Connection con; PreparedStatment PS; ResultSet rs; try{ con = ConnectionManager.getConnection(); PS = con.prepareStatement(query); rs = PS.executyQuery(); ...... } catch (Exception e){ e.printStackTrace(); } finally { con.close(); PS.close(); } In case of an error the connection & prepared statement objects would remain open if we do not have the finally block. Tip: Whatever code we have inside the finally block would be run definitely if the try block is invoked. We can even use the finally block to check if the try block was reached and executed. If the try executes then we can rest assured that the finally would also get executed.