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 24492

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

2 4451

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

10 20907

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 6511

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

5 10005

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

Infosys, Synechron,

8 12819

why marker interfaces are there in java

Digital Group,

4 7435

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

Saksoft,

1 5113

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

5 16398

What are Advatages of Overloading and Overridding.

TCS, Wipro,

8 23487

Can we declare static variables in JSP page.

TCS,

3 22603

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

IBM,

12 15814

write java code to print second max number in the array

Huawei, IBAB,

12 20618

how to call One constructor from another;

Innodata Isogen,

10 14870

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 8432


Post New Core Java Questions

Un-Answered Questions { Core Java }

How to write custom exception in java?

601


What is class forname?

544


When should I use stringbuffer?

571


Can we catch more than one exception in a single catch block?

627


What is boolean query?

528






Can a main method be declared final?

583


What are synchronized methods and synchronized statements in java programming?

570


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

574


How do you classify Dialog Box?

649


What are the two categories of data types in the java programming language?

507


Can a constructor be protected?

532


placement papaers of spring computing technology

1022


What is math in java?

562


What Is Composition?

581


Explain constructors and types of constructors in java.

642