mridul makkar

Greenhorn
+ Follow
since Feb 15, 2005
Merit badge: grant badges
For More
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 mridul makkar

Vidya , just see ur code........

class test
{
public static void main(String args[])
{
mridul: System.out.println("mridul makkar");
for(int i=0;i<3;i++)
{
continue mridul;
}}
}
continute wants a block with a label named mridul,also it should be associated to for loop too,which it is not getting thats why it is giving this error.


Alton , i got it label should be in front of some block, so why it fails when i am puting in front of a declaration .i could say it is a single statement block,is not it??
also the error message is saying :-- '.class' expected
what it means.....
Vidya , just see ur code........

class test
{
public static void main(String args[])
{
mridul: System.out.println("mridul makkar");
for(int i=0;i<3;i++)
{
continue mridul;
}}
}
continute wants a block with a label named mridul,also it should be associated to for loop too,which it is not getting thats why it is giving this error.


Alton , i got it label should be in front of some block, so why it fails when i am puting in front of a declaration .i could say it is a single statement block,is not it??
also the error message is saying :-- '.class' expected
what it means.....
wrong ans , u can put label anywhere in the programe .thats i checked , also the code u sent is also working.

class test
{
public static void main(String args[])
{
mridul: System.out.println("mridul makkar");
int i=10;
}
}
if i put a lable in the decalration statement so it gives error , whats the reason behind that....

class mridul
{
public static void main(String args[])
{
m2: int i=1;
System.out.println("mridul makkar");
}
}

this gives error like
test1.java:6: '.class' expected
m2: int i=1;
^
test1.java:6: not a statement
m2: int i=1;

thanks in advance.......
^
The answer is singleton object :
just go through this, i hope ur all doubts will be solved.

http://www.javacoffeebreak.com/articles/designpatterns/

Regards
Mridul.
19 years ago
I want to use the library of struts in my JSPpage ...
what i need to do for this.......only include the libaray in classpath is enough??
Thanks in advance.
Mridul.
19 years ago
No as soon as it calls the callme function the lock gets opened.....I do not know the exact reason bit thats i am sure because it happened with me once.....
If some one else knows it so please tell me .....according to rules it should not release the control but it does .......WHY?
Static means a method that can be called without object instantiation.Main is the entry point of a java program at that time JVM cant initialise the oblect thats why main should be Static .
I hope u got it???
I had studied this topic many times but i used to do mistakes in this topic while my Mock exams.can any one give me full details about this topic. Also The Inner class funda also disturbs me alot.

Thanks in Advance
Mridul.
Why float f=12.0/0 wont raise any exception.I want to know the inner reason......
hi,
i got it that it is because of that Switch Run tim phenomenon, But how come compiler knows what is going to be called.....
Still in both cases error should not come,level 3 is sub class to level1 and level2 . so once it is not reachanbel and once it is reachable....
Kindly explain how it is happening.......
is there any diffrence between
a=a+1 and a++. i just need to know how a++ works.Just now i gone through a code
byte a=10;
a++;
a=a+1
second line wont give error whereas third line gives whats the reason.
I am not able to run a jsp page which has some JSTL code . I am using sun one web server 6.1.While running it always complains about some appsolute url problem.I had included taglib sirective in the web.xml too.
19 years ago
To make a executable class file u need some Third party tool....well otherwise u can create executable Jar file very easily.
19 years ago