Ramakrishna Konanki

Greenhorn
+ Follow
since Apr 18, 2008
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 Ramakrishna Konanki

Dear Friend,
i hope this is related to Filenet.

this type of error will occur
1) when user/password is incorrect.
2) getting filenet objects in to java based web application.

for 2 part you required some more configurations.
11 years ago
Hi ,
i have completed scjp certification on dec 1,2010.
till now i did not recieved the certificate.
whom i have to contact.
please reply as early as possible

thanks and regards
Rama
<%-- use the 'taglib' directive to make the JSTL 1.0 core tags available; use the uri
"http://java.sun.com/jsp/jstl/core" for JSTL 1.1 --%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<%-- use the 'jsp:useBean' standard action to create the Date object; the object is set
as an attribute in page scope
--%>
<jsp:useBean id="date" class="java.util.Date" />

<html>
<head><title>First JSP</title></head>
<body>
<h2>Here is today's date</h2>

<c:out value="${date}" />

</body>
</html>


i am executing this jsp page in eclipse.......geting error at <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
i.e uri not found....so how to get this...
11 years ago
JSP
Hi Good Morning.

i want to write util package like class for my JDBC connection....

could any one give me the sample code please...
11 years ago


the above program works fine......but my question is
1)as i studied in a book,a constructor can not handle exception----------above code throwing exception
2)a constructor can not call method(even in the same class),
except super class constructor, but it should be the first line(super()).............How it works with new IllegalArgmentException
3) a constructor cannot return values......

in the above code........how constructor handled exception.....
i required the flow of execution.........


11 years ago
class Value {
int i ;
}
public class Equalscomp {
public static void main(String []args) {
Value vl = new Value();
Value v2 = new Value();
vl.i = 100;
v2.i = 100;
System.out.println(vl.equals("v2"));
}
}

here i am geting result as false...
why......................

previous i have studied == is comparing references.
.equals() compares values.....
so what abt the above code..

please explain
12 years ago
thanq

Sudhakar Sharma wrote:Hi Ram,

If you construct a Boolean object other then with the "true" string, it evaluate it as false


Both evaluates false, and due to overriding equals() method it checks meaningfully equals which returns true.

welcome,

12 years ago
sorry for voilating rules.
could you please explain the naming policy rules....


Campbell Ritchie wrote:"Ramakrishna" it is not possible to send you a private message to warn you about the naming policy, but you are still in violation of it.
Correct your displayed name to match the policy, or we shall withdraw your privilege of using this website.





12 years ago
Boolean b1 = new Boolean(“yes”);
Boolean b2 = new Boolean("no");
System.out.println(b1.equals(b2));

i'm geting result : true...

tha value in b1 is yes and b2 is no...

how it is possible to get true....

could you state the reason please...
12 years ago
What does the == operator do?
== operator compares two references of a string.

What is a String? Where in memory does it live?
String is a set/combinations of characters.

String s; s="ab"; //this will store in stack
String s= new String("ab"); //this will store in heap
.............
this is my expectation
.................

What do you want to do with the two Strings?
just i want to compare two strings.

Is what you want to do the same thing the == operator does?
String s4 = "change me";
String s5 = "change "+"me";

s4==s5
the result is true..

my doubt is
String s6 = "change ";
String s7 = s6+"me";
s4==s7
should be true....
but it is getting false....what would be the reason.......
12 years ago


class StringTest
{
public static void main(String[] args)
{
String s1 = new String("change me");
String s2 = new String("change me");
System.out.println(s1==s2);
String s3 = "change me";
System.out.println(s1==s3);
String s4 = "change me";
System.out.println(s3==s4);
String s5 = "change "+"me";
System.out.println(s4==s5);
String s6 = "change ";
String s7 = s6 + "me";
System.out.println(s4==s7);
final String s8 = "change ";
String s9 = s8 + "me";
System.out.println(s4==s9);
}
}

output
-------
false
false
true
true
false
true

here s7=s6+"me";
s4 and s7 are equal but it is showing false...why...

one of my friend told s7 stores in heap.....
my doubt is s7 is normal variable....how it is going to store in heap
12 years ago
thank q very much
12 years ago
in the site mock example i have seen code
like
an object can call static method.


as i've studied static members should be called with class name.

please justify the solution
12 years ago