Topic- looping,function overloading,nesting ,polymorphism.
Aim - to write a function with a name buzz-buds,that will
check whether the given numbers are buddies or not on the
basis of no. of parameters passed during function calling.
No Answer is Posted For this Question
Be the First to Post Answer
What is jboss in java?
How do I create an executable jar file?
Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.
Are the actual permissions for the application defined at run-time or compile-time? : java security
What type of parameter passing does java support?
What is loose coupling in java?
public class Dog { private int weight; public int getweight(){ return weight; } public void SetWeight(int newWeight){ if (newWeight > 0){ weight = newWeight; } } } public class TestDog { public static void main(String[] args) { Dog d = new Dog(); System.out.println("Dog d's weight is " + d.getWeight()); d.setWeight(42); System.out.println("Dog d's weight is " + d.getWeight()); d.setweight(-42); System.out.println("Dog d's weight is " + d.getWeight()); } } class dog is compiled but there is an error in class TestDog when compiled and the error is with dot notations. I want to kmow why there is error in testdog class when compiled.
What is the meaning of loosely coupled in java?
What happens when you omit a brace or misspell one of the words, like public or
What is ehcache in java?
What is a controller in java?
What is java language expression?