Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

ravi suthar

Greenhorn
+ Follow
since Apr 22, 2012
ravi likes ...
Firefox Browser Tomcat Server Java
vadodara gujarat india
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ravi suthar

static methods cannot be override in subclass but you can define static methods in subclasses also with the same name and same method signature as defined in superclass. this is called method hiding.
static methods cannot be override in subclass but you can define static methods in subclasses also with the same name and same method signature as defined in superclass. this is called method hiding.
ok, i got the answer
when i=0 value of a[0][3] will be 3
and when i=2 value of a[2][3] will be 5
both a[2] and a[0] reffered at same.
so value 3 is replaced by 5
it means every value of a[0] is replaced by a[2]
9 years ago

Christophe Verré wrote:Can guess what a[2]=a[0]; is doing ?



a[2] is start referring to a[0]
both a[2] and a[0] have the same reference
and there indexing would be 0 1 2 3 4
so the sum would be 0+1+2=3 ???
9 years ago

Christophe Verré wrote:Did you try to execute the code ?



i am expecting the output will print 3
but the actual output is 5
i am confused why it is so
9 years ago
congratulations dude..
9 years ago
9 years ago
welcome to java runch hitesh patil..!
by default you can add any object to list.
but if you want only specific type you can use of generics.
9 years ago
tell me any interesting site for core java interview questions.
9 years ago
tell me any interesting site for core java interview questions.
9 years ago
I have one doubt in terms of Database/OS..
We know the VARCHAR is variable length Datatype. I am taking
vName varchar(20)= "Test"
so it will occupy only 4 char's memory and later 16 char's will be discarded as VARCHAR is used. But when I update the same field with "TESTDATA" then How will other 4 chars will be stored/managed ??
If any of you have idea on this issue,then let me know.
try this
thank you Jesper de Jong, Anayonkar Shivalkar, Darryl Burke.
9 years ago

suppose in my login code,
if i will store hashcode() of password instead of password string,
next time for verification of password how i get password String from hashcode(),
is there any method in java which returns what object associated with a particular hashcode()



output: -1066781514 (some hashcode value)




9 years ago