Skip to main content

Posts

Java program to print "Fibonacci Series" using function

Java program to print  "Fibonacci Series" using function up to a particular number. The Fibonacci series is  a type series where each number is the sum of the two that precede it means the addition of the two numbers which came before the new number  . It starts from 0 and 1 usually. The Fibonacci sequence is given by 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, and so on. The numbers in the Fibonacci sequence are also called Fibonacci numbers. OUTPUT:  
Recent posts

5 simple programs in Java || Java programs for Beginners

5 Simple Java Programs for  Beginners 1.Program to print Hello World public class Main       {                  public static void main(String[] args)                   {                          System.out.println("hello world!")                    }           } output:  hello world! 2.Program to Add two numbers public class Main      {           public static void main(String[] args)                {                     int a = 5;                     int b = 10;        ...

How to be more productive: 15 Ways To Increase Your Productivity

15 Ways To Increase Your Productivity Set clear and achievable goals: Define what you want to accomplish and create a  plan to reach those goals. Take breaks: Taking breaks can increase focus and prevent burnout. Avoid procrastination: Tackle tasks as soon as they arise rather than putting them off. Break large tasks into smaller, more manageable parts if needed. Set boundaries: Set boundaries with your time, such as not checking email after a certain hour, to prevent burnout and maintain a healthy work-life balance. Prioritize tasks: Focus on the most important tasks first and avoid distractions. Automate repetitive tasks: Use tools and software to automate repetitive and time-consuming tasks. Minimize multi-tasking: Focus on one task at a time instead of trying to do multiple things at once. Research has shown that multi-tasking can decrease productivity. Stay organized: Keep a clean and organized workspace, prioritize Eliminate distractions: Turn off notifications on your device...

Simple Program to implement Multilevel inheritance in Java

  Multilevel Inheritance: In the below example their are total three classes each have their own methods and are giving different  output . We all know that in some or the other way properties if our parents came in their child taking the same concept the program is taking the properties of their parent class and and also have their own unique properties . We can inherit the parent class in child class my using "extends" keyword .  Example: class GrandParents {      public static void Age(int age)       {          System.out.println("Age of GrandParents is:"+" "+age);      }    }  class Parents extends GrandParents  {      public static void Nationality(String citizenShip)       {          System.out.println("Parents are from:"+" "+citizenShip);      }     } class Child exte...

What is a Hackers? | Different types of Hackers || हैकर्स कौन हैं? विभिन्न प्रकार के हैकर्स

  What is a Hackers?   Hackers are individuals who use their technical skills to gain unauthorized access to computer systems, networks, or data. They can be motivated by a variety of reasons, including financial gain, political activism, personal amusement, or the desire to test the limits of computer security systems. The term "hacker" has been adopted by the media to refer to those who engage in illegal or malicious activities, but the term is also used to describe individuals who use their skills for ethical purposes, such as finding and reporting security vulnerabilities. Ultimately, the label of "hacker" can have positive or negative connotations depending on the individual's actions and intentions. Types of Hackers: White Hat Hackers: These are ethical hackers who use their skills for good, often working with organizations to identify and remediate security vulnerabilities. Black Hat Hackers: These are malicious individuals who use their skills for perso...

Sql keys and their types

 Sql Keys and their types Introduction : Sql keys is the key to your success in analytics!  Data is growing at an exponential rate and so is the demand for professionals who are well verse3d with the databases.  Organizations all over the world are looking for data scientists and analysts who can draw meaningful insights from the vast amounts of data. And one of the most important languages for handling databases is SQL. That is why those professionals with a background in SQL have an edge over their peers when it comes to working with databases.  Table of Contents : 1.What are keys in DBMS  2. Super key  3.Candidate key  4. Primary key   5 Alternate or Secondary key  6.Foreign key  7.Composite key   What are keys in DBMS  Database are used to store massive amounts of information which is stored across multiple tables. Each table might be running into thousands of rows. Needless to say, there will be many duplicate ro...

Which language one should go for when you sit in a interview or placement in a IT industry? And why?

Which language one should go for when you sit in a interview or placement in a IT industry? And why? Today IT industry is the largest industry that attracting youth towards it . Lot of job youth are getting from IT industry only . So when it come to get job in a IT many technical graduates have a common question that for which programming language we can go for to get place in a  IT industry . So now lots of options are came in mind like C, C++ ,Java , Python .  And we all get confused here only. Now we thing that python is a easy language and have widely use in industry so why we can not go for python. But in python projects are mostly based on machine learning and Artificial intelligence that are very difficult to understand for anyone. So if you are good in these then you can choose python otherwise you have to face problems on the interview time when questions are asked on these topics.  The best option to select as a language while preparing for campus placements is ...