what are the Examples of Data Abstraction & Encapsulation??(of java and not real life) |
|
asked by Aameya Kulkarni (aameyak) 6 years ago | |
3 |
how to do this :- X Y Y XXX Y Y Y Y XXXXX Y Y Y Y Y Y |
|
asked by Poorna Verma (poorna02) 6 years ago | |
2 |
Easy method for automorphic number, into n = in.nextInt(); String s = Integer.to string(n); int k = n*n; String s1 = Integer.to string(k); If(s1.ends with(s)) s.o.pln("automorphic"); else s.o.pln("not automorphic"); |
|
asked by Abhinav Sharma (monstercat) 6 years ago | |
2 | |
class Example { int x,y; String name; public static void main() { Example ex=new Example(); System.out.println("ex is"+ex.name+" "+ex.x+" "+ex.y); } } |
|
asked by Onkar Borade (onkarborade) 6 years ago | |
2 |
What is the difference between a member function which is static and a member function that is not static. (3 points) |
|
asked by Rohan Gupta (rohang37) 6 years ago | |
1 | |
Guys in eco app: What is a repo rate? Also can direct taxes be evaded or not? Because it mentions both in the textbook |
|
asked by Bharat Sai (bharat2017) 6 years ago | |
1 |
Guys how was your economics paper today? |
|
asked by BeastSpankster (beastspankarmy) 6 years ago | |
1 |
commerce students??? |
|
asked by Aryan Kapoor (aryan9917) 6 years ago | |
1 |
This is from the 2016 marking scheme...(Q7) How has variable 'i' been used in the second method too? Isn't a local variable? And couldn't we just have declared it before void SumSeries(int n, double x)??? import java.util.*; class Q7 { void SumSeries(int n, double x) { double sum=0.0d; int i; for(i=1;i<=n;i++) { if (i%2==0 ) sum=sum-x/(double)i; else sum=sum+x/(double)i; } System.out.println("sum="+sum); } void SumSeries() { int s=0, p=1; for(int i=1;i<=20;i++) { p=p*i; s=s+p; } System.out.println("sum="+s); } public static void main(String args[]) { Q7 obj=new Q7(); obj.SumSeries(5,2.0); obj.SumSeries(); }}} |
|
asked by Gargie D'souza (gar_d02) 6 years ago | |
2 |
WAP in java to accept any sentence and form a new sentence whose words are arranged in the lexicographical orde (dictionary order) using bubble sort technique. For ex, if the input show below Input sentence: it's fun to learn computer program Output sentence: computer fun its learn programming to |
|
asked by Nehal G (nehalg) 6 years ago | |
2 |
Page 167 |
ICSE chat