Win a copy of Functional Design and Architecture this week in the Functional programming forum!

Ramesh Kumar Koyya

+ Follow
since Aug 31, 2014
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ramesh Kumar Koyya

Im getting this error can anybody solve me

error; Column Index out of range SQLException range :4 column 3

private List<EtsEmployeeAdditionalAttribute> listEmployeeCostCentersOfDate(
List<Integer> stwdIdList, Date date)
throws STWInternalServerException

Connection conn = null;
PreparedStatement stmt = null;
StringBuffer sb = new StringBuffer();

sb.append(" select t1.* from ( select * from employee_additional_attributes where stwid in (1,2,3,4) ) ");
sb.append(" as t1 join ( select stwid, max(employee_additional_attribute_id) as employee_additional_attribute_id from employee_additional_attributes ");
sb.append(" where stwid in (?) and mis_attribute_id = (?) and start_time <= date(?) group by stwid ) ");
sb.append(" as t2 using ( stwid, employee_additional_attribute_id ); ");

List<EtsEmployeeAdditionalAttribute> costCenterList = new ArrayList<EtsEmployeeAdditionalAttribute>();
int i = 1;
try {
conn = STWTransactionManager.get(Thread.currentThread().getId());
stmt = conn.prepareStatement(sb.toString());

stmt.setString(i++, StringUtils.prepareSqlArray(stwdIdList));
stmt.setString(i++, StringUtils.prepareSqlArray(stwdIdList));
stmt.setInt(i++, MISAttributeTypeConstants.EMPLOYEE_COST_CENTER);
stmt.setDate(i++, new java.sql.Date(date.getTime()));

ResultSet rs = stmt.executeQuery();

while ( {

EtsEmployeeAdditionalAttribute employeeCostCenter = new EtsEmployeeAdditionalAttribute(
rs.getInt("stwid"), rs.getInt("mis_attribute_id"),
rs.getDate("start_time"), rs.getDate("end_time"));
return costCenterList;
} catch (SQLException ex) {
throw new STWInternalServerException(ex);
Which one is better to take certification exam 1z0-851 or 1z0-803 ? Can anyone tell me
can anybody tell me the difference between the static keyword and transient keyword?
7 years ago
public class A
pubic static void main(String args[])
System.out.println("Hello World");

this file present in d: drive in some folder x
how to compile java file in c: location
7 years ago
public class Test {

public static void main(String... args) {
for(int i = 2; i < 4; i++)
for(int j = 2; j < 4; j++)
if(i < j)
assert i!=j : i;


answer The class compiles and runs, but does not print anything.

can anybody tell explanation of this code
7 years ago

Piyush Jain wrote:According to Kathy S and Bert B book java will treat assert as a legal identifier if the assertion is not turned on.

now in the exam if its asked about whether assert is a keyword or used assert as an identifier. What the answer should be, if they don't say anything about turning on the assertion.


Before 1.4 version or lower version like 1.3 or 1.2 versions assert is treated as a identifier

In 1.4 version assert is a keyword

so use lower versions to compile the keyword

you can't compile 1..4 or above version assert is a identifier it gives compile time error

class Test
public static void main(String args[])
int assert=10;

compile javac -source 1.3
it shows some warnings but it works

run it java Test

i hope you understand it

java support multiple assert statements or not?
7 years ago
Friends tell me scjp CX 310-065 and ocjp 1z0-851 are same or not
Please tell me guys syllabus and exam format same or not I have these doubt's in my mind