Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 3840

why interaction with server using javascript is difficult

1 3771

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 8760

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 6702

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

2026

What is difference between abstract class & final class

7 26780

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 5912

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

Accenture,

4 13741

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

Accenture,

6 10786

what is the Yield() method used in threads?

Accenture,

4 8412

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

Accenture,

8 10441

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

Accenture,

4 7373

What is Hash Code in Java?

Cognizant,

6 15741

What are uses of Hash Code?

Cognizant,

2 7354

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 7905


Post New Core Java Questions

Un-Answered Questions { Core Java }

what is thread in Java ?

1108


What are the 6 functions?

916


What is the purpose of the system class in java?

1003


when to use ArrayList and when to use HashMap in webApplication.

4605


Compare Mutex and Semaphore in java.

948


What is the main purpose of java?

1031


What are the advantages of exception handling?

1016


What is java objectoutputstream?

940


whatis Home interface and Remoteinterface? with example?

1949


Explain the difference between intermediate and terminal operations in java8?

1058


Can static methods be inherited?

995


what is meant by HQL?

1019


Can extern variables be initialized?

903


What is sortedmap interface?

947


Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)

1765