narendra saran

Greenhorn
+ Follow
since Oct 24, 2013
Merit badge: grant badges
For More
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by narendra saran

Hi, i have good knowledge in servlet,jsp,jdbc and javascript and now i am looking to do spring mvc. My question is do i need to know ejb and jpa before moving to sprin mvc ?? If no then please suggest me some good books on spring mvc.Thanks
9 years ago
I have good knowledge of servlet,jsp. I've also worked on mvc pattern and now looking to learn a web framework but i'm not sure which to choose between spring mvc OR struts.Should i first do struts and then go for spring or can i choose spring directly?
9 years ago
what are the new features in java 8 ?
9 years ago
Hi,
I am new to javascript world basically i am a java developer recently,
I am learning javascript: somewhere i read that javascript is a lightweight programming language. I wonder What does it mean, in what sense javascript is lightweight??
ThankYou
is it possible to use python in servlets as a scripting language?
10 years ago
your code never reaches line no. 17, as you are start listening in constructor itself.You constructor does not completes.
10 years ago
Hi, i just finished my core java and now i planning to go for servlet and jsp. My question is if socket programming(which is covered in javs SE networking) is neccessary for servlet programming.
10 years ago
Well, static methods are not part of an object, so they donot support run-time polymorphism.Calls to a static method are resolved at compile-time so you won't get polymorphic behaviour.We override a method to get polymorphic behaviour and since static method don't provide polymorphic behaviour we generally donot call it Overriding a method.
10 years ago
Suppose i have a class called 'MyClass' and if i load it through two different classLoaders then there will be two different Class Objects in different namespaces for this single class, right?. Now my question is how many times the initialization of 'MyClass' will happen: only once or two times(one for each namespace).It would be better if you provide some demo code along with.
10 years ago
Well, Bibeault , thank you for the answer.But if this is not allowed then what if you need to create an array of this parametric type.
10 years ago
Hi, In java generics i am trying to load a parametric type using Class.forName() ,but i get an exception 'ClassNotFoundException' below is the code: (i'm using java 7):-


public class MyFixedStack<T>{

MyFixedStack()throws Exception
{
Class<?>c=Class.forName("T");
}

public static void main(String[]ars)throws Exception
{
MyFixedStack<Integer>s=new MyFixedStack<Integer>();

}
}


Hers is the exception thrown :-

Exception in thread "main" java.lang.ClassNotFoundException: T
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at MyFixedStack.<init>(MyFixedStack.java:3)
at MyFixedStack.main(MyFixedStack.java:6)

10 years ago