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 24220

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

2 4323

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

10 20444

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 6251

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

5 9803

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

Infosys, Synechron,

8 12511

why marker interfaces are there in java

Digital Group,

4 7162

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

Saksoft,

1 4984

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

5 16170

What are Advatages of Overloading and Overridding.

TCS, Wipro,

8 23209

Can we declare static variables in JSP page.

TCS,

3 22368

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

IBM,

12 15293

write java code to print second max number in the array

Huawei, IBAB,

12 20166

how to call One constructor from another;

Innodata Isogen,

10 14516

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 8255


Post New Core Java Questions

Un-Answered Questions { Core Java }

Can we convert list to set in java?

447


What is a method type?

463


how can you take care of mutual exclusion using java threads? : Java thread

526


What is main string [] args?

458


How do you create a bulleted list?

485






What are the Class Libraries ?

520


Why do we need hashset in java?

415


How can we make string upper case or lower case?

538


What is a databasemetadata?

484


Write a program to print the pattern given below

418


What is the difference between multiple processes and multiple threads?

496


What is a "pure virtual" member function?

530


Why java is platform independent? Explain.

522


What is the size of a string in java?

485


What is a dynamic array java?

450