Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Core Java Interview Questions
Questions Answers Views Company eMail

hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class

1 3612

what are the uses of Class class and what it returns? explain it with the example code.

1 3814

class test { private static void main(String []adsf) { } } explain me that the above code is error or exception

3 5539

class a extends b { } class b extends a { } why java doesn't support cyclic pls explain me with example

Wipro,

3 9927

how to create a jar file in java

1 5117

what is the main difference between string and stringbuffer? can you explain it with program?

2 5499

How can i add a button in applet in java ???

2 4369

did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???

IBM,

7 11337

how to make the double-tone class ? as we have singletone class..?

IBM, Microsoft,

1 5079

why constructor dont have returns type?

IBM,

9 14309

is JVM platform dependent or independent..?

IBM, Tech Mahindra,

11 41000

what is difference between interface and abstract class..?

4 6958

How to make a method thread safe without using synchronized keyword?

Persistent, Societe Generale,

8 34523

what is the collable collections in java?

Persistent,

2 12389

we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

2034


Post New Core Java Questions

Un-Answered Questions { Core Java }

What does += mean coding?

935


What is == in java?

1016


What is an eror in java?

1054


Can we declare an interface as final?

1067


What is the difference between super class & sub class?

1195


What is methodological framework?

1045


What is the argument in java?

921


What is the difference between interface & abstract class?

1045


What is busy spin, and why should you use it?

1086


Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?

1156


What is java used for on a computer?

995


Is int primitive data type?

949


what is predefined function in java?

984


What is difference between float and double?

962


Explain java coding standards for interfaces?

1112