Core Java Interview Questions
Questions Answers Views Company eMail

strings in java are objects.why?

2 4654

can we have function for truncating the sign as like abs in oracle.

1 2780

is there any function in java to make the text to blink?

6 8422

what is the purpose of class "Object" which is base class for all classes?

3 10109

How to convert String into primitive datatype.

6 13583

why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?

3 8400

what is the difference between a java object reference and c++ pointer?

4 11349

Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1499

what is tempplate pattern

IBM, RBS,

4 9269

what is bmg file and how to create that files?what will it contailn?

HCL, Probe Services,

1870

what is marker interface ? what is the necessity of it?

Accenture, Newgen,

5 8998

what release of java technology are currently available what do they contain?

1 3159

what is the J2EE BluPrints?

1635

why Runnable interface is preferable than extending the Thread class?

Aizza, College School Exams Tests, Sybrant Technologies, Wipro,

7 24854

Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.

Hewitt,

17 18818


Post New Core Java Questions

Un-Answered Questions { Core Java }

what do you mean by classloader in java?

562


What is communist flag?

561


What is variable argument in java?

553


Can sleep() method causes another thread to sleep?

558


What is final keyword in java?

547






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)

1336


What are data types in programming?

543


Do you know how to reverse string in java?

573


What are the principle concepts of oops?

527


What is Enum in Java?

673


What are the classes of java?

531


What is the difference between procedural and object-oriented programs?

517


What is the difference between the ">>" and " >>>" operators in java?

499


What is instance example?

511


Can we access instance variables within static methods ?

558