search
LoginSignup
0

posted at

updated at

Java検定問題

../

Java検定の問題を作ってみました。

問題1:

System.out.println("すき家".length());  	    // --> 3
System.out.println("𠮷野家".length());		// --> ???

問題2:

System.out.println(Integer.MAX_VALUE + 1);	// --> -2147483648
System.out.println(65536 * 65536);  		// --> ???

問題3:

System.out.println( 1 %  2);  				// -->  1
System.out.println(-1 %  2);				// --> -1
System.out.println( 1 % -2);				// -->  1
System.out.println(-1 % -2);				// -->  ???
../

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0