Question Java side, you can do with a few?

2010-04-21  来源:本站原创  分类:Java  人气:230 

1, there are two non-uniform distribution of fragrance, fragrant burn time is one hour, you can use any method to determine the period of 45 minutes of time?

2, working seven days a worker, wages day, a knot, there is a gold bar is that the seven days of total wages, and asked only breaking off twice, and wages are made every day, how break with both hands?

3, a manager has three daughters, three daughters together is equal to the age of 13, three daughters take up the age of managers is equal to their age, there is a subordinate manager is aware of the age, but still can not determine the age of three daughters, manager , then manager, said that only one daughter's hair is black, and then the subordinates of the manager will know the age of three daughters. Three daughters, aged ask how much? Why?

4, there are 27 student movement, the feeling I was thirsty, intends to buy a soda to drink, just have a shop promotional activities, that is, three empty bottle for a bottle of soft drink, may I ask if they each have a bottle of Nenghe Dao of soft drinks, then at least you need to buy a few bottles of soft drinks?

Whats greater than god,
More evil than the devil,
Rich people want it,
Poor people have it,
And if you eat it you die?

the answer is "nothing".

There is one additional common-sense questions (which is not relying on intelligence can be thought of ourselves Oh)

China's "Five Sacred Mountains" Which five mountains, respectively, in which province.

A: Dongyue Taishan (1532 meters), located in Tai'an City, Shandong Province.

Nishioka Mountain (1997 m), located in Huayin city of Shaanxi Province.

Hengshan Mountain (1512 m), located south of Hengshan County, Hunan Province, Changsha.

Beiyue Hengshan (2017 meters), located in Shanxi Hunyuan County.

Zhongyue Songshan Mountain (1440 m), located in Dengfeng City, Henan Province.

相关文章
  • A simple little question Java 2010-10-03

    In the recruitment forum to see a JAVA pen questions, the thought is very simple, but later found negligent wrong, are recorded. String a = "abc"; String b = "abc"; System.out.println("====>"+ a==b ); What questions to ask

  • Question Java side, you can do with a few? 2010-04-21

    1, there are two non-uniform distribution of fragrance, fragrant burn time is one hour, you can use any method to determine the period of 45 minutes of time? 2, working seven days a worker, wages day, a knot, there is a gold bar is that the seven day

  • The override question Java 2011-01-08

    There is such an example: public class PrivateOverride { private void f() { System.out.println("private f()"); } public static main(String[] args) { PrivateOverride po = new Derived(); po.f(); } } class Derived extends PrivateOverride { public v

  • Experience of Java exceptions 2010-04-27

    Java exception 1 Exception of the underlying concepts. The one exception is the Java object, and define a base class java.lang.Throwable superclass for all exceptions. Throwable class has two direct subclasses: java.long. Error and java.long.Exceptio

  • Fundamentals of Java memory management - Java memory allocation 2009-11-09

    1. Introduction Now extract a Java5 memory management white paper statement: One strength of the Java ™ 2 Platform , Standard Edition (J2SE ™ ) is that it performs automatic memory management, thereby shielding the developer from the complexity of ex

  • JAVA deadlock decryption 2008-05-04

    In general, each thread of the language used there a thread deadlock problem, Java thread deadlock issues encountered in the development are also very common. The author in the program development is often encountered deadlock on the issue, and often

  • Robot? Java class is in what used to? Robot robot = new Robot ();? Do 2010-03-21

    Question: java in this class is what for? Robot robot = new Robot (); ... thank the enthusiastic members of [qq9718682] the patience to answer! The best answer: ... the other answer: such is used for test automation, self-running demo programs, and o

  • java reference value of transmission and delivery 2010-04-26

    Today a colleague of mine also ran into a problem, the problem generally is this: A list1 object: ArrayList list1 = new ArrayList (); list1.add ("string1"); list1.add ("string2"); This time we define a list2, list1 and assigned to list

  • JAVA face questions FAQ Series (3) - variable (property) coverage [Reserved] 2010-05-27

    We look at such a question: Java code class ParentClass ( public int i = 10; ) public class SubClass extends ParentClass ( public int i = 30; public static void main (String [] args) ( ParentClass parentClass = new SubClass (); SubClass subClass = ne

  • java.lang.ClassFormatError: HelloWorld (unrecognized class file version) 2010-05-28

    Question: java.sun.com download jdk1.60 and jre1.60 the bin file, sh. / XXX. Bin installed, compile HelloWorld.java, generate HelloWorld.class file, but it can not execute java HelloWorld. The following error: [Root @ Mr javaPC] # javac HelloWorld.ja

  • Java parameter by value or pass by reference 2010-06-12

    It is a commonplace of the problem, causing numerous controversies, but we can say that has not been a satisfactory answer. Some people insist trick, to transfer reference said to be placed inside the stack is the reference value, and that only pass

  • JAR package for Java, or the path to read the resource file 2010-07-26

    Here are divided into two specific: The first: the resource file for the general suffix file The second: Resource file for picture files First] [NO1 Use this line of code can get class path of the root class String path = Thread.currentThread (). Get

  • Huawei java face questions 2010-07-29

    Part I: Multiple Choice QUESTION NO: 1 1, public class Test ( public static void changeStr (String str) ( str = "welcome"; ) public static void main (String [] args) ( String str = "1234"; changeStr (str); System.out.println (str); ) )

  • JAVA JDK and the JVM in 2010-09-03

    http://www.javaeye.com/topic/423505 1. Any language development are required to provide the basic framework for its support, provided in java is a JDK class library, which is running the core java, java is running the controller, it creates the need

  • linux java unrecognized class file version under the wrong solution 2010-10-11

    Question: java.sun.com download jdk1.60 and jre1.60 the bin file, sh. / XXX. Bin installed, compile HelloWorld.java, generate HelloWorld.class file, but can not execute java HelloWorld. The following error: [Root @ Mr javaPC] # javac HelloWorld.java

  • JAVA based (Java argument passed by value or reference) 2010-10-27

    Parameter by value rather than the instructions passed by reference and only Java application has a parameter passing mechanism, that is passed by value. Writing it is to expose the common myth that Java applications that pass parameters by reference

  • under linux java unrecognized class file version error solution 2010-10-11

    Question: java.sun.com download jdk1.60 and jre1.60 bin files, sh. / So and so. Bin installed, compile HelloWorld.java, generate HelloWorld.class file, but can not execute java HelloWorld. The following error: [Root @ Mr javaPC] # javac HelloWorld.ja

  • hibernate cascade configuration of the relationship between the use of list 2009-10-09

    Recently, in practice the relationship between a cascade List examples of the problem encountered in spots, and now has been resolved, a number of configuration methods now make a brief note, I hope to have some help for beginners! The use of the fra

  • Jean Hall Refbacks JUnit4 unit test _ Video Notes 2010-03-29

    1.JDK5 allows you to add a static method of static class eg: improve static org.junit.Assert .*; assertEquals (<expected "," actual value "); eg: int z = new T (). add (5,3); assertEquals (8, z); Famous words: Keeps the bar green to keep

  • Xfire 2010-03-29

    http://blog.csdn.net/czmchen/archive/2010/01/15/5192455.aspx http://hi.baidu.com/hivemind/blog/item/52b31c7ad7d747e52f73b373.html service and client speak plainly Serious: Servlet / xfire-server threw load () exception org.springframework.beans.facto