Skip to content

Author: admin

This author has written 114 articles
  1. Home>
  2. admin>
  3. Page 4

Fibonacci Series In Java

  • Post author:admin
  • Post published:October 1, 2018
  • Post category:Java
  • Post comments:0 Comments

  class Fibonacci { public static void main(String args[]) { int a=1,b=1,c; System.out.println(+a); System.out.println(+b); for(int i=1;i<=10;i++) { c=a+b; System.out.println(+c); a=b; b=c; } } } Output: 1 1 2 3 5…

Continue ReadingFibonacci Series In Java

Method Overriding In Java

  • Post author:admin
  • Post published:October 1, 2018
  • Post category:Java
  • Post comments:0 Comments

When a function with the same name and in the base and derived class is there then the base class function will be overridden(Means Ignored. Example of Method Overriding: class…

Continue ReadingMethod Overriding In Java

Method Overloading In Java

  • Post author:admin
  • Post published:September 29, 2018
  • Post category:Java
  • Post comments:0 Comments

If a class has multiple methods with the same name but different in parameters is called method overloading.   By changing the number of arguments:  class MOL { static int…

Continue ReadingMethod Overloading In Java

Simple Program In Java

  • Post author:admin
  • Post published:September 29, 2018
  • Post category:Java
  • Post comments:0 Comments

import java.util.Scanner; class Mobile { String name; int rate; String color; String version; String search; static int i; static int ntamt; public static void main(String args[]) { Mobile m[]=new Mobile[5];…

Continue ReadingSimple Program In Java

Inheritance In Java

  • Post author:admin
  • Post published:September 1, 2018
  • Post category:Java
  • Post comments:0 Comments

Inheritance is the process by which object of one class acquires the properties of the object of another class. The class from which properties are inherited is called base class…

Continue ReadingInheritance In Java

This Keyword In Java

  • Post author:admin
  • Post published:September 1, 2018
  • Post category:Java
  • Post comments:0 Comments

This keyword is used to refer to the current class instance variable. This keyword is used to invoke the current class method. This keyword is used to invoke the current…

Continue ReadingThis Keyword In Java

Static Keyword In Java

  • Post author:admin
  • Post published:August 23, 2018
  • Post category:Java
  • Post comments:0 Comments

The static keyword is mainly used for memory management only.  The static keyword can be used with. Variables Methods Block Nested Class The property of the static is shared among…

Continue ReadingStatic Keyword In Java

Constructor In Java

  • Post author:admin
  • Post published:August 20, 2018
  • Post category:Java
  • Post comments:0 Comments

In Java, the constructor is a block of codes similar to the method. The constructor is called when the instance of the object is created. The constructor is a special method…

Continue ReadingConstructor In Java

Continue Statement In Java

  • Post author:admin
  • Post published:August 20, 2018
  • Post category:Java
  • Post comments:0 Comments

The continue statement is used to jump to the next iteration of the loop immediately. class Continue1 { public static void main(String[] args) { for(int i=1;i<=10;i++) { if(i==5) { continue;…

Continue ReadingContinue Statement In Java

Break Statement In Java

  • Post author:admin
  • Post published:August 20, 2018
  • Post category:Java
  • Post comments:0 Comments

The break statement is used to terminate the loop immediately and the program continues from the next statement. class Break1 { public static void main(String[] args) { for(int i=1;i<=10;i++) {…

Continue ReadingBreak Statement In Java
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 12
  • Go to the next page

Recent Posts

  • Hello world!
  • How to publish the first blog post | Get Indexed | Google
  • 8 Ways to make money through blogging|Passive Income
  • Build a strong blogging brand | Best tips for blogging
  • Add Facebook page plugin to the blog

Recent Comments

  1. A WordPress Commenter on Hello world!
Copyright [oceanwp_date] - Design by Unique Ratlam Ajanta Talkies Road

WhatsApp us