![]() Related Questions Latest Answer : The static variable is used to Synchronize (Ex: in seaphores…) the threads because it maintains the single copy for all the instances. We can call the static variable by the class name or from the reference. It stored in a Data segment. ... Latest Answer : Please Check with this example programpublic class StaticExam { static int a=10;public static void main(String args[]){System.out.println(" Welcome to static variable testing");StaticExam s= new StaticExam();s.display();}public void display(){System.out.println(" ... Suppose If we have variable ' I ' in run method, If I can create one or More thread each thread will occupy a separate copy or same variable will be shared I want to fetch the URL address of the Internet Explorer through java program , what ever the user will write in the address of the Internet Explorer should be save into the variable of java program View Question | Asked by : abhishek prakash Latest Answer : The arguments are passed by value. ... Latest Answer : Here is the snap shot of the working solution to the said question..try{System.out.println("class name is "+class_name);Class cls=Class.forName(class_name);Constructor[] ctorlist=cls.getConstructors();/**temporary remove the sysout statement***//** ... Read Answers (3) | Asked by : utpal utkalit The number of subscripts(indexes) in 2D array is two(2).Both row and column size must be __________________. Integer constantsExample: int a[2][3]; Here a is an array consisting of two rows with each row with each row consists of 3 integer elements View Question | Asked by : V Govinda Rao View Question | Asked by : prasad A) 0 to 215-1 B) 0 to 216-1 C) 0 to 215 D) 0 to 216 Latest Answer : the range of char is 0 to 2^16 -1http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html) char range is 65535 that is equivalent to 2^16 -1 so answer B is right ... Which of the following statements correctly describes the relation between an object and the instance variable it stores? (Select multiple) A) Each new object has its own distinctive set of instance variablesB) Each object has a copy of the instance variables of its classC) the instance variable of each object are seperate from the variables
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||