![]() |
| 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 |
![]() Related Questions How can I swap two variables without using a third variable?Can u plz tell me the logic behind it..? How can I swap two variables without using a third variable?Can u plz tell me the logic behind it..? Read Answers (7) | Asked by : RamaKrishna we can compare two Strings with (==) when we assign some string value to the String variable,but if we create an object to that strings and compare eachother we cant use(==) operator ,because we can compare Latest Answer : Both == and equals() can be used to compare objects but in different aspects== is used to check whether the references are aliases.equals() is used to check for object value equality. equals() method in the object returns true only if the two references ... Read Answers (4) | Asked by : venkat 1)what happens if i do this=null?2)how to swap 2 variables without using third temp variable in java?3)constructors can not be inherited,why? Latest Answer : A variable's scope is the region of a program within which the variable can be referred to by its simple name. The location of the variable declaration within your program establishes its scope and places it into one of these four categories: 1) ... Latest Answer : first of all declare a memory block according to data typeassign var nameinitite by def valuewassign orignal value ... Read Answers (3) | Asked by : Raju Latest Answer : yes, we can declare and they would be local to the block.Here is an example.....class Test { public static void main(String[] args) { int i = 0; ... Latest Answer : We can access only static variables inside inner static class ... Read Answers (3) | Asked by : Shankargouda Patil Latest Answer : Local variables (including formal parameters) are visible only in the method, constructor, or block in which they are declared. Access modifiers (private, public, ...) can not be used with local variables. All local variables are effectively private ... the Color class contains some color names as constant variables . but it is twice. what for it.it have two variables like RED and red. what for it. i know that one is for set and get Color.but how the Latest Answer : Yes. It is using for IGNORING case. ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||