Results 1 to 2 of 2
- 12-13-2010, 07:18 PM #1
Member
- Join Date
- Dec 2010
- Posts
- 3
- Rep Power
- 0
Different ways of creating object
I noticed 2 ways of creating object.
First Way
========
BUfferedImage BufferedImageObject= new BufferedImage(60,50,BufferedImage.TYPE_INT_ARGB);
Second Way
=========
BUfferedImage BufferedImageObject= ImageIO.read(new FILE(C:\\Image.jpg));
I do understand the difference in functionality. That is not a problem. But in the Second Way, we are NOT using the "new" keyword. SO, in the Second way, is an object created????
- 12-13-2010, 07:19 PM #2
Similar Threads
-
creating an object inside jsp using el/jstl
By niteangell21 in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 11-30-2010, 05:26 PM -
Creating a cylinder object
By b_erten in forum New To JavaReplies: 8Last Post: 07-25-2010, 08:43 PM -
Creating an object and getting a value from it
By BrownBread in forum New To JavaReplies: 2Last Post: 11-30-2008, 06:08 AM -
Creating a Comparable object
By Java Tip in forum java.langReplies: 0Last Post: 04-15-2008, 07:38 PM -
Creating object of Type Object class
By venkatv in forum New To JavaReplies: 3Last Post: 07-17-2007, 03:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks