-
-
What does final parameters mean in a method.does a innerclass only access final parameters from the parameter list if its defined inside a method.Code:type methodA(final int parm1,int parm2){class inner{// -- is onlt parm1 accessible or parm2 is also accessible}}
I did not check it in a JVM but even i can decide which is accessible. I wanna know the cocept of final parameters.
-
-
-
What is an example of polymorphism?
A) Inner classB) Anonymous classesC) Method overloadingD) Method overriding
-
-
-
-
-
System.out.println(Float.parseFloat(x));
it gives infinity.
so, how to catch it?
">How to check infinity value ? i took very large number as string when i cast to float it gives infinity value. how to check at runtime or how to catch it?ex : String x = "111111111111111111111111111112222222222222222222222222222112222";System.out.println(Float.parseFloat(x));it gives infinity.so, how to catch it?
-
-
________ text component is best suited for controlling the format of a single line of user-entered text?
Skill/Topic: AWT & AppletsA) JformattedTextField
-
-
-
-
-
-
-
-
//Note:before installing Tomcat the code gave no error:Pls give me suggestion">
I get the following error while running a servlet that connects with database.Required:java.sql.Connectionfound:ConnectionThe line is Connection con = DriverManager.getConnection("here the oracle datasource ","user",password");//Note:before installing Tomcat the code gave no error:Pls give me suggestion
Java Interview Questions
Ans