Monday, 4 December 2017

UFC 218 TALKING POINTS: HOLLOWAY SHOWS RESPECT, NAGNNAOU NEXT FOR MIOCIC



DETROIT – Michelle Waterson said people we’re coming up to her all week asking why her UFC 218 fight – a five-six matchup in the strawweight division against Tecia Torres – wasn’t getting more attention.
A stunned Waterson squinted and replied, “Did you see the card? It’s freaking stacked,” she said.
Matchmakers Mick Maynard and Sean Shelby really put together a can’t-miss collection of fights and the athletes delivered. Eddie Alvarez-Justin Gaethje and Yancy Medeiros-Alex Oliveira were so good that UFC president Dana White awarded them both Fight of the Night Honors.
Paul Felder’s vicious ground and pound TKO finish against Charles Oliveira was overshadowed by the night’s unbelievable fights. Same thing happened to Henry Cejudo, who put forth a wrestling masterclass to stymie Sergio Pettis is a huge flyweight bout.
The true measure of a fight card is always going to be the headliners. Francis Ngannoudemonstrated another level of his scary power when he landed a cartoon-like uppercut on Alistair Overeem that sent his head back like it had been run over by a truck.
UFC featherweight champion Max Holloway won his 12th in a row in another dominant performance as he continues to evolve and get better every time out.
These are the UFC 218 Talking Points
Holloway continues to be champ in and outside Octagon
Jose Aldo looked good against Max Holloway. He was landing punches and even worked in some leg kicks this time around. But his best was no match for Holloway, who patiently waited for Aldo to expend his energy before turning up the pace in the third and decisive round.
But it was something Holloway said after the fight that may have made the biggest impression. He had just finished beating Aldo convincingly for the second time in six months and he was quick to offer praise and appreciation for the Brazilian legend.
“He’s the greatest of all time,” Holloway said. “He’s got what, seven or eight title defenses? I got to catch up. … I think Brazil should be building statues of that guy in the favelas. He’s a legend. He’s a goat.”
That’s champ life, respect.
Frightening power of Ngannou next for champ
There was a collective hesitation to fully believe the hype surrounding Francis Ngannou heading into the toughest test of his career against Alistair Overeem.
But after the huge upper cut landed, the entire world and more importantly the heavyweight division has been put on notice.
White confirmed that Ngannou will be next for UFC heavyweight champion Stipe Miocic and that’s shaping up to be one of the biggest clashes in the history of the division.
Ngannou believes he’s ready.
“It is one punch. Not just to Overeem, not just to Stipe [Miocic], I will do that to everyone. I am on my way to completing my dream,” Ngannou said. “I always dreamed of being a world champion.
“Tell Stipe that I am coming. I am on my way to collect my belt. I thank him for keeping it for me but that time is over. That is my belt.”
Alvarez claims title of UFC’s most violent man
Alvarez vs. Gaethje has had fight fans swooning for months as the two coached opposite another on The Ultimate Fighter. The buzz was so deafening it was going to be hard for the fight to live up to the expectations.
But both Alvarez and Gaethje delivered on their promise to come forward and bang for every moment of the fight. Alvarez was like a Tasmanian Devil the way he was mixing up his punches and attacking the body. He ended up basically on one leg after countless Gaethje leg kicks but just needed on of them to land the finishing knee.
Alvarez gave respect to Gaethje after the fight, saying it takes two to tango. The two certainly left everything in the Octaon.
“Titles are great but, at the end of the day, the thing everyone cares about is who the most violent fighter is and that’s what this fight was tonight,” Alvarez said. “If you’re not ready for Justin Gaethje, he’ll put you on your butt every time so I used the body shots to hurt him and control the pace. Every single day, I’m in the gym with my coaches. I try to be ready for anything.”


What is Difference Between Object And Class in Java Programming

Learning Java Programming Made Easy


Java Object: Object is a variable which has states and behaviors, and it is an instance of the class.

ex.
A dog has 
states - color, name, breed as well as
behaviors – wagging the tail, barking, eating.

Java Class: It is a collection of variables, objects, staetments, and functions which performs a specific function.


  • A class is a template or blueprint that is used to create objects.
  • Class representation of objects and the sets of operations that can be applied to such objects.
  • The class consists of Data members and methods.
Primary purpose of a class is to held data/information. This is achieved with attributes which is also known as data members.
The member functions determine the behavior of the class i.e. provide definition for supporting various operations on data held in form of an object.
There are many differences between object and class. A list of differences between object and class are given below:
No.ObjectClass
1)Object is an instance of a class.Class is a blueprint or templatefrom which objects are created.
2)Object is a real world entity such as pen, laptop, mobile, bed, keyboard, mouse, chair etc.Class is a group of similar objects.
3)Object is a physical entity.Class is a logical entity.
4)Object is created through new keyword mainly e.g.
Student s1=new Student();
Class is declared using class keyword e.g.
class Student{}
5)Object is created many times as per requirement.Class is declared once.
6)Object allocates memory when it is created.Class doesn't allocated memory when it is created.
7)There are many ways to create object in java such as new keyword, newInstance() method, clone() method, factory method and deserialization.There is only one way to define class in java using class keyword.

Sunday, 3 December 2017

What is Difference between Method Overloading and Method Overriding in Java Programming

Learning Java Programming Made Easy


Difference between method overloading and method overriding in java:


There are many differences between method overloading and method overriding in java. A list of differences between method overloading and method overriding are given below:

No.Method OverloadingMethod Overriding
1)Method overloading is used to increase the readability of the program.Method overriding is used to provide the specific implementation of the method that is already provided by its super class.
2)Method overloading is performed within class.Method overriding occurs in two classes that have IS-A (inheritance) relationship.
3)In case of method overloading, parameter must be different.In case of method overriding, parameter must be same.
4)Method overloading is the example of compile time polymorphism.Method overriding is the example of run time polymorphism.
5)In java, method overloading can't be performed by changing return type of the method only. Return type can be same or different in method overloading. But you must have to change the parameter.Return type must be same or covariant in method overriding.




Java Method Overloading example:

  1. class OverloadingExample{  
  2. static int add(int a,int b){return a+b;}  
  3. static int add(int a,int b,int c){return a+b+c;}  
  4. }  

Java Method Overriding example:

  1. class Animal{  
  2. void eat(){System.out.println("eating...");}  
  3. }  
  4. class Dog extends Animal{  
  5. void eat(){System.out.println("eating bread...");}  
  6. }  

Saturday, 2 December 2017

How to get Armstrong Number Java

Learning Java Programming Made Easy


  1. class ArmstrongExample{  
  2.   public static void main(String[] args)  {  
  3.     int c=0,a,temp;  
  4.     int n=153;//It is the number to check armstrong  
  5.     temp=n;  
  6.     while(n>0)  
  7.     {  
  8.     a=n%10;  
  9.     n=n/10;  
  10.     c=c+(a*a*a);  
  11.     }  
  12.     if(temp==c)  
  13.     System.out.println("armstrong number");   
  14.     else  
  15.         System.out.println("Not armstrong number");   
  16.    }  
  17. }  

How to get Factorial Number Program Java

Learning Java Programming Made Easy


  1. class FactorialExample{  
  2.  public static void main(String args[]){  
  3.   int i,fact=1;  
  4.   int number=5;//It is the number to calculate factorial    
  5.   for(i=1;i<=number;i++){    
  6.       fact=fact*i;    
  7.   }    
  8.   System.out.println("Factorial of "+number+" is: "+fact);    
  9.  }  
  10. }  

How to get palindrome Number Program in java programming

Learning Java Programming Made Easy



  1. class PalindromeExample{  
  2.  public static void main(String args[]){  
  3.   int r,sum=0,temp;    
  4.   int n=454;//It is the number variable to be checked for palindrome  
  5.   
  6.   temp=n;    
  7.   while(n>0){    
  8.    r=n%10;  //getting remainder  
  9.    sum=(sum*10)+r;    
  10.    n=n/10;    
  11.   }    
  12.   if(temp==sum)    
  13.    System.out.println("palindrome number ");    
  14.   else    
  15.    System.out.println("not palindrome");    
  16. }  
  17. }  

How to get Prime number using Java Programming

Learning Java Programming Made Easy


  1. public class PrimeExample{    
  2.  public static void main(String args[]){    
  3.   int i,m=0,flag=0;      
  4.   int n=3;//it is the number to be checked    
  5.   m=n/2;      
  6.   if(n==0||n==1){  
  7.    System.out.println(n+" is not prime number");      
  8.   }
  9. else{  
  10.    for(i=2;i<=m;i++){      
  11.     if(n%i==0){      
  12.      System.out.println(n+" is not prime number");      
  13.      flag=1;      
  14.      break;      
  15.     }      
  16.    }      
  17.    if(flag==0)  { System.out.println(n+" is prime number"); }  
  18.   }//end of else  
  19. }    
  20. }   

How to get Fibonaci Series in JAVA Programming

Learning Java Programming Made Easy


  1. class FibonacciExample1{  
  2. public static void main(String args[])  
  3. {    
  4.  int n1=0,n2=1,n3,i,count=10;    
  5.  System.out.print(n1+" "+n2);//printing 0 and 1    
  6.     
  7.  for(i=2;i<count;++i)//loop starts from 2 because 0 and 1 are already printed    
  8.  {    
  9.   n3=n1+n2;    
  10.   System.out.print(" "+n3);    
  11.   n1=n2;    
  12.   n2=n3;    
  13.  }    
  14.   
  15. }
  16. }

How to use SWITCH case statement in java jsp Programming

Learning Java Programming Made Easy


SWITCH case statement in java jsp Programming


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    
    <%
         //<editor-fold defaultstate="collapsed" desc="comment">
int day
//</editor-fold>
=Integer.parseInt(request.getParameter("enterno")); 
        
      
       
switch(day) {
case 0:
   out.println("It\'s Sunday.");
   break;
case 1:
   out.println("It\'s Monday.");
   break;
case 2:
   out.println("It\'s Tuesday.");
   break;
case 3:
   out.println("It\'s Wednesday.");
   break;
case 4:
   out.println("It\'s Thursday.");
   break;
case 5:
   out.println("It\'s Friday.");
   break;
default:
   out.println("It's Saturday.");
}
%>
</html>

How to get session using java jsp programming code

Learning Java Programming Made Easy

get session using java jsp programming code 

Page 1:

/***********************************************//

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
   
    <body>
         
        <%
        String username=request.getParameter("username");
        //String password=request.getParameter("password");
        out.println("welcome : "+username);
      //  session.setAttribute("user",username);     
        %>
        <a href="sessionsecond.jsp?user=<%=username%>">gotonextpage</a>
    </body>
</html>

/**********************************************//


Page 2:

/**********************************************//
<%-- 
    Document   : sessionsecond
    Created on : Dec 7, 2016, 11:13:13 AM
    Author     : admin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            //String usermname=session.getAttribute("user").toString();
            String name=request.getParameter("user");
            String pass=request.getParameter("pass");
          out.println("Welcome : "+name);
        %>
        <a href="sessionthird.jsp">gotonextpage</a>
    </body>
</html>

/********************************************//


Page 3:

/***************************************//

<%-- 
    Document   : sessionstartpage
    Created on : Dec 7, 2016, 11:09:47 AM
    Author     : admin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form action="sessionfirstppag.jsp" method="post"> 
            <input type="text" name="username"><br/>
            <input type="text" name="password"><br/>
            <input type="submit" value="go">
        </form>
    </body>
</html>

/***************************************//

Page 4:

/****************************************//

<%-- 
    Document   : sessionthird
    Created on : Dec 7, 2016, 11:17:50 AM
    Author     : admin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <%
            //String usermname=session.getAttribute("user").toString();
            String usermname=request.getParameter("user");
          out.println("welcome : " +usermname);
        %>
    </body>
</html>


/******************************************//

Charactor_At_Position

public class Char_At_Position { public static void main(String[] args) { String str = "Wankhede"; String rev=""...