Larsen Raja wrote:Hi,
Where would variables initialized in initialization blocks be used? Since the scope would be resolved to the block only, these variables cannot be used outside I believe.
Larsen
Sean Keane wrote:...Unless my Servlet implements the SingleThreadModel interface - in which case I am guaranteed that only one thread will be executing a method from my Servlet class at any particular moment in time. Sounds good?
naveen yadav wrote:
Ikpefua Jacob-Obinyan wrote:
........... objects are referenced from outside the method where they where created "
suppose i have a code in which object do not referenced from outside.It is created inside the method and used inside the method.No reference to the outside
at a look
and yes i can access the nav directly but for the sake of explanation of my point using ob to i access nav .
should not it be ob stored on stack ?
naveen yadav wrote:
what about the object created inside a method shouldn't it be stored on stack ?
mrs nair wrote:hi there ,
i was wondering what the output should be for the following code ,
public static void main(String[] args) {
// TODO Auto-generated method stub
int age =18;
assert(age < 18);
System.out.println("hello here......................");
}
surely an assertion error and the "hello here" shouldn't be displayed ..i am sorry but this dosent happen when i run it on eclipse indigo and i use jdk 1.6.0_27.can anyone figure out where's the bug?
Billy Tsai wrote:so if a object that represents some data structure is created within a static method as a local variable then after the method finishes the space that object occupies should be cleared(i.e. available again) and that object is destroyed?
Mini Sanjay wrote:Can anyone please tell, how long will it take to receive the certificate? Do I need to submit any documents in online?
Please allow 48 hours for your exam records to be transferred from Person VUE into the CertView Database
Deepak Bala wrote:The Math class is not part of the SCJP.
shuba gopal wrote:"Watch for Math class being an option for immutable classes"