Biswomohan Pattanaik

Greenhorn
+ Follow
since Feb 22, 2008
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 Biswomohan Pattanaik

Stephan van Hulst wrote:The point of marker interfaces is that they signify whether a certain action is allowed on a class, not whether a certain action is possible on a class.

Most of the time, these actions are extralinguistic, or implemented through reflection.

Let's take a look at the Cloneable interface. The action of cloning an object already exists, in the Object class. However, you are not allowed to clone just any object. Classes which permit their instances to be cloned through the clone() method, will implement the Cloneable interface. This interface is empty, and simply signifies that cloning is allowed for that class.




Thanks Stephan van Hulst
But my point is which part of Oops concept it is following....


with regards
Biswomohan
12 years ago
Hi Experts,
I have a common question regarding marker interface.Whats the use of a marker Interface,which has no body in it?Which part of Oops concept it is following?
Definite not Inheritance..because It has nothing to inherit.If we google it all website rather giving the proper use all will suggest "Serialize" Interface.But My point is serialize interface doesn't contain any method,so thats the use.I will create a my own user(Marker) interface ,and I will implements to the class which I want to do serialization.But In that case why It didn't work?What happens internally so that it will search for the particular serialize interface only?


I read it all the topics of Interface of javaranch
https://coderanch.com/forums/jforum?module=search&action=search&forum=24&match_type=all&sort_by=time&search_keywords=marker+interface
https://coderanch.com/how-to/java/Java-FAQ#marker

but still I have doubt.



with regards
Biswomohan Pattanaik
12 years ago
Hi Every Body,
I have JSP page which will fetch data from database.My requirement is that I need a Loading image which will show how many percentage has been complete and the other remain.How these thing is possible.Please help me..... ..Like XP os shows the percentage copying...or remaining time...


Ex:- Suppose it will fetch 100 records.....
the it will so 76 remains..like that


with regards
Mohan....
13 years ago
JSP
Hi Every Body,
I have JSP page which will fetch data from database.My requirement is that I need a Loading image which will show how many percentage has been complete and the other remain.How these thing is possible.Please help me..... ..Like XP os shows the percentage copying...or remaining time...


Ex:- Suppose it will fetch 100 records.....
the it will so 76 remains..like that


with regards
Mohan....
13 years ago
JSP
I have a doubt
//Interface A

code:
--------------------------------------------------------------------------------

interface A{public void add();public void sub();public void multiplication();} //Class B that Implements Aclass B implements A{public void add(){ int a=30; int b=40; int c=a+b; System.out.println("The result of Addition is:-"c); }public void sub(){ int a=80; int b=40; int c=a-b; System.out.println("The result of Substraction is:-"c);}public void multiplication(){ int a=80; int b=40; int c=a*b; System.out.println("The result of Multiplication is:-"c);}public void division(){ int a=80; int b=40; int c=a/b; System.out.println("The result of Division is:-"c); }}//Anaother class C that use B's methodclass C{public static void main(String[]args){ //what is the differnce //I have a doubt why we use this line A a=new B(); a.add(); B b=new B(); b.add(); }}

--------------------------------------------------------------------------------


I have a doubt,In class C I am accessing the B's add()through 2 referance variables one is class type and another is interface type.ok
My doubt is what's the differance?
which is adviceable to use?


thanks
Biswo
14 years ago
I am using MyEclipse tool,java 1.5,weblogic 8.1.
After I create my domain in weblogic,when I starts my weblogic in Eclipse
it gives the following error

The WebLogic Server did not start up properly.
java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:261)
at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:366)
at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:128)
at weblogic.management.AdminServer.<init>(AdminServer.java:59)
at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:753)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: - with nested exception:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848]
at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:266)
at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:366)
at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:128)
at weblogic.management.AdminServer.<init>(AdminServer.java:59)
at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:753)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationError - with nested exception:
[weblogic.management.configuration.ConfigurationException: - with nested exception:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848]]
at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:377)
at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:128)
at weblogic.management.AdminServer.<init>(AdminServer.java:59)
at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:753)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
at weblogic.Server.main(Server.java:32)
***************************************************************************


kindly help me to short out my problem

with regards
Biswo
14 years ago
I have a doubt
//Interface A

I have a doubt,In class C I am accessing the B's add()through 2 referance variables one is class type and another is interface type.ok
My doubt is what's the differance?
which is adviceable to use?


thanks
Biswo
[ November 02, 2008: Message edited by: Maneesh Godbole ]
14 years ago