Core Java Interview Questions
Questions Answers Views Company eMail

1.what is the exact difference between applet and frame? 2.Do we use main method in frames?

5 24914

diff between abstract methods and interfaces with programing (code) example?

2 4659

Is it compulsory to have atleast one abstract method in abstract class?

10 21525

public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?

6 6873

Why cant we define System.out.println() inside a class directly?

5 10307

If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface?

Infosys, Synechron,

8 13239

why marker interfaces are there in java

Digital Group,

4 7835

How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ?

Saksoft,

1 5262

In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?

5 16738

What are Advatages of Overloading and Overridding.

TCS, Wipro,

8 23962

Can we declare static variables in JSP page.

TCS,

3 22978

wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA

IBM,

12 16428

write java code to print second max number in the array

Huawei, IBAB,

12 21433

how to call One constructor from another;

Innodata Isogen,

10 15504

Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time

Huawei,

4 8682


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is finalize method?

686


What is += mean in java?

623


Which package has light weight components?

660


What is a buffer in computer?

598


What do you mean by singleton class in java?

597






How many types of interfaces are there?

665


What is a instance variable?

658


What is a function in java?

659


how to write a server program and sending the mails to the server using smtp protocol please help me

1631


Is there a way to increase the size of an array after its declaration?

690


Is null or empty java?

638


Why do we use regex?

652


What is string literal in java?

655


Is it safe to install java on my computer?

642


What is charat java?

616