Category: Java Programs for Interviews

Java Programs for Interviews

factorial program in java

factorial program in java

/*Program to calculate factorial of given number*/ factorial formula n!=1 * 2 * 3 * 4 ……….(n-1) * n for example factorial of  1! = 1 factorial of  2! = 1—2 = 2 factorial...


Java interview questions and answers Set 1

1.What Is Java ? Java is a programming language and computing platform released by Sun Microsystems. 2. What are features of java? Simple,robust,secure,portable,object-oriented,multithreaded,architectural neutral etc 3.What is Encapsulation? Encapsulation is mechanism of binding data...