Tag: pass by reference

Some questions for you?

November 15, 2011 · 1 min read
1. Why java.awt.event package is to be imported when java.awt is already imported. [Does java.awt not include java.awt.event also?](http://way2java.com/awt-components/why-both-java-awt-java-awt-event/) 2. How many ways you can do [scanf](http://way2java.com/io/keyboard-reading/) in Java? 3. Can a string be converted to [byte](http://way2java.com/string-and-stringbuffer/data-type-byte-to-string-conversion/), [short](http://way2java.com/string-and-stringbuffer/data-type-short-to-string-conversion/), [int](http://way2java.com/string-and-stringbuffer/data-type-int-to-string-conversion/), [long](http://way2java.com/string-and-stringbuffer/data-type-long-to-string-conversion/), [float](http://way2java.com/string-and-stringbuffer/data-type-float-to-string-conversion/), [double](http://way2java.com/string-and-stringbuffer/data-type-double-to-string-conversion/), [char](http://way2java.com/string-and-stringbuffer/data-type-char-to-string-conversion/) and [boolean](http://way2java.com/string-and-stringbuffer/data-type-boolean-to-string-conversion/)? 4. What is [instanceof](http://way2java.com/java-lang/instanceof-keyword/) keyword? 5. Why the methods of an interface should be [overridden as public](http://way2java.com/oops-concepts/rules-of-access-specifiers-in-method-overriding/) only? 6. [What Java constructor return?](http://way2java.com/oops-concepts/reference-variables-anonymous-objects/) 7. Can constructor be [static](http://way2java.com/oops-concepts/static-constructor/) or [private](http://way2java.com/oops-concepts/private-constructor/)? 8. How to extend [few classes and implements few interfaces](http://way2java.com/uncategorized/extends-implements/) to a single class? 9. How to give [title to the frame](http://way2java.com/awt-components/java-awt-textarea-%e2%80%93-multiple-lines-text/) without setTitle() method? 10. Can you do [pass-by-reference](http://way2java.com/arrays/passing-arrays-to-methods/) in Java?