Ramakrishna Gummadi

Greenhorn
+ Follow
since Jun 29, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Ramakrishna Gummadi

gihan pandigamage wrote:String str = "A";
char ch= str.charAt(0);
System.out.println(ch);



Thank you dude....
10 years ago
Hello friends
I want to know that how to convert a string value and store into char value.
ex:-


now i want to store in char ch;

thanks in advance....
10 years ago
Hello friends

I done program for pattern matching. The program is we need to store words in memory like stand, stone, state and Red, road, Ramp. Now if a user gives first character of the word then it should print the words which starts with that letter.
Example :- User enter character S
Then output should be
stand
stone
state.

So this program i done using List.

I want to know that can we do using Map? how ?

Thanks in advance friends...
10 years ago
Is method overloading comes under polymorphism ?
10 years ago
I created empty interface... with no abstract methods

It means an interface can have 0 or more abstract methods
10 years ago
Can abstract class and interface have 0 or more abstract methods ?
10 years ago
Hello friends tell me Java reserved keywords... ex- delete - (it not a keyword but it is a reserved keyword for future use).
So i want to know what are the reserved keywords are there currently...

Thanks in advance..
10 years ago


Dude.... i know syntactically what is overloading and overriding...

Im asking that show me the use of the overriding in practically..

Show me one program using overrding{use should be there}
10 years ago

ankittt agarwala wrote:Overriding - same method names with same arguments and same return types associated in a class and its subclass.
Example:

class CSuper

{

null print ( string _name)
{

print "Hello" + _name;

}

};

class CDerived

{

null print ( string _name)
{

print "Hello" + _name + "from Derived";

}

};



Overloading - same method name with different arguments, may or may not be same return type written in the same class itself.

Example:

class CClass
{

string print( int i);

string print(int i, char c);

};


there is a difference between these two and also when you write programs you will get to know their use too.
Read more: http://wiki.answers.com/Q/Difference_between_overriding_and_overloading#ixzz1UeNV7W7y



Dude.... i know syntactically what is overloading and overriding...

Im asking that show me the use of the overriding in practically..
10 years ago
What is the use of OVERLOADING and OVERRIDING ?

10 years ago

Campbell Ritchie wrote:No, static members are not polymorphic. In fact you ought only to call static members by className.memberName, rather than on an object name.



yup.. static members called with help of classname.
But what about following code... here staticmethods luks like overriding ?
10 years ago

Wouter Oet wrote:Number 1 isn't a question but anyway for each of those topics is a huge amount of info out there. What don't you exactly get?



Actually i know polymorphism :- it is one of the OO principle, and polymorphism means like a person performing different tasks. In home as a father and in an organization as an employee.
Example :- methodoverriding

But i heared that polymorphism is two types dynamic and static polymorphism and examples for dynamic - method overriding and for static - method overloading..
1.According to my knowledge methodOverloading doesnot comes under polymorphism itself.
2.Another thing i heared in inheritance static methods are comes under static polymorphism.

so i want to know is there is static polymorphism ? and if there wil static methods in inheritance comes under static polymorphism ?

10 years ago
Please friends give me exact answers for my following questions....

1. polymorphism...... ?

2. is static polymorphism is there in java, if there means show me one code..?

3. can static methods overridden ?
10 years ago

ashok bantu wrote:how to make a class not to inherit and not to instantiate simultaneously



declare a class's constructor as private then you cant inherit it and cant create object to it.
so that class cannot be inherited and cannot be instantiated.
10 years ago

Sandeep Kumar B wrote:Instance block


I mean is instance block called first or constructor called first ?

actually i heared dat.. if a instance block and constructor in a class... then while we creating object to that class.. constructor wil called. now before constructor execution, constructor wil call and execute the instance block, then constructor executes... is this right >?
10 years ago