Core Java Interview Questions
Questions Answers Views Company eMail

whether java is fully object oriented language or partially object oriented language

Infosys, ME, SMK,

4 7121

while creating thread why we extend thread class

2 4116

How HashMap implemented in java? how it internally works when values are added or searched from hashMap?What is the difference betweenthe implementation of hashmap and Linked Hashmap?

IBM,

3 9309

what is mean by synchronization?

BOB Technologies, GCPL,

3 5151

what is mean by thread lock?

Infosys, TCS,

2 5543

I declared main() method as private. But it still running and displaying the output. Please Answer it . Code Snippet as Below: import java.io.*; class over { private static void main(String[] args) { int high = Integer.MAX_VALUE; int overflow = high + 1; int low = Integer.MIN_VALUE; int underflow = low - 1; System.out.println(high + "\n" +overflow +"\n"+ low +"\n"+underflow); //System.out.println(overflow); //System.out.println(low); //System.out.println(underflow); } }

Cap Gemini,

4 5702

Hi Every One I Have Small Doubt Please answer This???????????????????????????? I Want to use AbstractList class methods(java.util.AbstractList) My Program is import java.util.*; class DemoOne extends AbstractList { public static void main(String[] args) { AbstractList a=new DemoOne();//This One is Correct?? DemoOne a1=new DemoOne();//This One is Correct?? Both Are Not Working System.out.println("Hello World!"+a); System.out.println("Hello World!"+a1); } } Error IS: DemoOne.java:2: DemoOne is not abstract and does not override abstract method get(int) in java.util.AbstractList class DemoOne extends AbstractList AnyOne can Please Provide The Solution????????????????????????? Plzzzzzzz

3 3765

how system.out.println() works?

2 4237

In Inheritance if we are implementing Multi level inheritance and all class having same name of variable and now i want to access each class variable and how it is possible?

2 4145

What is the alternate of 'Inheritance' ?

CybAge, HCL,

4 12575

explain how many oops concepts available in java with realtime scenarios?

TCS,

1 13492

int a=1,b=10; System.out.println(a+b--);

HCL,

12 13751

1) Find the Merge point of two linked lists. 2) Swap two bits of integer. 3) Reverse individual words of the sentence. 4) Reverse string without using temp string.

HCL,

2 5624

what is object slice?

1571

why did you choose your career in IT?

LIC,

1 2574


Post New Core Java Questions

Un-Answered Questions { Core Java }

What are the ways to instantiate the class class?

593


Can we execute java program without main method?

516


What is anagram word?

517


Is space a character in java?

510


Explain all java features with real time examples

1204






Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

536


What is java and why do we need it? Explain

581


What is a marker interface?

572


What is mean by exception?

544


What is the use of optional ?

562


What is a singleton class? Give a practical example of its usage.

588


How can you read an integer value from the keyword when the application is runtime in java? example?

617


What is string literal in java?

551


Is upper case in java?

525


What is primitive array?

513