Win a copy of Event Streams in Action this week in the Java in General forum!

subhash kumar

Ranch Hand
+ Follow
since Jul 14, 2010
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 subhash kumar

Dear Himanshu,

Please first clarify what concrete task is assigned to you.

Requirement :
Develop a rest service to fetch all cities of country which may look like

Design a service :
http://localhost:8080/mycompany/services/country/city

Development:
Spring Rest services architecture can be used to achieve this.
It all depends you current project's architecture guideline to develop this.

Testing :
any rest client like post man.

10 months ago
Static binding in Java occurs during Compile time while Dynamic binding occurs during Runtime.

When you are compiling your code, compiler is statisfied by comparing the method calls with the
method definition ,this is static binding.

When your are running this code JVM will decide which method is called based upon the number
and datatype of parameters to arguments, this is dynamic binding.

method overloading is not used from the prospective of memory improvement, it fits in different usage
like sum can be operated on two integers also and two floats also So more towards funtionality.
7 years ago
Yes you can but at those places only where private member variable is accessible.
8 years ago
Hi,
I am not aware what Neevia is.
But as java gives canRead() method in File class
there might be some provision to check if the file is readable or not
if it is passing this test, you can continue with the uploading.
8 years ago


1234 HEDEPT 12-3-2009 12-03-2009 yesno yes A hello@hello.com 12 y12
1234 HEDEPT 12-3-2009 12-03-2009 yesno yes A hello@hello.com 12 y12



here i thing space can be use as delimiter.


8 years ago
Error Trace showing :

Your JVM(java tool) is unable to find the Hello.class

One way as jesper told to set the classpath and run your program from command prompt.
Second is your Crimosn editor also having some setting which will allow you to set the classpath for the jvm
most probable it will be in your Tools>>java .

main problem is jvm is looking for classes at the current directory(default behavior or jvm).
current directory means where you jvm is running.
and it is not finding you Hello.class file.
8 years ago
What exactly your requirement is ?
come up with some starting tell specific what is the need.
8 years ago
your method is the behavior of class means it will perform something, Now how to see this behavior
1. By doing the calculation/operations/processing and returning the values.
2. By doing the calculation/operations/processing and returning nothing as void return type.
3. By passing the reference types as the parameter and processing it in the method and see the changed object where you called
this method.
it all depends the situations and what thins are available with you.
for example if you are using/making any utility method like "valueOf" then you need to return values from method.
if you are writing method for your own class needed in you module then you can go for 2nd or 3rd option.
8 years ago
If you want to count the number of objects(boxes) created of Box class then static variable will be needed.
If color property of Box class needed then we can make color as non static as it will be in every object of Box class.
8 years ago
Yes it is very important to decide which cell have what format.
you have to make template for your excel sheet, that will i think be landmark for many things.
8 years ago
whenever beans are used to carry data as they are meant for,
it must have no arguments constructor or default constructor, because that is the way to create a blank bean(not carrying any data)
other advantage is , if any application or tool or framework using your bean it will be expacting bean with the no argument constructor or default constructor.
9 years ago
Hari : sorry I got in between you was talking to madhuri in this thread
good work by you
9 years ago

hi subhash kumar,
i tried with hari's code...i m getting output as $..nothing im getting...here is my code which hari has suggested me...




madhuri you are not concentrating on the thread some body pointed out the hari's code lacks ! sign in the for loop
try last i have pasted

correct is


9 years ago
madhuri kunchala

why are you not trying the hari's code
else
compare your code with the hari's code
9 years ago