Thursday 18 July 2013

Some Key Concepts of JAVA that are frequently asked

Today i want to share some intresting facts of java-a programming language...
They are frequently asked key concept questions...

1)A JAVA use both the process i.e compilation and interpretation...When a java file is compiled , a class file is created, A class file is collection of byte code..Bytes code are then interpreted by JVM..

2)A class is simply a template...An object is created to give life to various attributes of a class..

3)In JAVA a class template takes no memory...Memory is allocated when object is created...

4)We can execute a JAVA program without a main method..Because a Static block is exexuted before main method..A block declared with static keyword is static block....

5)Multiple inheritance is not allowed in JAVA...Interface is used to support multiple inheritance in java...

6)If a class is declared final, it cannot be inherited...

7)String class in java cannot be inherited because it is a final class..

I will try to provide more updates in next post..Hope JAVA beginners of my type will like this post...

No comments:

Post a Comment