Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Core Java Interview Questions
Questions Answers Views Company eMail

my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??

1 2404

why interaction with server using javascript is difficult

1 2480

StringBuilder s = new StringBuilder("Hello Mom");s.append(",I mean,Mother"); Response.Write(s.ToString()); String s = "Hello Mom"; s+ = ",I mean Mom"; Response.Write(s); Which is faster ? which uses the most memory?

HCL,

6 5666

I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem?

Honeywell,

2 4859

How Vector class is synchronized,How to build user defined class as synchronized?

1165

What is difference between abstract class & final class

7 22949

Hai all I want to print given array in reverse order Ex: int a[]={1,2,3,4,5};display this array in reverse order.

4 3801

what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0

Accenture,

4 10822

How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size

Accenture,

6 6974

what is the Yield() method used in threads?

Accenture,

4 5554

System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0

Accenture,

8 6414

when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service

Accenture,

4 4943

What is Hash Code in Java?

Cognizant,

6 12420

What are uses of Hash Code?

Cognizant,

2 5578

I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance...

Cybernet,

2 6080


Post New Core Java Questions






Un-Answered Questions { Core Java }

What is an example of a boolean?

175


What will happen if a thrown exception is not handled?

234


What is factor r?

177


What is the difference between the prefix and postfix forms of the ++ operator?

212


What lambda means?

183






What is difference between iterator and enumeration in java?

197


Program to Find the second largest element in an array.

216


What is better- service oriented or batch oriented solutions?

317


Difference between error and exception

4130


Which sorting algorithm is best in java?

186


How do you achieve polymorphism in java?

191


What are the two types of java programming?

173


Does java linked list allow duplicates?

154


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

195


What is illegal identifier in java?

182