I was wondering always, why it is always main method is the starting point for the Java program. Well When i was matured enough to read the Java Specification i learnt why and whether can it be changed ? Okay Lets See !! Why main method ? Main method is the starting point for the java program, JVM initialize the class
Interview Questions Refer this for preparing yourself on how to write java program to print patterns (Note: NOT Design Patterns) Start Pattern Number Pattern Star Pattern Number Pattern Just a Note There are N-ways of writing the above codes, please feel free to explore by playing around it.
OOPs Object oriented Programming Concepts Abstraction Encapsulation Polymorphism Inheritance Association Composition Aggregation Abstraction Hiding the internal details and describing things in simple terms, there are many ways to achieve abstraction in OOPs, such as encapsulation and inheritance. For Example: a method that adds two integers, the method internal process is hidden from outer world. Encapsulation It