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

Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }

3 5345

1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?

RBS,

2 7108

2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

RBS, TCS,

2285

3) Suppose you are a very rich person, having 50 rooms and you have lost the key for one of the room's. How effectively you can find this key? (Qs2 and Qs3 are related)

RBS,

3 8900

Suppose there is a System A which gives some output. This output is used as input by system B. The rate at which System A produces is faster than the rate at which system B consumes it. How can you improve this?

RBS,

1 5765

Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?

RBS,

2 10740

What is Co-Variant return type in method overriding?

RBS,

1 5793

7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?

CSC, Nagarro, RBS,

4 9355

Can an abstract class have a constructor?

RBS, Wipro,

1 9614

What is the life cycle of Servlet?

3 6492

JVM responsibility?

TCS,

6 16143

explain Anonynous inner class?

TCS,

6 9569

why is S capital in System.out.println ????

6 20656

what is difference between length and length()?

8 17946

how your day start in your company

1 3839


Post New Core Java Questions

Un-Answered Questions { Core Java }

What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

989


What is meant by class loader? How many types are there?

1254


Why is it called a string?

1012


Write a program in java to find the maximum and minimum value node from a circular linked list.

1090


Is java an open source?

978


You're given a Boolean 2D matrix, can you find the number of islands?

1111


What is map in java?

1013


When can you say a graph to be a tree?

1085


What is the right data type to represent a price in java?

960


What is stringbuffer in java?

1067


What are different types of control structures?

977


List out five keywords related to exception handling ?

1020


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

2433


When do you call copy constructor?

979


What is void data type?

996