SanBits
BAN USER
Employee at None
Questions (3)
Comments (3)
Reputation 10
- 0of 0 votes
Answerspublic class Finder { public static void main(String[] args){ System.out.println(X.Y.Z); }} class X{ static class Y{ static String Z ="Apple"; } static W Y = new W(); } class W{ String Z = "Orange";}
Please give the output with proper reason.
- SanBits in United States| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersWrite an efficient code in c to implement the words in dictionary order.
- SanBits in United States| Report Duplicate | Flag | PURGE
Adobe
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
1
of 1 vote
the answer will be 60 20 10. In variable i the address stored is 60 and in variable j the address stored is 20. now when we say print i then 60 is printed, when we say print j then 20 gets printed and when we say print i-j then it means we want to print the number of integers that can be accomodated between these 2 addresses and that is (60-20)/4 = 10
- SanBits December 09, 2012Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
why it reads Y as object of class W.??? in class X, there is a static class also. so why they dont read the static class Y???? plz give the proper reason..
- SanBits December 14, 2012